Last Updated: June 10, 2019
·
1.094K
· Lars Van Casteren

Tomcat catalina.out JSON logging

With Graylog it's really easy to aggregate many different log sources into usable dashboards and although you can use grok patterns and pipelines to get the message data exactly how you want there is not much that beats JSON styled logging. This log format can be used to output Tomcat Catalina logging in JSON format.

{"timestamp":"%t","remote_ip":"%a","user":"%u","request_url":"%U","querystring":"%q","session_id":"%S","request":"%r","http_status":"%s","bytes_sent":"%b","request_method":"%m","request_process_ms":"%D","response_commit_ms":"%F"}