Syslog is a message logging standard has been around for decades, but has renewed popularity as a method of log capture with the advent of containerization and centralized logging solutions.
Enabling an Ubutu 14.04 or 16.04 host to act as a syslog server only takes a few simple steps.
Continue reading “Ubuntu: Enabling syslog on Ubuntu and custom templates”
Nginx is a powerful application level proxy server. Whether for troubleshooting or analysis, enabling log levels and custom formats for the access/error logs is a common requirement.
By default, only messages in the error category are logged. If you want to enable more details, then modify nginx.conf like:
error_log file [level]
Enabling debug level on Linux would usually look like:
error_log /var/log/nginx/error.log debug;
Access logs and their format are also customized in nginx.conf. By default, if no format is specified then the combined format is used.
access_log file [format]
Continue reading “Nginx: Custom access log format and error levels”