Extract the last alert, found after a date, given as a parameter. In this case the file is .log file, and was tested with Wazuh agent log file.
- In
/srcyou can find the source code of the script. - In
/outputyou can find an example of the output after running the script - In
/datayou can find the log file to be parsed.
An example to run the log, can be like:
python getLastAlertLog.py -i ../data/alerts.log -o ../output/lastAlert.txt -d 2018/01/14