Skip to content

Instantly share code, notes, and snippets.

@phstudy
Created January 23, 2015 10:40
Show Gist options
  • Save phstudy/32686673db55c4213364 to your computer and use it in GitHub Desktop.
Save phstudy/32686673db55c4213364 to your computer and use it in GitHub Desktop.
logstash-logback-encoder.json
{
"@timestamp": "2015-01-23T10:38:18.065+00:00",
"@version": 1,
"@message": "0:0:0:0:0:0:0:1 - - [2015-01-23T10:38:18.065+00:00] \"GET /t HTTP/1.1\" 200 43",
"@fields.method": "GET",
"@fields.protocol": "HTTP/1.1",
"@fields.status_code": 200,
"@fields.requested_url": "GET /t HTTP/1.1",
"@fields.requested_uri": "/t",
"@fields.remote_host": "0:0:0:0:0:0:0:1",
"@fields.HOSTNAME": "0:0:0:0:0:0:0:1",
"@fields.content_length": 43,
"@fields.elapsed_time": 476,
"@fields.request_headers": {
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
"accept-encoding": "gzip, deflate",
"accept-language": "en-US,en;q=0.5",
"connection": "keep-alive",
"cookie": "SPRING_SECURITY_REMEMBER_ME_COOKIE=bkRqcVhlNGo4Z2VhU0RCdXFxR0p3QT09OmJrMmFpNk1WbTBaZC8rZFExYTQ1dFE9PQ; uid=75cc44a0-a2e1-11e4-9c9a-278d9d9f4e4c",
"host": "localhost:8081",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:35.0) Gecko/20100101 Firefox/35.0"
},
"@fields.response_headers": {
"X-Application-Context": "application:dev:8081",
"Content-Length": "43",
"Date": "Fri, 23 Jan 2015 10:38:18 GMT",
"Content-Type": "image/gif;charset=UTF-8"
},
"HOSTNAME": "study-mbpr"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment