Skip to content

Instantly share code, notes, and snippets.

@khouse
Created March 31, 2014 19:59
Show Gist options
  • Save khouse/9900906 to your computer and use it in GitHub Desktop.
Save khouse/9900906 to your computer and use it in GitHub Desktop.
Loggly rsyslog debugging
Tomcat log:
{"@fields":{"thread_name":"http-apr-8080-exec-4","level":"INFO","logger_name":"grails.app.services.com.cloudmasons.AuditService"},"@timestamp":"2014-03-31T19:41:37.478+00:00","@message":{"app":"causes","application":"[CC] causes","accountId":"user.name","hostname":"x.x.x.x","contextid":"a6ef0feac0e553da01","org":"acme-solar","date":"2014-03-90 19:41:37","info":"NONE","d":"19","ipaddr":"x.x.x.x","source":"User.Name","description":"By null","name":"User.Name APP_ADD on User.Name","target":"User.Name","service":"causes","action":"APP_ADD","server":"cc4","uuid":"3a5e2b80-4da1-40c4-ad77-4b11708871d4","instance":"NONE","pod":"dev"},"@source_host":"cc4"}
Rsyslog entry:
Mar 31 19:41:44 cc4 tomcat_catalina: {"@fields":{"thread_name":"http-apr-8080-exec-4","level":"INFO","logger_name":"grails.app.services.com.cloudmasons.AuditService"},"@timestamp":"2014-03-31T19:41:37.478+00:00","@message":{"app":"causes","application":"[CC] causes","accountId":"User.Name","hostname":"x.x.x.x","contextid":"a6ef0feac0e553da01","org":"acme-solar","date":"2014-03-90 19:41:37","info":"NONE","Id":"19","ipaddr":"x.x.x.x","source":"User.Name","description":"By null","name":"User.Name APP_ADD on User.Name","target":"User.Name","service":"causes","action":"APP_ADD","server":"cc4","uuid":"3a5e2b80-4da1-40c4-ad77-4b11708871d4","instance":"NONE","pod":"dev"},"@source_host":"cc4"}
Rsyslog debug log:
Debug line with all properties:
FROMHOST: '', fromhost-ip: '', HOSTNAME: 'cc4', PRI: 134,
syslogtag 'tomcat_catalina:', programname: 'tomcat_catalina', APP-NAME: 'tomcat_catalina', PROCID: '', MSGID: '-',
TIMESTAMP: 'Mar 31 19:41:44', STRUCTURED-DATA: '-',
msg: '{"@fields":{"thread_name":"http-apr-8080-exec-4","level":"INFO","logger_name":"grails.app.services.com.cloudmasons.AuditService"},"@timestamp":"2014-03-31T19:41:37.478+00:00","@message":{"app":"causes","application":"[CC] causes","accountId":"User.Name","hostname":"x.x.x.x","contextid":"a6ef0feac0e553da01","org":"dev-test","date":"2014-03-90 19:41:37","info":"NONE","orgId":"19","ipaddr":"x.x.x.x","source":"User.Name","description":"By null","name":"User.Name APP_ADD on User.Name","target":"User.Name","service":"causes","action":"APP_ADD","server":"cc4","uuid":"3a5e2b80-4da1-40c4-ad77-4b11708871d4","instance":"NONE","pod":"dev"},"@source_host":"cc4"}'
escaped msg: '{"@fields":{"thread_name":"http-apr-8080-exec-4","level":"INFO","logger_name":"grails.app.services.com.cloudmasons.AuditService"},"@timestamp":"2014-03-31T19:41:37.478+00:00","@message":{"app":"causes","application":"[CC] causes","accountId":"User.Name","hostname":"x.x.x.x","contextid":"a6ef0feac0e553da01","org":"dev-test","date":"2014-03-90 19:41:37","info":"NONE","orgId":"19","ipaddr":"x.x.x.x","source":"User.Name","description":"By null","name":"User.Name APP_ADD on User.Name","target":"User.Name","service":"causes","action":"APP_ADD","server":"cc4","uuid":"3a5e2b80-4da1-40c4-ad77-4b11708871d4","instance":"NONE","pod":"dev"},"@source_host":"cc4"}'
inputname: imfile rawmsg: '{"@fields":{"thread_name":"http-apr-8080-exec-4","level":"INFO","logger_name":"grails.app.services.com.cloudmasons.AuditService"},"@timestamp":"2014-03-31T19:41:37.478+00:00","@message":{"app":"causes","application":"[CC] causes","accountId":"User.Name","hostname":"x.x.x.x","contextid":"a6ef0feac0e553da01","org":"dev-test","date":"2014-03-90 19:41:37","info":"NONE","orgId":"19","ipaddr":"x.x.x.x","source":"User.Name","description":"By null","name":"User.Name APP_ADD on User.Name","target":"User.Name","service":"causes","action":"APP_ADD","server":"cc4","uuid":"3a5e2b80-4da1-40c4-ad77-4b11708871d4","instance":"NONE","pod":"dev"},"@source_host":"cc4"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment