# Logstash Instance Missing from Kibana Monitoring

**URL:** <https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734>\
**Category:** Logstash\
**Created:** [June 20, 2019, 5:06pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734 "2019-06-20T17:06:44Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakecramer17](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jakecramer17](https://discuss.elastic.co/u/jakecramer17)\
**Post date:** [June 20, 2019, 5:06pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/1 "2019-06-20T17:06:44Z")

</div>

I've configured Filebeat to output sample logs to Logstash. Through Logstash, I've set my \*.conf file to output the data to Elasticsearch. My end goal is to get my log information to appear in Kibana's Discover tab.

There are a few good indications that the data successfully made it to Elasticsearch. For instance, when I run the ` curl 'http://es-host:9200/_cat/indices?v'` command...

 ![Capture4](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c198adcdfea1600076eacf08a419f252afa846a5.png)

...the index successfully appears here. Kibana also sees this index in my production cluster, which seems like good news...

 ![Capture3](https://us1.discourse-cdn.com/elastic/original/3X/5/b/5b471c92a2162c881d45be1395c39a733f995ce0.png)

...however, Kibana does not see the instance of Logstash in my production cluster, only the index (The number under "Logstash" remains 0):

 ![Capture2](https://us1.discourse-cdn.com/elastic/original/3X/5/3/53258b124b44455f435651846d0df296d4efe12f.png)

When I try to create an index pattern, the "logstash-2019.06.19-000001" index is completely missing from the list of indices I can usually choose to create an index pattern. I've let time pass for Kibana to update its UI but the problem persists. I am not accessing an Elasticsearch instance remotely. For now, Filebeat, Logstash, and Elasticsearch are running on the same machine.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 20, 2019, 6:10pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/2 "2019-06-20T18:10:20Z")

</div>

I am not going to address the issue of what appears when you try to create an index pattern since that is not a logstash issue.

What do see in the logstash logs when it starts up? There should be monitoring related messages....

---

<div class="post-metadata">

**Author:** ![jakecramer17](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jakecramer17](https://discuss.elastic.co/u/jakecramer17)\
**Post date:** [June 20, 2019, 7:46pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/3 "2019-06-20T19:46:25Z")

</div>

I'm running the latest versions of ELK. My configuration is based on this page:  
[https://www.elastic.co/guide/en/logstash/current/advanced-pipeline.html#advanced-pipeline](https://www.elastic.co/guide/en/logstash/current/advanced-pipeline.html#advanced-pipeline)

The Logstash log information is [here](https://pastebin.com/tbwaRFVd). There are no unusual errors.

To test my pipeline, I ran the command,  
`curl -XGET '10.200.26.185:9200/logstash-2019.06.19-000001/_search?pretty&q=response=200'`

The terminal returned the enriched sample [log data](https://pastebin.com/dicweRgu) as expected.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 20, 2019, 7:59pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/4 "2019-06-20T19:59:11Z")

</div>

There is no license check message, which suggests to me that you do not have monitoring enabled. If you run with --log.level debug what value does it print for xpack.monitoring.enabled?

---

<div class="post-metadata">

**Author:** ![jakecramer17](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jakecramer17](https://discuss.elastic.co/u/jakecramer17)\
**Post date:** [June 24, 2019, 3:14pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/6 "2019-06-24T15:14:29Z")

</div>

I'm not really sure how or what command to utilize "--log.level". I restarted Logstash with xpack.monitoring.enabled manually set. Unfortunately, the issue persists.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 24, 2019, 3:15pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/7 "2019-06-24T15:15:47Z")

</div>

Add '--log.level debug' to the logstash command line.

---

<div class="post-metadata">

**Author:** ![jakecramer17](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jakecramer17](https://discuss.elastic.co/u/jakecramer17)\
**Post date:** [June 24, 2019, 3:34pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/8 "2019-06-24T15:34:45Z")

</div>

I appended '--log.level debug' at the end of the command that starts Logstash.

I ran the command `bin/logstash -f /etc/logstash/conf.d/first-pipeline.conf --config.reload.automatic --log.level debug
`

I received a very, very long list of [DEBUG] messages. I couldn't find one relevant to the xpack.monitoring.enabled value.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 24, 2019, 3:42pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/9 "2019-06-24T15:42:27Z")

</div>

> [@jakecramer17](#):
>
> I received a very, very long list of [DEBUG] messages. I couldn't find one relevant to the xpack.monitoring.enabled value.

I can think of no explanation for it not being there. I get these amongst the xpack configuration setting logged.

```auto
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.enabled: false
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.collection.interval: 10000000000
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.collection.timeout_interval: 600000000000
[2019-06-24T15:39:30,747][DEBUG][logstash.runner] xpack.monitoring.elasticsearch.username: "logstash_system"
[2019-06-24T15:39:30,747][DEBUG][logstash.runner] xpack.monitoring.elasticsearch.ssl.verification_mode: "certificate"
[2019-06-24T15:39:30,747][DEBUG][logstash.runner] xpack.monitoring.elasticsearch.sniffing: false
[2019-06-24T15:39:30,747][DEBUG][logstash.runner] xpack.monitoring.collection.pipeline.details.enabled: true
[2019-06-24T15:39:30,747][DEBUG][logstash.runner] xpack.monitoring.collection.config.enabled: true

```

---

<div class="post-metadata">

**Author:** ![jakecramer17](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jakecramer17](https://discuss.elastic.co/u/jakecramer17)\
**Post date:** [June 24, 2019, 3:48pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/10 "2019-06-24T15:48:23Z")

</div>

I apologize. You're right. It was difficult to find with the log being so large. I found:

```auto
[DEBUG] 2019-06-24 08:29:28.345 [LogStash::Runner] runner - xpack.monitoring.enabled: false
[DEBUG] 2019-06-24 08:29:28.345 [LogStash::Runner] runner - xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
[DEBUG] 2019-06-24 08:29:28.347 [LogStash::Runner] runner - xpack.monitoring.collection.interval: 10000000000
[DEBUG] 2019-06-24 08:29:28.347 [LogStash::Runner] runner - xpack.monitoring.collection.timeout_interval: 600000000000
[DEBUG] 2019-06-24 08:29:28.347 [LogStash::Runner] runner - xpack.monitoring.elasticsearch.username: "logstash_system"
[DEBUG] 2019-06-24 08:29:28.347 [LogStash::Runner] runner - xpack.monitoring.elasticsearch.ssl.verification_mode: "certificate"
[DEBUG] 2019-06-24 08:29:28.347 [LogStash::Runner] runner - xpack.monitoring.elasticsearch.sniffing: false
[DEBUG] 2019-06-24 08:29:28.347 [LogStash::Runner] runner - xpack.monitoring.collection.pipeline.details.enabled: true
[DEBUG] 2019-06-24 08:29:28.347 [LogStash::Runner] runner - xpack.monitoring.collection.config.enabled: true

```

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 24, 2019, 4:00pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/11 "2019-06-24T16:00:49Z")

</div>

OK, so you do not have monitoring enabled. What do you get for

```
grep xpack.monitoring.enabled /etc/logstash/logstash.yml

```

The markdown I used was three backticks on a line before and after the text. Thus

````
```
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.enabled: false
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.collection.interval: 10000000000
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.collection.timeout_interval: 600000000000
[2019-06-24T15:39:30,747][DEBUG][logstash.runner] xpack.monitoring.elasticsearch.username: "logstash_system"
```

````

will appear as

```auto
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.enabled: false
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.collection.interval: 10000000000
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.collection.timeout_interval: 600000000000
[2019-06-24T15:39:30,747][DEBUG][logstash.runner] xpack.monitoring.elasticsearch.username: "logstash_system"

```

If you precede a line with 4 spaces

```auto
    [2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.enabled: false
    [2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
    [2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.collection.interval: 10000000000
    [2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.collection.timeout_interval: 600000000000
    [2019-06-24T15:39:30,747][DEBUG][logstash.runner] xpack.monitoring.elasticsearch.username: "logstash_system"

```

Then it is rendered as

```
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.enabled: false
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.elasticsearch.hosts: ["http://localhost:9200"]
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.collection.interval: 10000000000
[2019-06-24T15:39:30,746][DEBUG][logstash.runner] xpack.monitoring.collection.timeout_interval: 600000000000
[2019-06-24T15:39:30,747][DEBUG][logstash.runner] xpack.monitoring.elasticsearch.username: "logstash_system"

```

The effect of these on single lines is slightly different.

---

<div class="post-metadata">

**Author:** ![jakecramer17](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jakecramer17](https://discuss.elastic.co/u/jakecramer17)\
**Post date:** [June 24, 2019, 4:09pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/12 "2019-06-24T16:09:25Z")

</div>

I had manually set the xpack.monitoring.enabled to true before running the debug. It's enabled, according to `grep`, but the debug while it runs says it's not.

```auto
[root@localhost logstash]# grep xpack.monitoring.enabled /etc/logstash/logstash.yml 
xpack.monitoring.enabled: true

```

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 24, 2019, 5:44pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/13 "2019-06-24T17:44:31Z")

</div>

If you have updated logstash.yml and logstash is not reading it then path.setting does not have the value you expect. The debug output should show path.settings a couple of lines above the xpack values. Something like

```
[2019-06-24T15:39:30,742][DEBUG][logstash.runner] *path.settings: "/etc/logstash" (default: "/usr/share/logstash/config")
```

---

<div class="post-metadata">

**Author:** ![jakecramer17](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jakecramer17](https://discuss.elastic.co/u/jakecramer17)\
**Post date:** [June 24, 2019, 6:15pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/14 "2019-06-24T18:15:54Z")

</div>

Yes, I see what you're talking about. Here is what the debug lists:

```auto
[DEBUG] 2019-06-24 11:09:18.834 [LogStash::Runner] runner - path.settings: "/usr/share/logstash/config"

```

In fact, this directory does not exist for me (nor has it ever).

```auto
[root@localhost logstash]# pwd
/usr/share/logstash
[root@localhost logstash]# ls
bin Gemfile LICENSE.txt modules vendor
CONTRIBUTORS Gemfile.lock logstash-core NOTICE.TXT x-pack
data lib logstash-core-plugin-api tools
[root@localhost logstash]# cd config
bash: cd: config: No such file or directory

```

I installed this using rpm. Should I change `path.settings` to "`/etc/logstash`" as that is the directory of my logstash.yml file? If so, how can I do this?

---

<div class="post-metadata">

**Author:** ![jakecramer17](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jakecramer17](https://discuss.elastic.co/u/jakecramer17)\
**Post date:** [June 24, 2019, 6:51pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/15 "2019-06-24T18:51:14Z")

</div>

Okay. Progress is being made. To change `path.settings` temporarily, I appended  
`--path.settings /etc/logstash` to the Logstash command line. The debug output showed me this:

```auto
[2019-06-24T11:40:57,743][DEBUG][logstash.runner] *xpack.monitoring.enabled: true (default: false)

```

The default [output logs](https://pastebin.com/6WjU2Eqy) now show the license check message you were referring to. I'm not sure what to do at this point.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 24, 2019, 7:05pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/16 "2019-06-24T19:05:41Z")

</div>

> [@jakecramer17](#):
>
> [DEBUG][logstash.runner] \*xpack.monitoring.enabled: true (default: false)

If you are getting this message by logstash still does not show up in kibana I would start a new thread saying that and asking for suggestions. I do not run xpack, so I have no idea.

---

<div class="post-metadata">

**Author:** ![jakecramer17](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@jakecramer17](https://discuss.elastic.co/u/jakecramer17)\
**Post date:** [June 24, 2019, 8:35pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/17 "2019-06-24T20:35:06Z")

</div>

I got it!

Thanks to [this thread](https://discuss.elastic.co/t/monitoring-logstash/162120), I found out that the commented path for `xpack.monitoring.elasticsearch.hosts` began with "`https://`", when it was supposed to be "`http://`" (remove the 's'). This was why Logstash was unable to retrieve my license information and failed to fetch my X-pack information from elasticsearch.

My problem was fixed by first correcting the `path.settings` field so Logstash would not ignore my configurations, then correcting the `xpack.monitoring.elasticsearch.hosts` field. Now Logstash is being monitored like I had hoped!

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/8/b8e4de53ab788dc697c0c31832f55698bd74b039.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/5/656af66b96207c18929973f66cdc47848bed2d34.png)

---

<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:** [July 22, 2019, 8:35pm UTC](https://discuss.elastic.co/t/logstash-instance-missing-from-kibana-monitoring/186734/18 "2019-07-22T20:35:07Z")

</div>

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