Hi! I am new to ELK, hopefully someone can understand my problem here.
I've ingested data via logstash into elasticsearch, but I need to clear all of that data and re-ingest it.
My goal is to time how long it takes to ingest a large data set using Logstash, but when I try to ingest the same data set again I get the message 'Logstash could not be started because there is already another instance using the configured data directory.' Using bash.
Shut down any running Logstash instances, delete any indexes in ES, and delete any sincedb files. See the file input documentation for more on where the sincedb files are located.
It works once or twice after restarting, but then gives me the 'another instance' error message. As I mentioned, I am not very experienced with this software, but need to test and ingest a lot of data.
Hitting Ctrl+C should abort that process cleanly, but in any case the "Logstash could not be started because there is already another instance using the configured data directory" error happens when there's a lockfile in the data subdirectory. Normally that file shouldn't be left behind, but if it is and you really don't have any Logstash instances running you can delete the file.
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.