Stop Filebeat automatically after it uploaded all log files

There is an option to configure Filebeat to stop automatically after it uploaded all log files?
Before every uploading log file I should to modify them.

No there's not because Filebeat assumes it needs to be running to scan files continually.

You can use the stdin input and cat the files into the process if you want to do a single run.

Okay. Thank you