I can see there a number of posts about this but I cannot seem to make heads or tails of them.
We have some logs that get sent to our ELK server where an embedded Json object is sent. I would like to map everything in the embedded Json object to appear in the field Json object. Granted this is not the full template but we have the following:
> "JSONObject" : { > "properties" : { > "Capacity" : { > "type" : "long" > }, > "Id" : { > "type" : "long" > }, > "m_MaxCapacity" : { > "type" : "long" > }, > "m_StringValue" : { > "norms" : false, > "type" : "text", > "fields" : { > "keyword" : { > "ignore_above" : 256, > "type" : "keyword" > } > } > }, > "m_currentThread" : { > "type" : "long" > } > } > },
This does not seem to work and it splits each field which is causing a large number of fields to be added. The field names do not match.
Can someone advise the best way to do this? It will be much appreciated.