The problem occurs if you dont chose "time based data" properly when creating the index. If you dont want to use timestamp chose it. Only if you chose properly it will work. Otherwise, discover will not show anything.
How to chose “time based data”? Can you show me how can I solve it? If you mean time in Kibana then I must say that it is a Log for today and as you see, I selected "Today".
When you create a new index in kibana, i think you created one as i can see in the figure you attached. Did you chose
"Time filter field name"?? If you have any field which you want to act as timefilter chose from the drop down list. Otherwise, chose "I dont want to use to timefilter". If you dont do this index will be created but discover will not show up any data. Hth.
Sorry, still not working. I am not an expert here. But, faced similar issue and solved it like i mentioned here. Maybe you need to wait for experts comment now.
Up to me, the main problem is that you have a wrong index mapping.
Question : why do you put logstash between beats and elasticsearch ?
Beats can directly send data to elasticsearch. And when it does that, it puts the right template mapping for your data.
If you use Winlogbeat, it could be relevant to import specific Winlogbeat elasticsearch mapping template and kibana dashboards.
My index is "beat" as you see in config file.
Thus, I don't need "Logstash". OK, I disabled it.
but if I want to use a diagram like below then what should I do:
"Winlogbeat -> Logstash -> Elasticsearch -> Kibana".
by default, Logstash elasticsearch output puts its own index template into elasticsearch. A template that is relevant with Logstash logs.
in your case, Logstash template is not relevant because it is winlogbeat data.
If you wish winlogbeat data is correctly ingested into elasticsearch, you have to put winlogbeat template into elasticsearch
you have to disable template management in Logstash elasticsearch output using manage_template => false
finally, if you think I said "you did set this setting", you misunderstand me. Sorry to tell that, but when I say "You have to", it means "You must" (it is synonym). So yes, you have not set this setting, and if you want that it works, you must set this setting.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.