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"}
Written by Lars Van Casteren
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Catalina
Authors
Lars Van Casteren
1.078K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#