Date Published: January 16, 2023
Enabling and Configuring Drupal's Syslog Module
The use of the Syslog module instead of the Database Logging module on the Acquia Platform increases the performance in several ways,
- It stops logs from being written into the database, which affects performance and fills your database volume
- Acquia support can better assist with the analysis of performance, and diagnosis of your any issue your website might be displaying.
- You can use a log forwarding service https://docs.acquia.com/acquia-cloud/monitor/logs/forwarding/.
To enable the Syslog module use the following Drush command `drush en syslog`, or via your Drupal UI navigate to example.com/admin/modules and enable the module.
Once you have enabled the module and navigate /admin/config/development/logging you will need to update the Syslog configuration. In order that there is an appropriate level of logging verbosity for a production environment, it is good to update the configuration so that additional details will then be written into the drupal-watchdog.log.
We recommend making the following changes :
- Set the Syslog identity value to the site name (so a meaningful value is written to the log)
- Set the Syslog facility to: `LOG_LOCAL0`
- Set the Syslog format to: `!base_url|!timestamp|!type|!ip|!request_uri|!referer|!uid|!link|!message`
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.