Further to the query: Writing multiline grok
The raw data comes in json, so the NEW line is technically new line but \r\n
in the json payload.
"GET /myapp/health HTTP/1.1\\r\\nHost: 52.123.133.46\\r\\nUser-Agent: Mozilla/5.0 zgrab/0.x\\r\\nAccept: */*\\r\\nAccept-Encoding: gzip\\r\\nX-Forwarded-For: 111.222.205.143\\r\\n\\r\\n"
Is there an already written http parser for the http_request? Any help would be much appreciated.
Cheers