-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Metricbeats http module does gives error for parsing json. #13137
Comments
Hi @syedsfayaz, I see in the topic in discuss that you managed to get the event, but it had some unparsed fields. This Were the rest of fields parsed correctly? |
Not all the fields parsed correctly. As you see the actions fields are not parsed. As mentioned in this link. https://www.elastic.co/guide/en/elasticsearch/reference/7.3/nested.html Can you guide me how I can use this nested data type. Do I need to add these settings in http.yml? I need to parse these values from the json apart from other results. |
Yeah, I think that all fields that are arrays of objects, as The use of nested types may need further development, because they are not completely supported by Beats and Kibana. I think there is no good solution at the moment for the data you want to collect. One option to support it would be to handle arrays of objects in the |
Can Logstash parse this data? |
I think that with logstash the problematic is similar, it is not clear what to do with fields that are lists of objects. |
I mean I can write some curl command or some python/power shell script to get what exactly values I need from the jenkins api and then pass those to log-stash. |
@syedsfayaz if you use an external script to create the event with the values you want, you can also use the HTTP server metricset of Metricbeat to send these events to Elasticsearch. |
Hi! We're labeling this issue as |
I am using metricbeat to parse jenkins build parameters. I am using http module. But I am seeing error.
Please post all questions and issues on https://discuss.elastic.co/c/beats
https://discuss.elastic.co/t/error-metricbeat-sending-json-data-to-elastic-search/192582
Also tried the solution in the github link which does not work.
#8292
Please include configurations and logs if available.
For confirmed bugs, please report:
The text was updated successfully, but these errors were encountered: