Error decoding JSON: json: cannot unmarshal string into Go value of type map[string]interface {}

Hi @jsoriano,

It was the issue of the log structure. If I am putting a json in multilines as shown below, we will get the mentioned error,

00%20PM

If we are putting the entire logs in a single line, filebeat will parse and push to ES. This was mentioned on the documentation (the JSON decoding only works if there is one JSON object per line) but I missed it.

In short we can mark this ticket as closed.

1 Like