Using filebeat to trigger a python code


Can i use filebeat to monitor a directory and trigger a python code as soon as a new file is received in that directory? What changes do i need and where.

Filebeat is not built to do this sort of thing.

Perhaps if you can explain what the script does we can suggest other options.

We wanted to use filebeat more like a filewatcher. Capture the incoming filename, pass that as an argument to a python code and then the python code does transformation on that incoming file data.

What does the script do? Why not use Logstash for it?

If the incoming file is zipped, the python code will unzip the files, the read each unzipped file and apply some transformation rules on that file content.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.