Elasticsearch query to fetch the metricbeat data

Hi ,

i am trying to pull metricbeat data through python elasticsearch module. Here is the query

res = elasticsearch.search(index='metricbeat-*',size=10000,body={"sort": [{"@timestamp": {"order": "desc"}}],"query":{"match_all": {}}},request_timeout=50)

This query fetch all the data.

Now I want to fetch the data having information about system.load.norm.1 or system.load.norm.5 or system.load.norm.15 or all the three only

Is there any way to capture this particular data.

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