Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem parsing json arrays #12

Open
necroscope opened this issue Jun 23, 2015 · 3 comments
Open

problem parsing json arrays #12

necroscope opened this issue Jun 23, 2015 · 3 comments

Comments

@necroscope
Copy link

Hi,
Please help. The array values are not appearing as name value pairs in kibana as the json filter does not parse nested arrays.

Here is my json:
{"metric_data":{"from":"2015-06-23T06:11:52+00:00","to":"2015-06-23T06:12:52+00:00","metrics":[{"name":"HttpDispatcher","timeslices":[{"from":"2015-06-23T06:10:00+00:00","to":"2015-06-23T06:11:00+00:00","values":{"average_call_time":486,"call_count":1849}}]}]}}

I want to be able to search in kibana or create dashboard on average call time but logstash puts the whole json string under metric_data.metrics and _source in kibana/ES. Is does not parse out the name value pairs such as average_call_time: 486

Please assist thanks!

@FlorinAndrei
Copy link

I have the exact same issue. If a field or subfield within a JSON blob is an array, the JSON filter fails to parse the array, and just returns it as string.

@catalinvr
Copy link

You can find an example here

@jonathanpmartins
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants