# How to get the full metricbeat data from the elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-get-the-full-metricbeat-data-from-the-elasticsearch/95878>\
**Category:** Elasticsearch\
**Created:** [August 4, 2017, 12:11pm UTC](https://discuss.elastic.co/t/how-to-get-the-full-metricbeat-data-from-the-elasticsearch/95878 "2017-08-04T12:11:58Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [August 4, 2017, 12:11pm UTC](https://discuss.elastic.co/t/how-to-get-the-full-metricbeat-data-from-the-elasticsearch/95878/1 "2017-08-04T12:11:59Z")

</div>

i need to get the data for the metricbeat from the elasticsearch??  
For example: System load,CpuUsage etc..  
i need evrydata that is stored in the elasticsearch.  
How can i fetch all data of metricbeat using curl command?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 4, 2017, 12:29pm UTC](https://discuss.elastic.co/t/how-to-get-the-full-metricbeat-data-from-the-elasticsearch/95878/2 "2017-08-04T12:29:48Z")

</div>

```auto
curl localhost:9200/metricbeat*/_search

```

If you need to absolutely download all existing data, then look at Scroll API: [https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html)

---

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [August 4, 2017, 12:50pm UTC](https://discuss.elastic.co/t/how-to-get-the-full-metricbeat-data-from-the-elasticsearch/95878/3 "2017-08-04T12:50:59Z")

</div>

> [@dadoonet](#):
>
> curl localhost:9200/metricbeat\*/\_search

with this command curl localhost:9200/metricbeat\*/\_search i get only some part of the data..i need full data,Guide me please

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 4, 2017, 1:02pm UTC](https://discuss.elastic.co/t/how-to-get-the-full-metricbeat-data-from-the-elasticsearch/95878/4 "2017-08-04T13:02:21Z")

</div>

Read:

> [@How to get the full metricbeat data from the elasticsearch](https://discuss.elastic.co/t/how-to-get-the-full-metricbeat-data-from-the-elasticsearch/95878/2):
>
> curl localhost:9200/metricbeat\*/\_search If you need to absolutely download all existing data, then look at Scroll API: [https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html)

---

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [August 5, 2017, 6:25am UTC](https://discuss.elastic.co/t/how-to-get-the-full-metricbeat-data-from-the-elasticsearch/95878/5 "2017-08-05T06:25:15Z")

</div>

Just clarify this please :  
([https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html))  
POST /twitter/tweet/\_search?scroll=1m  
{  
"size": 100,  
"query": {  
"match" : {  
"title" : "elasticsearch"  
}  
}  
}

instead of twiteer/tweet what should i use for metricbeat index?  
i used This,

curl -XPOST 'localhost:9200/metricbeat/\_search?scroll=1m&pretty' -H 'Content-Type: application/json' -d'  
{  
"size": 100,  
"query": {  
"match" : {  
"title" : "elasticsearch"  
}  
}  
}  
'  
only index name is enough or we should use any type to fetch all data??

---

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [August 5, 2017, 6:45am UTC](https://discuss.elastic.co/t/how-to-get-the-full-metricbeat-data-from-the-elasticsearch/95878/6 "2017-08-05T06:45:24Z")

</div>

i cant fetch any data ☹

---

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [August 5, 2017, 6:50am UTC](https://discuss.elastic.co/t/how-to-get-the-full-metricbeat-data-from-the-elasticsearch/95878/7 "2017-08-05T06:50:45Z")

</div>

i need to get all the data from the metricbeat..

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 5, 2017, 7:38am UTC](https://discuss.elastic.co/t/how-to-get-the-full-metricbeat-data-from-the-elasticsearch/95878/8 "2017-08-05T07:38:54Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

As I said previously, use `metricbeat*` as the index name. It should work.

---

<div class="post-metadata">

**Author:** ![Jonesthomas](https://avatars.discourse-cdn.com/v4/letter/j/f4b2a3/32.png) [@Jonesthomas](https://discuss.elastic.co/u/Jonesthomas)\
**Post date:** [August 7, 2017, 5:33am UTC](https://discuss.elastic.co/t/how-to-get-the-full-metricbeat-data-from-the-elasticsearch/95878/9 "2017-08-07T05:33:35Z")

</div>

What should i use instead of “title” : “elasticsearch”, to fetch all 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:** [September 4, 2017, 5:34am UTC](https://discuss.elastic.co/t/how-to-get-the-full-metricbeat-data-from-the-elasticsearch/95878/10 "2017-09-04T05:34:23Z")

</div>

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