# Elasticsearch query to fetch the metricbeat data

**URL:** <https://discuss.elastic.co/t/elasticsearch-query-to-fetch-the-metricbeat-data/130015>\
**Category:** Elasticsearch\
**Created:** [April 30, 2018, 10:47am UTC](https://discuss.elastic.co/t/elasticsearch-query-to-fetch-the-metricbeat-data/130015 "2018-04-30T10:47:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![niraj\_pandey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niraj_pandey/32/44034_2.png) [@niraj\_pandey](https://discuss.elastic.co/u/niraj_pandey)\
**Post date:** [April 30, 2018, 10:47am UTC](https://discuss.elastic.co/t/elasticsearch-query-to-fetch-the-metricbeat-data/130015/1 "2018-04-30T10:47:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 28, 2018, 10:47am UTC](https://discuss.elastic.co/t/elasticsearch-query-to-fetch-the-metricbeat-data/130015/2 "2018-05-28T10:47:50Z")

</div>

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