Common Log Formats
Last updated
Was this helpful?
Last updated
Was this helpful?
This page is a glossary of common log formats that can be parsed with the Tail input plugin.
Apache Access Log
Use format apache2
as shown below:
Apache Error Log
Use a regular expression. See the format
field in the following sample configuration.
Depending on your particular error log format, you may need to adjust the regular expression above. You can test your format using or .
Maillog
Use a regular expression. See the format
field in the following sample configuration.
Nginx Access Log
Use format nginx
as shown below:
Nginx Error Log
Use the format*
and multiline_flush_interval
fields in the following sample configuration. Applications running under Nginx can output multi-line errors including stack traces, so the multiline mode is a good fit.
If you know your error log will only contain single lines, you can use the below simpler configuration with just a format
.
GlusterFS Logs
Use the
Give us a shout on , or . Better yet, we always welcome a !
If this article is incorrect or outdated, or omits critical information, please . is a open source project under . All components are available under the Apache 2 License.