Using filebeat to trigger a python code


(Ashay) #1

Hi

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.


(Mark Walkom) #2

Filebeat is not built to do this sort of thing.

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


(Ashay) #3

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.


(Mark Walkom) #4

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


(Ashay) #5

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.


(system) #6

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