Skip to content

Extract the last alert found in a .log file, given a date as a parameter - Use case: Wazuh log file

License

Notifications You must be signed in to change notification settings

rshad/Extract-Information-from-Log-files-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT

Extract data from Log file and Parse it using Python

Project Description

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.

Directory structure

  • In /src you can find the source code of the script.
  • In /output you can find an example of the output after running the script
  • In /data you can find the log file to be parsed.

How to run it

An example to run the log, can be like:

python getLastAlertLog.py -i ../data/alerts.log -o ../output/lastAlert.txt -d 2018/01/14

About

Extract the last alert found in a .log file, given a date as a parameter - Use case: Wazuh log file

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy