Skip to content

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.

Notifications You must be signed in to change notification settings

AbdinasirM/SplunkAutomation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Splunk Log Forwarding - Overview

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.

πŸ“‚ Project Structure

/  
β”‚  
β”œβ”€β”€ 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  

How It Works

  • Windows Logs – Collected using win32evtlog to extract Event Viewer logs.
  • Linux Logs – Logs are retrieved using journalctl and dmesg commands.
  • Log Upload – Logs are sent to Splunk over TCP in JSON format.
  • Automation – The main.py script in both folders triggers all log scripts at once.

πŸ› οΈ Setup

  • Windows – Requires Python 3, pywin32, and Administrator privileges.
  • Linux – Requires Python 3, journalctl, and dmesg.

πŸ“˜ Instructions

  • Follow the platform-specific README files in the windows and linux folders for installation and setup.
  • Update Splunk server IP and port in each script before running.

Contributions and suggestions are welcome! 🚧

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages