Unfortunately, It is a custom (read legacy) application not based on any current framework. I have full control over the output format as I have to manually generate it.
In contrast to e.g. Apache access logs, the logs should not just contain timestamp and URL of the request, but also all HTTP header fields plus request body plus belonging response. So if I would need to come up with some kind of JSON respresentation of the data, I would say it is similar to:
{
"url": "http://www.example.com/?parm1=abc¶m2=def",
"method": "POST",
"responseCode": 200,
"request": {
"headers": {
"User-Agent": "Mozilla...",
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate, br",
"...": "..."
},
"body": "some arbitrary string, e.g. containing XML or JSON data"
},
"response": {
"headers": {
"Cache-Control": "max-age=14400",
"Content-Length": "396",
"...": "..."
},
"body": "some arbitrary string, e.g. containing XML or JSON data"
}
}
But I was hoping that I don't need to reinvent the wheel and there is already some format for it, which I can generate.
... View more