Kibana is used for generic logging. See Logging on Confluence for technical documentation.
Drupal structures and sends all logs as JSON to Kibana using the logger service provided by Helfi API Base module. See API Base - Logging for more information.
A service called Sentry is used for application logging.
See Sentry application information document on Confluence for technical documentation.
Install and enable the Raven module:
composer require drupal/raven
drush en raven
IMPORTANT: Testing and production uses different Sentry instances.
Sentry requires SENTRY_ENVIRONMENT
and SENTRY_DSN
environment variables. The value of SENTRY_ENVIRONMENT
should be same as APP_ENV
.
You can find the project specific SENTRY_DSN
by going to Settings -> Projects -> Select a project -> Client keys (DSN) in Sentry.
Each project has their own team, so if you can't find your project, make sure to join the corresponding team by clicking the Join a Team
button in the top right corner.
See this Confluence page for information on how to access Sentry service.