Hi,
I've been asked to save all events in Elasticsearch in 2 separate indexes:
- one that is "classic" with a dynamic mapping
- one that is "raw": the whole incoming event should be stored as a string, without any attempt to parse it in any way
Basis for the request: there can be unexpected structures provided, and those should never be lost. So the "raw index", would allow for that.
I'd assume a way to do it would be to have the whole event input moved to a subfield of the event.
Trying to describe the situation:
incoming event:
"this is not a json, just a basic string"
Should be stored in a given index as an entry similar to:
{"@timestamp":1473694864119,"message":"this is not a json, just a basic string"}
I realize this is a very peculiar use case, but it makes sense in the context of "no lost event" and would still allow for some searches to occur in Kibana.
Current research hasn't shown me an obvious way to achieve this, which is why I'm hoping the community will be able to help.
Cheers.