Hi,
please forgive me for this very basic question but I can't find an answer so far. I'm sending my logs to AWS CloudWatch and from there I'm using an AWS Lambda to push said logs to AWS hosted ElasticSearch.
The problem I have is that my logs even though are json they are not well structured. Sometimes a field can be a simple value like a string but the very next log line might have the same field as an object.
e.g.
log line A:
{"msg": "foo bar", "status": "Success"}
log line B:
{"msg": "quux", "status": {"finished": "2020-02-05T18:37:15Z"}}
This way I can't really index all my log lines. What's the preferred way of dealing with this issue?