When I run logstash with this configuration file ( [root@lcmci021 bin]# ./logstash --path.settings /etc/logstash -f test.conf) they return me this message : Sending Logstash's logs to /var/log/logstash which is now configured via log4j2.properties
But he don't return me the log.
When I go see the logstash log I find the following error: 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.
But I do not understand because I have only one logstash install on the server. How do I check if there are two? And how to delete one of the two?
It's not complaining that you have two Logstash installations. It's complaining that you're trying to run the same installation in two processes that share the same data directory.
The simplest way around this is probably to use the --path.data command line option to point the second Logstash process to another directory (e.g. a temporary one that you throw away afterwards).
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.