examples/projects/realtime-log-monitoring/filebeat-pathway-slack/README.md
The purpose of this project is to do an end-to-end application with Pathway to monitors logs (such as nginx logs). It connects Filebeat to Pathway (via Kafka) and send the alerts to a Slack channel.
The project is organized in four docker containers:
The logs are processed as follows (in ./pathway-src/alerts.py):
How to install the project:
./pathway-src/alerts.pyHow to launch the project:
make in the root repo. It will start all the four containersmake connect to connect to the Filebeat container../generate_input_stream.sh to launch the stream generation from the Filebeat container.The updates should be received directly in your Slack channel.
You can use make connect-pathway to connect to the pathway container.
By adding a pw.io.csv.write(log_table, "./logs.csv") you can see the logs by typing cat logs.csv from the pathway container.
To stop, use make stop.