I'm trying to build a SIEM, after searching for different solutions I wanted to try the ELK-Stack with Filebeat.
I've followed this tutorial, and occur the error at the end of the fourth part. I tried to reinstall, but got the exact same error.
Since I don't really know how this stack works I'm struggling to debug the problem.
I don't have any logs on filebeat, elasticsearch or logstash.
Running netstat show me that all of my services are correctly running and I can reach my Kibana web dashboard (which is empty).
Why is my logstash not sending data to my elasticsearch? Can filebeat be struggling to send data to logstash?
My different configuration files looks the same as in the tutorial.
Please note that step 1 indicates the usage of Elastic Cloud as it's much easier to set it up, but you can always run that locally, either with Docker compose or directly. You "just" need to start Elasticsearch and Kibana.
root@ELK-Stack:~# tail -f /var/log/elasticsearch/elasticsearch.log
[2024-03-14T14:44:44,528][ERROR][o.e.b.Elasticsearch ] [ELK-Stack] fatal exception while booting Elasticsearch
java.lang.RuntimeException: can not run elasticsearch as root
at org.elasticsearch.bootstrap.Elasticsearch.initializeNatives(Elasticsearch.java:282) ~[elasticsearch-8.12.2.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:167) ~[elasticsearch-8.12.2.jar:?]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:72) ~[elasticsearch-8.12.2.jar:?]
I tried a fresh install by following this topic, but got the same can not run elasticsearch as root
Should I just change the name of my topic as 'Struggling with ELK installation', or open a new one?
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.