Exit after logstash finish to upload all data

Hi ,

When I'm using this command to upload data to ElasticSearch from Logstash , I'm using this command:
bin/logstash -f logstash.conf_test1
If I want to return to the prompt , I need to press CTRL+C.
Can I run the data upload and return to the prompt after the upload is done without pressing CTRL+C ?

BR,
Chen

You have a few options:

  • Write a script that monitors the sincedb file and shuts down Logstash when the file has been processed according to sincedb.
  • Use the stdin input (but then you won't be able to resume if Logstash aborts).
  • Wait for the file input to get this feature. There's a GitHub issue for it.

Thanks :slight_smile: