This example filters log file entries by starting tag and sends them to a remote listener. The listener prints the logs it receives to terminal.
cd path/to/simstream/examples/logfile_checker
python log_streamer.py
cd path/to/simstream/examples/logfile_checker
python log_consumer.py
cd path/to/simstream/examples/logfile_checker
chmod 700 generate_logs.sh
./generate_logs.sh
This will write logs to test.txt
. The Publisher will continuously check for new logs, filter based on the [STATUS] and [ERROR] tags, and send the filtered results to the RabbitMQ server. The Consumer will receive the filtered log entries and print them to the terminal.