hec

Python Splunk Forwarder

Splunk

This is just a very simple Splunk data forwarder created for POC purposes and to present basic functionality. Some variables have been removed so you need to implement them on your own for this to work. The code includes a simple HTTP post, that uploads the event to a Splunk HEC URL of your choice
The code can also be found on my github

import json

import requests