# Logstash monitoring help not seeing in Kibana

**URL:** https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689
**Category:** Logstash
**Tags:** elastic-stack-monitoring
**Created:** [May 1, 2022, 10:52pm UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689 "2022-05-01T22:52:23Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![Mary2022](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@Mary2022](https://discuss.elastic.co/u/Mary2022)
#### Post date: [May 1, 2022, 10:52pm UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/1 "2022-05-01T22:52:23Z")

</div>

Hi,

I am new to ELK and I have been trying to follow the guides and so far I have been abled to install version 7.17 in our 2 kibana nodes and our 3 elasticsearch nodes. If I go to Kibana and look under Cluster Overview I can see the my ES and Kibana nodes but not my Logstash nodes.

I have not install any beats or metricbeats on logasth or ES or kibana.  
I haven't install/comfigure any pipeline.

Do I need to install Metricbeats to see my nodes in Kibana?  
Do I need to write a pipeline to start seeing my nodes ?

I used curl from logstash to ES without issue using my logstash\_system username and password/ But from ES to logstash I can't .

So far

My logstash.yml file has the following configuration:

node.name: logstash-01  
path.data: /var/lib/logstash

config.debug: true  
log.level: debug

# X-Pack Monitoring

xpack.monitoring.enabled: false  
xpack.monitoring.elasticsearch.username: logstash\_system  
xpack.monitoring.elasticsearch.password: password  
xpack.monitoring.elasticsearch.hosts: ["[https://es-01:9200](https://es-01:9200)", "[https://es-02:9200](https://es-02:9200)"]  
xpack.monitoring.elasticsearch.ssl.certificate\_authority: ["/path/to/ca.crt"]  
xpack.monitoring.elasticsearch.ssl.keystore.path: logstash.jks  
xpack.monitoring.elasticsearch.ssl.keystore.password: password  
xpack.monitoring.elasticsearch.ssl.verification\_mode: certificate  
#xpack.monitoring.elasticsearch.sniffing: false  
#xpack.monitoring.collection.interval: 10s  
#xpack.monitoring.collection.pipeline.details.enabled: true

# X-Pack Management

xpack.management.enabled: false  
#xpack.management.pipeline.id: ["main", "apache\_logs"]  
xpack.management.elasticsearch.username: logstash\_admin\_user  
xpack.management.elasticsearch.password: password

xpack.management.elasticsearch.hosts: ["[https://es-01:9200](https://es-01:9200)", "[https://es-02:9200](https://es-02:9200)"]  
xpack.management.elasticsearch.ssl.certificate\_authority: ["ca.crt"]  
xpack.management.elasticsearch.ssl.keystore.path: logstash.jks  
xpack.management.elasticsearch.ssl.keystore.password: password  
xpack.management.elasticsearch.ssl.verification\_mode: certificate  
#xpack.management.elasticsearch.sniffing: false  
#xpack.management.logstash.poll\_interval: 5s

I didn't find anything in the logs of elasticsearch that can help me but the only error I have in the logstash logs is this.

[ERROR][logstash.inputs.metrics] Failed to create monitoring event {:message=\>"For path: events. Map keys: [:reloads, :pipelines]", :error=\>"LogStash::Instrument::MetricStore::MetricNotFound"}

Please help

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 2, 2022, 12:04am UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/2 "2022-05-02T00:04:43Z")

</div>

Hi @Mary2022 Welcome to the community.

It looks like you want to use the legacy deprecated monitoring... I would recommend moving over to metricbeat if this is going to be a production system.

But for legacy.... If so [per the docs](https://www.elastic.co/guide/en/logstash/current/monitoring-internal-collection-legacy.html) shouldn't

`xpack.monitoring.enabled: false`

Be

`xpack.monitoring.enabled: true`

Also, with this legacy method you need to set some settings in Elasticsearch as well. That is why I would suggest using the metricbeat method.

> **[Collect Logstash monitoring data with Metricbeat | Logstash Reference \[8.1\] |...](https://www.elastic.co/guide/en/logstash/current/monitoring-with-metricbeat.html)**

Also Please format your code going forward format button. It will make it easier for all of us to understand what your current settings are vs what you're trying to accomplish,.

---

<div class="post-metadata">

### Author: ![Mary2022](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@Mary2022](https://discuss.elastic.co/u/Mary2022)
#### Post date: [May 3, 2022, 6:49am UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/3 "2022-05-03T06:49:35Z")

</div>

It was a typo it is to true.  
Yesterday I checked and the .monitor\_logstash index is not in kibana either. I did a query and I saw the ones for kibana and Elasticsearch.

I also installed metricbeat in one of my logstash per the ELK documentation . The data showed up under Beat in Kibana but the logstash node still no show up under the ELK cluster.

Do I need to create the index or a pipeline? I didn't have to do that for ES or Kibana.

I see the logs how the index is created and new snapshots taken but they don't show up in Kibana.

Any help will be appreciated.

```auto
xpack.monitoring.enabled: true
xpack.monitoring.Elasticsearch.username: logstash_system
xpack.monitoring.Elasticsearch.password: password
xpack.monitoring.Elasticsearch.hosts: ["https://es-01:9200", "https://es-02:9200", "https://es-03:9200"]
xpack.monitoring.Elasticsearch.ssl.certificate_authority: ["/etc/pki/ca.crt"]
xpack.monitoring.Elasticsearch.ssl.keystore.path: /etc/pki/logstash.jks
xpack.monitoring.Elasticsearch.ssl.keystore.password: password
xpack.monitoring.Elasticsearch.ssl.verification_mode: certificate
#xpack.monitoring.Elasticsearch.sniffing: false
xpack.monitoring.collection.interval: 10s
xpack.monitoring.collection.pipeline.details.enabled: true

xpack.management.enabled: true
#xpack.management.pipeline.id: ["main", "apache_logs"]
xpack.management.Elasticsearch.username: logstash_admin_user
xpack.management.Elasticsearch.password: password
xpack.management.Elasticsearch.hosts: ["https://es-01:9200", "https://es-02:9200", "https://es-03:9200"]
xpack.management.Elasticsearch.ssl.certificate_authority: ["/etc/pki/ca.crt"]
xpack.management.Elasticsearch.ssl.keystore.path: /etc/pki/logstash.jks
xpack.management.Elasticsearch.ssl.keystore.password: password
xpack.management.Elasticsearch.ssl.verification_mode: certificate
#xpack.management.Elasticsearch.sniffing: false
#xpack.management.logstash.poll_interval: 5s

```

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 3, 2022, 1:52pm UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/4 "2022-05-03T13:52:12Z")

</div>

Please share your metricbeat configuration. If it data showed up under beats That means That most likely you did not have a configure correctly.

did you enable the logstash module and then configured the logstash module and then ran setup and then started beats.

Please share your metricbeat.yml and the modules.d/logstash.yml

Plus, if you use the beat you need to turn off the self monitoring / deprecated monitoring in logstash.yml

---

<div class="post-metadata">

### Author: ![Mary2022](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@Mary2022](https://discuss.elastic.co/u/Mary2022)
#### Post date: [May 4, 2022, 11:45am UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/5 "2022-05-04T11:45:23Z")

</div>

I enabled metricbeats and the logstash-xpack module and the beat-xpack module.  
I ran setup no error there  
I ran metricbeat test modules and I saw the following error:

```auto
beat...
  state...
    error... ERROR HTTP error 404 in: 404 Not Found
state...
    error... ERROR HTTP error 404 in: 404 Not Found
  state...
    error... ERROR HTTP error 404 in: 404 Not Found
state...
    error... ERROR HTTP error 404 in: 404 Not Found

logstash...
  node...
     error... ERROR timeout waiting for an event
 node_stats...
     error... ERROR timeout waiting for an event.

```

below my files

metricbeats.yml

```auto
#============================ Config Reloading ===============================

metricbeat.config.modules:
  path: ${path.config}/modules.d/*.yml

  reload.period: 10s

  reload.enabled: true

#======================Elasticsearch Template settings#=========================*
setup.template.settings:
    index.number_of_shards: 1
   index.codec: best_compression

 #===============================Kibana==================================*
setup.kibana:

     host: ["https://kiba-01:5601","https://kiba-02:5601"]
   #The protocol: https was added by me. It was not in the file.
     protocol: "https"
  
#=======================Elasticsearch Output==================================
output.elasticsearch:
   hosts: ["https://es-01:9200","https://es-02:9200",https://es-03:9200"]
protocol: "https"
username: "username"
password: "password"

#=============================Processors===============================
processors:
 -add_host_metadata: ~

#=============================Logging======
logging.level=debug
#=============================X-Pack Monitoring==============================
monitoring.enabled: true

```

beat-xpack.yml

```auto
- module: beat
  period: 10s
  hosts: ["https://es-01:9200","https://es-02:9200",https://es-03:9200"]
  username: "username"
  password: "password"

  xpack.enabled=true

```

logstash-xpack.yml

```auto

- module: logstash
metricsets:
  - node
  - node_stats
period: 10s
hosts: ["https://logstash-i01:9600","https://logstash-i02:9600"]
username: username
password: password
xpack.enabled: true

```

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 4, 2022, 2:44pm UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/6 "2022-05-04T14:44:12Z")

</div>

Hi @Mary2022

I see a couple issues I think so lets back up a bit and will help clarify a few things I hope.

I am not sure if they are simple cut and past issues but there are a number of syntax / indentation issues with your files.

1st lets focus on monitoring logstash

Make sure you comment all this in the logstash yml

```auto
# xpack.monitoring.enabled: true
# xpack.monitoring.Elasticsearch.username: logstash_system
# xpack.monitoring.Elasticsearch.password: password
# xpack.monitoring.Elasticsearch.hosts: ["https://es-01:9200", "https://es-02:9200", "https://es-03:9200"]
# xpack.monitoring.Elasticsearch.ssl.certificate_authority: ["/etc/pki/ca.crt"]
# xpack.monitoring.Elasticsearch.ssl.keystore.path: /etc/pki/logstash.jks
# xpack.monitoring.Elasticsearch.ssl.keystore.password: password
# xpack.monitoring.Elasticsearch.ssl.verification_mode: certificate
# xpack.monitoring.Elasticsearch.sniffing: false
# xpack.monitoring.collection.interval: 10s
# xpack.monitoring.collection.pipeline.details.enabled: true

```

2nd the metricbeat.yml file should look like this... you will probably need to put fix ssl setting under the `setup.kibana` and `output.elasticsearch` settings once you get it working

```auto
#============================ Config Reloading ===============================

metricbeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.period: 10s
  reload.enabled: true

#======================Elasticsearch Template settings#=========================*
setup.template.settings:
  index.number_of_shards: 1
  index.codec: best_compression

 #===============================Kibana==================================*
setup.kibana:
  # FIXED
  host: ["https://kiba-01:5601","https://kiba-02:5601"]
  # FIX AFTER YOU GET WORKING
  ssl.verification_mode: "none"

  
#=======================Elasticsearch Output==================================
output.elasticsearch:
  hosts: ["https://es-01:9200","https://es-02:9200",https://es-03:9200"]
  protocol: "https"
  username: "username"
  password: "password"
  # FIX AFTER YOU GET WORKING
  ssl.verification_mode: "none"

#=============================Processors===============================
processors:
 -add_host_metadata: ~

#=============================Logging======
# You had this incorrect logging.level=debug
logging.level: debug
#=============================X-Pack Monitoring==============================
# This self enables monitoring of this beat so you don't need the beats-xpack
monitoring.enabled: true

```

3rd remove / disable the beat-xpack.yml you do not need it and it is miss-configured.

4th your logstsash-xpack.yml should look like this.  
Note I temporarily put it the `ssl.verification_mode: "none"` once you get it working you will need to put in the ssl information about the logstash ssl cert

```auto
- module: logstash
  period: 10s
  hosts: ["https://logstash-i01:9600","https://logstash-i02:9600"]
  username: username
  password: password
  xpack.enabled: true
  # FIX AFTER YOU GET WORKING
  ssl.verification_mode: "none"

```

run setup and test again...

Let us know how it goes...

**BIG NOTE you need / should to actually be monitoring Elasticsearch** as well to see so also enable the `elasticsearch-xpack` module and get that running too....  
Not sure if you did that or not...

```auto
- module: elasticsearch
  xpack.enabled: true
  period: 10s
  hosts: ["https://localhost:9200"]
  username: "elastic"
  password: "sakdfjhsldfkjhasdf"
  ssl.verification_mode : "none"

```

Using this... This is what I have now...

 ![Screen Shot 2022-05-04 at 8.15.49 AM](https://us1.discourse-cdn.com/elastic/original/3X/e/e/ee3e742fe95580ee67557788dec362a89f7990f1.png)

---

<div class="post-metadata">

### Author: ![Mary2022](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@Mary2022](https://discuss.elastic.co/u/Mary2022)
#### Post date: [May 4, 2022, 4:36pm UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/7 "2022-05-04T16:36:49Z")

</div>

I did the changes you suggested above and I still feel like I am missing something. I know I am close but not usre what I am missing.

Now I only get the following error when I run metricbeats test modules

```auto
logstash...
  node...
     error... ERROR timeout waiting for an event
 node_stats...
     error... ERROR timeout waiting for an event.

```

I only have one pipeline running as a test. Maybe I should use a very basic pipeline? Its like is waiting for the data but I don't know what else to do to generate the events.

My kibana doesn't have an index pattern yet and I haven't create the indixes because I am waiting to first have to monitoring part working.

I also did the Elasticsearch module in the logstash server.

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 4, 2022, 5:11pm UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/8 "2022-05-04T17:11:55Z")

</div>

I realized something

Logstash module ... you probably have not enabled authentication ... or did you? if not

```auto
- module: logstash
  period: 10s
  hosts: ["https://logstash-i01:9600","https://logstash-i02:9600"]
  # username: username
  # password: password
  xpack.enabled: true
  # FIX AFTER YOU GET WORKING
  ssl.verification_mode: "none"

```

That error looks like it can not connect to logstash at `"https://logstash-i02:9600"` do you really have ssl enabled for the logstash api endpoint? Did you configure these settings in the logstash.yml... if so please share your entire logstash.yml.

Perhaps it is really just `hosts: ["http://logstash-i01:9600","http://logstash-i02:9600"]`

> [@Mary2022](#):
>
> I also did the Elasticsearch module in the logstash server.

Not sure what that means... you setup up the `elasticsearch-xpack` module in metricbeat?

If So... Did the cluster monitoring show up in kibana?

---

<div class="post-metadata">

### Author: ![Mary2022](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@Mary2022](https://discuss.elastic.co/u/Mary2022)
#### Post date: [May 4, 2022, 5:44pm UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/9 "2022-05-04T17:44:40Z")

</div>

Sorry, I tried to say that I enabled the elasticsearc-xpack module in metricbeat in the logstash node.

---

<div class="post-metadata">

### Author: ![Mary2022](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@Mary2022](https://discuss.elastic.co/u/Mary2022)
#### Post date: [May 4, 2022, 5:46pm UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/10 "2022-05-04T17:46:38Z")

</div>

I forgot to mention that my 3 Elasticsearch nodes and 2 kibana nodes don't have metricbeats install or configured. They still using the legacy method.

Can I keep testing my logstash node using metricbeats and leave the rest using legacy collectors for now?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 4, 2022, 6:36pm UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/11 "2022-05-04T18:36:55Z")

</div>

> [@Mary2022](#):
>
> Can I keep testing my logstash node using metricbeats and leave the rest using legacy collectors for now?

Hmmmm I am not sure... me I would not mix and match (not sure that is a supported configuration).. .could be a cause of some of your issues... you can try it.

---

<div class="post-metadata">

### Author: ![Mary2022](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@Mary2022](https://discuss.elastic.co/u/Mary2022)
#### Post date: [May 5, 2022, 11:34am UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/12 "2022-05-05T11:34:18Z")

</div>

Thanks so much, it is working now. I had API configured but the api.enabled was not to set for true.

I have a couple of questions moving forward.

What are the settings/properties I need to fix to perform SSL verification?

```auto
ssl.verification_mode: "none"

```

Why it is suggested to enable the Elasticsearch-xpack module in the logstash node?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 5, 2022, 2:12pm UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/13 "2022-05-05T14:12:39Z")

</div>

> [@Mary2022](#):
>
> Why it is suggested to enable the Elasticsearch-xpack module in the logstash node?

If you are talking about this?

> [@stephenb](#):
>
> **BIG NOTE you need / should to actually be monitoring Elasticsearch** as well to see so also enable the `elasticsearch-xpack` module and get that running too....  
> Not sure if you did that or not...

What I really mean is that you need / should be monitoring elasticsearch as well as logstash, the elasticsearch monitoring does not have to be on that logstash server .... but I thought that was the only place you were monitoring from

then you said this...

> [@Mary2022](#):
>
> I forgot to mention that my 3 Elasticsearch nodes and 2 kibana nodes don't have metricbeats install or configured. They still using the legacy method.

so you are monitoring elasticsearch that was the point... you need to be monitoring elasticsearch as well as logstash, where you monitoring elasticsearch from is up to you.

> [@Mary2022](#):
>
> What are the settings/properties I need to fix to perform SSL verification?
> 
> ```auto
> ssl.verification_mode: "none"
> 
> ```

See [here](https://www.elastic.co/guide/en/beats/metricbeat/current/configuration-ssl.html)

---

<div class="post-metadata">

### Author: ![Mary2022](https://avatars.discourse-cdn.com/v4/letter/m/e8c25b/32.png) [@Mary2022](https://discuss.elastic.co/u/Mary2022)
#### Post date: [May 17, 2022, 11:06am UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/14 "2022-05-17T11:06:38Z")

</div>

First of all thanks so much for all your help. Our cluster has been working great.

Just a couple of updates, information, and questions.

We don't have a separate cluster for monitoring.  
We installed metricbeat in both of our logstash servers.  
We also enabled the following modules in our logstash server.

- elastic-xpack
- logstash-xpack
- kibana-xpack

We did it to have some redundancy in case one of our logstash nodes/servers go down for any reason.

question:  
I created a pipeline and added the new pipeline id to our logstash.yml file.

```auto
xpack.management.pipeline.id: ["main", "apache_logs"]

```

After doing this we noticed our logstash stop showing up under the cluster dashboard.

Is that normal?

---

<div class="post-metadata">

### Author: ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)
#### Post date: [May 17, 2022, 2:54pm UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/15 "2022-05-17T14:54:40Z")

</div>

> [@Mary2022](#):
>
> question:  
> I created a pipeline and added the new pipeline id to our logstash.yml file.
> 
> ```auto
> xpack.management.pipeline.id: ["main", "apache_logs"]
> 
> ```
> 
> After doing this we noticed our logstash stop showing up under the cluster dashboard.
> 
> Is that normal?

Apologies I am a bit confused.

```auto
xpack.management.pipeline.id: ["main", "apache_logs"]

```

That setting is for centralized pipeline management not monitoring so I am unclear of the topic.

_"After doing this we noticed our logstash stop showing up under the cluster dashboard."_

I am not sure if you mean

a) Disappeared from the centralized Pipeline management screen... No Not Normal... probably a configuration issues...

b) Disappeared from the Stack Monitoring... no not normal.

---

<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 14, 2022, 2:55pm UTC](https://discuss.elastic.co/t/logstash-monitoring-help-not-seeing-in-kibana/303689/16 "2022-06-14T14:55:42Z")

</div>

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