# Sending Metricbeat Logs directly to Elasticsearch

**URL:** https://discuss.elastic.co/t/sending-metricbeat-logs-directly-to-elasticsearch/95828
**Category:** Elasticsearch
**Created:** [August 4, 2017, 7:17am UTC](https://discuss.elastic.co/t/sending-metricbeat-logs-directly-to-elasticsearch/95828 "2017-08-04T07:17:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shrikantgulia](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@shrikantgulia](https://discuss.elastic.co/u/shrikantgulia)
#### Post date: [August 4, 2017, 7:17am UTC](https://discuss.elastic.co/t/sending-metricbeat-logs-directly-to-elasticsearch/95828/1 "2017-08-04T07:17:34Z")

</div>

I am having two Systems (System1 & System2).  
I am unable to collect metricbeat logs of System2 in the Elasticsearch of System1.  
My metricbeat.yml file configuration is as below

 ![Screenshot from 2017-08-04 12:46:54](https://us1.discourse-cdn.com/elastic/original/3X/f/a/fa7ed7faf9c6fc462ed49e9614ae3f28b8dc6290.png)

Help would be really appreciated

Thanks

---

<div class="post-metadata">

### Author: ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)
#### Post date: [August 11, 2017, 6:48am UTC](https://discuss.elastic.co/t/sending-metricbeat-logs-directly-to-elasticsearch/95828/2 "2017-08-11T06:48:48Z")

</div>

Hi @shrikantgulia,

In general I think that question is better suited for the #beats:metricbeat forum but maybe I'm able to give some pointers.

> [@shrikantgulia](#):
>
> I am unable to collect metricbeat logs of System2 in the Elasticsearch of System1.

What do you mean by that? Is 192.168.10.176 reachable from System2 (ping)? Is Elasticsearch bound to `0.0.0.0` instead of loopback? What happens if you issue `curl http://192.168.10.176:9200/`? If you don't see anything like this:

```auto
{
  "name" : "OSjLgO2",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "-IZx01UcSkiYc4aj_7Ky_w",
  "version" : {
    "number" : "5.5.0",
    "build_hash" : "260387d",
    "build_date" : "2017-06-30T23:16:05.735Z",
    "build_snapshot" : false,
    "lucene_version" : "6.6.0"
  },
  "tagline" : "You Know, for Search"
}

```

Then check `config/elasticsearch.yml`, specifically `network.host`. It should be set to `0.0.0.0` to listen on all network interfaces (don't forget to restart Elasticsearch if you change the configuration). By default, Elasticsearch only listens on loopback (i.e. 127.0.0.1).

If that does not help, please check the logs of metricbeat and Elasticsearch for further hints.

Daniel

---

<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 8, 2017, 6:48am UTC](https://discuss.elastic.co/t/sending-metricbeat-logs-directly-to-elasticsearch/95828/3 "2017-09-08T06:48:52Z")

</div>

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