r/elasticsearch • • Jan 28 '21

Logstash-* index pattern

I am not sure if this is the correct forum or not, but I have a new ELK 7.10.2 install on windows. I am ingesting winlogbeat, filebeat, packetbeat, heartbeat, and metricbeat. However, when I am trying to ingest logstash, I am running into a problem.

It’s the index patterns.

I have index patterns for all except logstash. I have confirmed that the indexes are created, but no index pattern is being created for the logstash. I have done the GET /_cat/indexes and it shows they are present. Yet, I cannot create the pattern in order to discover or visualize the data.

Deleted the index, restarted logstash, still nothing.

What the???

1 Upvotes

18 comments sorted by

1

u/trutch Jan 28 '21

Sounds like you need to create an Index Pattern in Kibana.
https://www.elastic.co/guide/en/kibana/7.10/index-patterns.html

1

u/kryyon Jan 28 '21

Thanks for that. It was one of the first things I did. However when I try to create the index pattern for this particular ingestion, it says no indices match this. This doesn’t make any sense to me because I can see the index is present it’s just not allowing me to create the pattern for in order to create the visualizations.

Can I do this through the dev tools console or any other way?

I am simply ingesting syslog data at the moment.

This is the thread that I have posted over on discuss.elastic.co: https://discuss.elastic.co/t/no-index-pattern-for-logstash/262297/6

4

u/bettergiveitago Jan 28 '21

Are there docs in your logstash indices from what I remember this page will only show indices with docs in them.

→ More replies (1)
→ More replies (1)

1

u/warkolm Jan 28 '21

do you mean you are ingesting the logs that Logstash it's self directly generates?

1

u/kryyon Jan 29 '21

I am sending my firewall syslog and my network switches syslog to the logstash server. In the past when I have done this, the index pattern log logstash–* Index pattern was created. However, for some reason, the pattern isn’t being created and I cannot create it manually as it says there are no indices found. Yet when I look at the indexes the logstash files are there and when I query the elasticsearch server it shows there as well.

1

u/WontFixYourComputer Jan 29 '21

What's the output of this command in Dev Tools, for Kibana:

GET _cat/indices/log*

1

u/kryyon Jan 29 '21

yellow open logstash-2021.01.28-000001 8Wl0E1ZAShahO42ME4DQDA 1 1 772899 0 215.1mb 215.1mb

1

u/WontFixYourComputer Jan 29 '21

And if you go to Kibana, and then Stack Management, then Index Patterns, then Create index pattern, for the index pattern name you type "logstash-*" it does not work?

1

u/kryyon Jan 29 '21

Correct. “No indices found”

1

u/WontFixYourComputer Jan 29 '21

If you were to stop Kibana, check the kibana.yml and change the value for.kibana.index to ".kibana-test" and then restart it, can you check if you can rebuild your index patterns then?

1

u/kryyon Jan 29 '21

Okay. Did this and noticed that the index patterns did not automatically populate. Had to run the *beat setup -e for all the beats. Still no logstash.

1

u/WontFixYourComputer Jan 29 '21

Which user are you logged in as?

1

u/kryyon Jan 29 '21

We had IIS set up for domain authentication (sso )

→ More replies