Formatting issues with parsing JSON from MongoDB


(jainh) #1

I am trying to parse JSON (from MongoDB) to Kibana through Logstash. I keep getting all the data in a "log_entry" field. This field does not exist in my data but rather is being created by Logstash.

In my CONF file, I have my filter empty. I have tried adding JSON with source as a specific field but that does not work either.

Any ideas?


(Christian Dahlqvist) #2

The log_entry field is not valid JSON, which is why the json filter fails.


(jainh) #3

my data structure has NO field with the name "log_entry".. Logstash is creating this. I want to import the individual fields but unable to do so


(Christian Dahlqvist) #4

What does you configuration look like?


(jainh) #5

Here is the config file


(Christian Dahlqvist) #6

I suspect that structure is created by the mongodb input plugin, which I have personally never used. I am not sure how commonly used it is, so you may want to reach out to the creator as well.


(system) #7

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