In memory HTTP Request parsing

I want to write an offline raw HTTP log enricher tool such that:

input

series of HTTP request objects like:

{
"id": "<uniqueID>",
"timestamp": "<someTimestmp>",
"method": "GET",
"uri": "/_cat/indices?pretty"
"headers": [{"header1name": ["header1value1"]}],
"body": "....."
}

output

{
"id": "<uniqueID>",
"timestamp": "<someTimestmp>",
"type": "ClusterStateRequest",
"action": "cluster:monitor/state"
}

In order to do so, I really would not like to instantiate the whole Elasticsearch + write a plugin that echoes this info from inside.

Ideally I'd like to instantiate some class in Elasticsearch core that takes care of parsing HTTP requests into the internal format.

Any pointers on what is the best, least complicated way to do so?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.