# Multiple filebeat instances appear as one beat on kibana x-pack monitoring

**URL:** https://discuss.elastic.co/t/multiple-filebeat-instances-appear-as-one-beat-on-kibana-x-pack-monitoring/151833
**Category:** Beats
**Created:** [October 10, 2018, 11:27am UTC](https://discuss.elastic.co/t/multiple-filebeat-instances-appear-as-one-beat-on-kibana-x-pack-monitoring/151833 "2018-10-10T11:27:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Kieren\_Johnstone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kieren_johnstone/32/26311_2.png) [@Kieren\_Johnstone](https://discuss.elastic.co/u/Kieren_Johnstone)
#### Post date: [October 10, 2018, 11:27am UTC](https://discuss.elastic.co/t/multiple-filebeat-instances-appear-as-one-beat-on-kibana-x-pack-monitoring/151833/1 "2018-10-10T11:27:09Z")

</div>

We have 9 filebeats running, none with a 'name' specified - and so defaulting to the hostname.

Visualising beat.name shows all 9 sending events.

However, only 2 beats in Kibana under the monitoring section (latest version of Kibana). When clicking through, sometimes the name of the beat in the header changes, suggesting they are arbitrarily merged or something.

Can anyone advise?

---

<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: [October 12, 2018, 5:41pm UTC](https://discuss.elastic.co/t/multiple-filebeat-instances-appear-as-one-beat-on-kibana-x-pack-monitoring/151833/2 "2018-10-12T17:41:37Z")

</div>

Each filebeat creates it's unique ID the first time it is started the first time. The ID is stored in `${path.data}/meta.json`. When filebeat is restarted, it reuses the ID stored in this file.

A common issue is with users copying the data directory between filebeat instances. The data directory must be unique per instance. All beats store operational state and data in the data directories, which are unique per instance. Never share or copy this directory between instances.

Check the `meta.json` files contents. Quick fix is to remove the `meta.json` files. In this case filebeat will create new ones upon restart.

---

<div class="post-metadata">

### Author: ![Kieren\_Johnstone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kieren_johnstone/32/26311_2.png) [@Kieren\_Johnstone](https://discuss.elastic.co/u/Kieren_Johnstone)
#### Post date: [October 15, 2018, 7:27am UTC](https://discuss.elastic.co/t/multiple-filebeat-instances-appear-as-one-beat-on-kibana-x-pack-monitoring/151833/3 "2018-10-15T07:27:05Z")

</div>

Thanks @steffens, unfortunately that doesn't seem to be the case. I checked the projects in source control, and there's no meta.json anywhere in the repositories. From the docs it looks like the default data path (on Windows - these are Azure App Services deployed from CI) is relative to the main executable.

Is there anything else I can do to diagnose?

---

<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: [October 16, 2018, 9:02pm UTC](https://discuss.elastic.co/t/multiple-filebeat-instances-appear-as-one-beat-on-kibana-x-pack-monitoring/151833/4 "2018-10-16T21:02:43Z")

</div>

There must be a `meta.json` somewhere. It's created the first time you start filebeat. It's not part of the source control, but created at runtime.

Filebeat normally prints the directories on start up. You can also ask filebeat to print the initial configuration to the debug log by running filebeat with `-d "config"`. This initial debug message should give you some hint where the `${path.data}` directory is.

Given you deploy it from some CI makes me wonder if the meta.json file is created by the CI already. When packaging filebeat in some kind of containers/zips, the data directory should be cleared out before.

---

<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: [November 13, 2018, 11:02pm UTC](https://discuss.elastic.co/t/multiple-filebeat-instances-appear-as-one-beat-on-kibana-x-pack-monitoring/151833/5 "2018-11-13T23:02:47Z")

</div>

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