This is a simple python script that generates fake JSON data and send it to Splunk via TCP (Inspired by George Starcher's code)
- Python 3.x
-
Set the Splunk log collector (Universal Forwarder/Heavy Forwarder/Single Instance) IP and the listening port (in code line 24 and 25)
-
Execute the script with the command:
python3 splunkDataGeneratorTCP.py