# MetricBeats data to Elastic Search

**URL:** https://discuss.elastic.co/t/metricbeats-data-to-elastic-search/73335
**Category:** Beats
**Tags:** metricbeat
**Created:** [January 31, 2017, 9:54am UTC](https://discuss.elastic.co/t/metricbeats-data-to-elastic-search/73335 "2017-01-31T09:54:24Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![prakash1243](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@prakash1243](https://discuss.elastic.co/u/prakash1243)
#### Post date: [January 31, 2017, 9:54am UTC](https://discuss.elastic.co/t/metricbeats-data-to-elastic-search/73335/1 "2017-01-31T09:54:24Z")

</div>

Hi-  
I'd like to check, if Metricbeats data is sending data to my Elastic search with out any break. (There might be a scenario server gets restarted)  
I have a validation, to check if my server is connected to the Elastic search or not ? and if its connected, how long the beats sending data to ES ? Please let me know.

---

<div class="post-metadata">

### Author: ![prakash1243](https://avatars.discourse-cdn.com/v4/letter/p/35a633/32.png) [@prakash1243](https://discuss.elastic.co/u/prakash1243)
#### Post date: [January 31, 2017, 10:44am UTC](https://discuss.elastic.co/t/metricbeats-data-to-elastic-search/73335/2 "2017-01-31T10:44:37Z")

</div>

Thanks in advance !

---

<div class="post-metadata">

### Author: ![geek876](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/geek876/32/9329_2.png) [@geek876](https://discuss.elastic.co/u/geek876)
#### Post date: [February 7, 2017, 2:55pm UTC](https://discuss.elastic.co/t/metricbeats-data-to-elastic-search/73335/3 "2017-02-07T14:55:34Z")

</div>

Prakash,

You might want to have a look at [https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html](https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html) and see the following options:

max\_retries: Number of times to retry after which to drop.  
timeout  
flush\_interval: The number of sec to wait (This answers your question I suppose).

---

<div class="post-metadata">

### Author: ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)
#### Post date: [February 8, 2017, 12:09pm UTC](https://discuss.elastic.co/t/metricbeats-data-to-elastic-search/73335/4 "2017-02-08T12:09:30Z")

</div>

metricbeat (any beat) checks if elasticsearch is available by doing a plain GET request on http://:9200 (protocol and path are configurable). If the GET request is returned, beats can start sending metrics to elasticsearch. A beat send data to ES, as long as it has some data available... It depends on many factors like indexing time on ES and network how long this will take.

---

<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: [March 8, 2017, 12:10pm UTC](https://discuss.elastic.co/t/metricbeats-data-to-elastic-search/73335/5 "2017-03-08T12:10:07Z")

</div>

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