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! 🚧