# Can't start logstash after x-pack installation

**URL:** https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824
**Category:** Logstash
**Created:** [May 23, 2017, 2:21pm UTC](https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824 "2017-05-23T14:21:58Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![craftytech1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craftytech1/32/17067_2.png) [@craftytech1](https://discuss.elastic.co/u/craftytech1)
#### Post date: [May 23, 2017, 2:21pm UTC](https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824/1 "2017-05-23T14:21:59Z")

</div>

using elk 5.4.

After installing x-pack for elk stack 5.4, I'm now getting the error:

Failed to create monitoring event {:message=\>"For path: events", :error=\>"LogStash::Instrument::MetricStore::MetricNotFound"}

kibana and elasticsearch start fine, but logstash is having problems.

I'm using the logstash\_system credentials in logstash.yml, and I have tested the creds against the api:

curl -u logstash\_system '[http://localhost:9200/\_xpack/security/\_authenticate?pretty=true](http://localhost:9200/_xpack/security/_authenticate?pretty=true)'  
Enter host password for user 'logstash\_system':  
{  
"username" : "logstash\_system",  
"roles" : [  
"logstash\_system"  
],  
"full\_name" : null,  
"email" : null,  
"metadata" : {  
"\_reserved" : true  
},  
"enabled" : true  
}

What gives?

---

<div class="post-metadata">

### Author: ![orhiee](https://avatars.discourse-cdn.com/v4/letter/o/eb9ed0/32.png) [@orhiee](https://discuss.elastic.co/u/orhiee)
#### Post date: [May 23, 2017, 5:41pm UTC](https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824/2 "2017-05-23T17:41:05Z")

</div>

it could be many things, try running your config files one by one in debug to see the details

ps there are alot of topics like this they might be worth a look 🙂

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 24, 2017, 1:18am UTC](https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824/3 "2017-05-24T01:18:24Z")

</div>

Looks like LS is failing to create the metrics it uses for monitoring. Did you setup things as per [https://www.elastic.co/guide/en/x-pack/current/monitoring-logstash.html](https://www.elastic.co/guide/en/x-pack/current/monitoring-logstash.html)

---

<div class="post-metadata">

### Author: ![craftytech1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craftytech1/32/17067_2.png) [@craftytech1](https://discuss.elastic.co/u/craftytech1)
#### Post date: [May 24, 2017, 2:22am UTC](https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824/4 "2017-05-24T02:22:45Z")

</div>

I did Mark. When I look at monitoring from kibana, I can see both kibana and elasticsearch, but not LS. I'm using using the elastic credentials to test out, since elastic is a super user.

path.data: /var/lib/logstash  
path.config: /etc/logstash/conf.d  
path.logs: /var/log/logstash  
xpack.monitoring.elasticsearch.url: ["[http://127.0.0.1:9200](http://127.0.0.1:9200)"]  
xpack.monitoring.elasticsearch.username: "elastic"  
xpack.monitoring.elasticsearch.password: "xxxxxxxx"

I can even see monitoring indices being created. Which I'm retrieving using the same credentials as I'm using in LS.

curl -XGET 'localhost:9200/\_cat/indices?v&pretty' -u elastic:xxxxxxxx| grep monitor

yellow open .monitoring-kibana-2-2017.05.21 Tmoh5hNTRTuTH1s88MP4XQ 1 1 8638 0 1.9mb 1.9mb  
1yellow open .monitoring-logstash-2-2017.05.17 GvOG\_05mQomF0chFHPIX9Q 1 1 223 0 160.4kb 160.4kb  
0yellow open .monitoring-data-2 cXGS3hAJRxujGmf4SON\_-A 1 1 4 1 18kb 18kb  
0yellow open .monitoring-es-2-2017.05.24 CX5y8js4REKrAVX-sNotdQ 1 1 218509 5910 67.3mb 67.3mb  
yellow open .monitoring-kibana-2-2017.05.20 I5CAPkm2RKe4fGuiXpgbnA 1 1 8639 0 1.9mb 1.9mb  
1yellow open .monitoring-es-2-2017.05.18 SSx3mVxlQQiC4C0tsNR5ow 1 1 1576263 7910 503.8mb 503.8mb  
4yellow open .monitoring-kibana-2-2017.05.23 bmeaLa3URiGFNQrwZzw8UA 1 1 3366 0 906.8kb 906.8kb  
0yellow open .monitoring-kibana-2-2017.05.24 Dm-dK4A0RXC-gDABFHWzqA 1 1 852 0 283.8kb 283.8kb  
6yellow open .monitoring-kibana-2-2017.05.18 rjMf9UvxQoeNpfCsFn6e5w 1 1 8638 0 1.9mb 1.9mb  
1yellow open .monitoring-kibana-2-2017.05.19 Rfgwfzy1TSSmpcj2WASgkA 1 1 8639 0 1.9mb 1.9mb  
yellow open .monitoring-es-2-2017.05.20 eM1fuicaQnS4TDnyRBoUVw 1 1 1996475 7327 595.5mb 595.5mb

Pretty wild.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [May 24, 2017, 4:17am UTC](https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824/5 "2017-05-24T04:17:33Z")

</div>

Can you paste the entire error?

---

<div class="post-metadata">

### Author: ![craftytech1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craftytech1/32/17067_2.png) [@craftytech1](https://discuss.elastic.co/u/craftytech1)
#### Post date: [May 24, 2017, 9:36am UTC](https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824/6 "2017-05-24T09:36:06Z")

</div>

this is the whole message:

[2017-05-24T05:35:54,472][ERROR][logstash.inputs.metrics] Failed to create monitoring event {:message=\>"For path: events", :error=\>"LogStash::Instrument::MetricStore::MetricNotFound"}

---

<div class="post-metadata">

### Author: ![jsvd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsvd/32/6203_2.png) [@jsvd](https://discuss.elastic.co/u/jsvd)
#### Post date: [May 24, 2017, 9:46am UTC](https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824/7 "2017-05-24T09:46:24Z")

</div>

does this message prevent logstash from starting, or does it stop appearing during runtime?

---

<div class="post-metadata">

### Author: ![craftytech1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craftytech1/32/17067_2.png) [@craftytech1](https://discuss.elastic.co/u/craftytech1)
#### Post date: [May 24, 2017, 10:02am UTC](https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824/8 "2017-05-24T10:02:49Z")

</div>

it prevents logstash from starting up. The message keeps on coming every few seconds.

---

<div class="post-metadata">

### Author: ![jsvd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsvd/32/6203_2.png) [@jsvd](https://discuss.elastic.co/u/jsvd)
#### Post date: [May 24, 2017, 10:14am UTC](https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824/9 "2017-05-24T10:14:34Z")

</div>

is it possible for you to show me the pipeline configuration being used in logstash?

---

<div class="post-metadata">

### Author: ![craftytech1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/craftytech1/32/17067_2.png) [@craftytech1](https://discuss.elastic.co/u/craftytech1)
#### Post date: [May 24, 2017, 10:56am UTC](https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824/10 "2017-05-24T10:56:24Z")

</div>

I went ahead and reinstalled everything from scratch. renamed config and install folders alike. Everything works as expected now. too bad I couldn't reproduced what the issue was, but happy things are now normal. Thanks for your help guys.

---

<div class="post-metadata">

### Author: ![jsvd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsvd/32/6203_2.png) [@jsvd](https://discuss.elastic.co/u/jsvd)
#### Post date: [May 24, 2017, 10:58am UTC](https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824/11 "2017-05-24T10:58:45Z")

</div>

glad you're sorted out! please ping this thread if it happens again

---

<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: [June 21, 2017, 10:58am UTC](https://discuss.elastic.co/t/cant-start-logstash-after-x-pack-installation/86824/12 "2017-06-21T10:58:54Z")

</div>

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