all things work fine , but when i created a new index and launch logstash by creating a conf file in /etc/logstash/conf.d the i restarted logstash, so i try to collect data unig "logstash -f" i have the following error:
usr/share/logstash/bin/logstash -f twitter_logstash.conf
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 ] 2019-06-27 11:51:47.697 [LogStash::Runner] multilocal - Ignoring the 'pipelines.yml' file because modules or command line options are specified
[FATAL] 2019-06-27 11:51:47.722 [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] 2019-06-27 11:51:47.734 [LogStash::Runner] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit
[FATAL] 2019-06-27 11:51:47.722 [LogStash::Runner] runner - Logstash could not be started because there is already another instance using the configured data directory. If you wish trun multiple instances, you must change the "path.data" setting.`
Logstash probably is already running on your server. Two instances of Logstash trying to access to path.data.
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.