# X-Pack monitoring support multi-instances of LogStash in one node?

**URL:** <https://discuss.elastic.co/t/x-pack-monitoring-support-multi-instances-of-logstash-in-one-node/74837>\
**Category:** Elasticsearch\
**Created:** [February 13, 2017, 7:09am UTC](https://discuss.elastic.co/t/x-pack-monitoring-support-multi-instances-of-logstash-in-one-node/74837 "2017-02-13T07:09:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dreampuf](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dreampuf](https://discuss.elastic.co/u/dreampuf)\
**Post date:** [February 13, 2017, 7:09am UTC](https://discuss.elastic.co/t/x-pack-monitoring-support-multi-instances-of-logstash-in-one-node/74837/1 "2017-02-13T07:09:29Z")

</div>

I checked some source code of X-Pack. It seems like X-Pack of LogStash uses the "id" as the identification.  
Will it occur data overwrite when multi instances are running on the same node?

```
# curl localhost:9601/?pretty
{
  "host" : "stgelkredis01",
  "version" : "5.2.0",
  "http_address" : "127.0.0.1:9601",
  "id" : "3a6a2243-a356-4d0f-a9af-f783bf88e0b8",
  "name" : "stgelkredis01",
  "build_date" : "2017-01-24T20:13:39+00:00",
  "build_sha" : "3159d88e5168023353de938ef6fa2aad0763d05f",
  "build_snapshot" : false
}
# curl localhost:9602/?pretty
{
  "host" : "stgelkredis01",
  "version" : "5.2.0",
  "http_address" : "127.0.0.1:9602",
  "id" : "3a6a2243-a356-4d0f-a9af-f783bf88e0b8",
  "name" : "stgelkredis01",
  "build_date" : "2017-01-24T20:13:39+00:00",
  "build_sha" : "3159d88e5168023353de938ef6fa2aad0763d05f",
  "build_snapshot" : false
}
```

---

<div class="post-metadata">

**Author:** ![suyograo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suyograo/32/44898_2.png) [@suyograo](https://discuss.elastic.co/u/suyograo)\
**Post date:** [February 24, 2017, 10:37pm UTC](https://discuss.elastic.co/t/x-pack-monitoring-support-multi-instances-of-logstash-in-one-node/74837/2 "2017-02-24T22:37:37Z")

</div>

@dreampuf are you running these Logstash instances using the same `path.data` location? Each Logstash instance starts with a UUID which gets persisted to `path.data/uuid` file. If you use the same `path.data` location, Logstash will pick up that same ID and use it. In 5.4.0, we will stop LS instance from starting if some other LS instance has already used the path.data dir. See [https://github.com/elastic/logstash/issues/6730](https://github.com/elastic/logstash/issues/6730)

Until then, please make sure you have different `path.data` directories.

---

<div class="post-metadata">

**Author:** ![dreampuf](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dreampuf](https://discuss.elastic.co/u/dreampuf)\
**Post date:** [February 25, 2017, 6:11pm UTC](https://discuss.elastic.co/t/x-pack-monitoring-support-multi-instances-of-logstash-in-one-node/74837/3 "2017-02-25T18:11:59Z")

</div>

Thank you @suyograo ! That's what I want.

---

<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 25, 2017, 6:12pm UTC](https://discuss.elastic.co/t/x-pack-monitoring-support-multi-instances-of-logstash-in-one-node/74837/4 "2017-03-25T18:12:39Z")

</div>

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