Created
May 8, 2015 16:02
-
-
Save erkiesken/78e7ccf0bfc1c649cfdb to your computer and use it in GitHub Desktop.
Simple Heka HttpListenInput debug output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2015/05/08 19:01:30 Input 'http-input': Listening on 127.0.0.1:1234 | |
2015/05/08 19:01:36 | |
:Timestamp: 2015-05-08 16:01:36.03994348 +0000 UTC | |
:Type: heka.httpdata.request | |
:Hostname: Erki-Mac.lan | |
:Pid: 83675 | |
:Uuid: 0ad67214-8f54-4793-8e33-ba1563071db7 | |
:Logger: http-input | |
:Payload: {"foo": "bar"} | |
:EnvVersion: 1 | |
:Severity: 6 | |
:Fields: | |
| name:"Protocol" type:string value:"HTTP/1.1" | |
| name:"UserAgent" type:string value:"HTTPie/0.9.2" | |
| name:"ContentType" type:string value:"application/json" | |
| name:"Path" type:string value:"/foo" | |
| name:"Host" type:string value:"127.0.0.1" | |
| name:"RemoteAddr" type:string value:"127.0.0.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ http POST 127.0.0.1:1234/foo foo=bar -v | |
POST /foo HTTP/1.1 | |
Accept: application/json | |
Accept-Encoding: gzip, deflate | |
Connection: keep-alive | |
Content-Length: 14 | |
Content-Type: application/json | |
Host: 127.0.0.1:1234 | |
User-Agent: HTTPie/0.9.2 | |
{ | |
"foo": "bar" | |
} | |
HTTP/1.1 200 OK | |
Content-Length: 0 | |
Content-Type: text/plain; charset=utf-8 | |
Date: Fri, 08 May 2015 16:01:36 GMT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[http-input] | |
type = "HttpListenInput" | |
address = "127.0.0.1:1234" | |
[RstEncoder] | |
[debug-logoutput] | |
type = "LogOutput" | |
message_matcher = "TRUE" | |
encoder = "RstEncoder" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment