Logstash

hi , i am new to elastic stack . i am configuring filebeat logstash elasticsearch kibana. and i am getting some error. please help me as soon as possible. thank you.

root@ip-10-0-1-187:~# sudo /usr/share/logstash/bin/logstash -e 'input { stdin{ } } output { stdout{ } }'
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.headius.backport9.modules.Modules (file:/usr/share/logstash/logstash-core/lib/jars/jruby-complete-9.2.11.1.jar) to method sun.nio.ch.NativeThread.signal(long)
WARNING: Please consider reporting this to the maintainers of com.headius.backport9.modules.Modules
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console
[WARN ] 2020-08-16 15:26:53.456 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified
[FATAL] 2020-08-16 15:26:53.466 [LogStash::Runner] runner - Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the "path.data" setting.
[ERROR] 2020-08-16 15:26:53.468 [LogStash::Runner] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

Looks like Logstash is running already.

ps -ef | grep logstash

Run that and see if there is an instance still running. If so kill it and run again. Use CTRL C to break a logstash pipeline if it doesn't terminate automatically. If not then it can lead to this again.

  • Not sure what command to use if running Windows.

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