This repository contains Python scripts for forwarding system logs (Application, Security, and System) from both Windows and Linux machines to a Splunk server over TCP.
/
β
βββ Linux_version/
β βββ application_log.py
β βββ security_log.py
β βββ system_log.py
β βββ README.md
β βββ main.py
β
βββ Windows_version/
β βββ application_log.py
β βββ security_log.py
β βββ system_log.py
β βββ README.md
β βββ main.py
β
βββ README.md
- Windows Logs β Collected using
win32evtlogto extract Event Viewer logs. - Linux Logs β Logs are retrieved using
journalctlanddmesgcommands. - Log Upload β Logs are sent to Splunk over TCP in JSON format.
- Automation β The
main.pyscript in both folders triggers all log scripts at once.
- Windows β Requires Python 3,
pywin32, and Administrator privileges. - Linux β Requires Python 3,
journalctl, anddmesg.
- Follow the platform-specific README files in the
windowsandlinuxfolders for installation and setup. - Update Splunk server IP and port in each script before running.
Contributions and suggestions are welcome! π§