Python Splunk Forwarder


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

Python homework part.3


Soooo... I sort of got lost in doing the exercises and completed 15 exercises since the last one. I think I'll just post the more demanding ones so there will be between one to two examples of what I did per subject. I'll include some screenshots again on how the programs functioned. I've only got two subjects left after these ones. I hope I can manage to complete them today. First up is sub-functions.

Python homework part.2



This time we only had four exercises dealing with the reading, writing in, overwriting and searching documents with python.

I managed to complete all of these quite quickly and only found a challenge in the exercise 3/4 which you can see below. I'll ad some screenshots to these too from here on.


Read a document called faktat.txt and print what it said.


Python3 programming part 1



I enrolled in a python3 beginner course and will also be posting some work I've done for the course. I'll skip some of the more basic stuff. Some things written here like certain bits of console output will be in Finnish again due to some course requirements. The VIOPE system that we submit our code in to expects everything to be word for word the same as has been put in it.

Hello World in Python3


print("Hei Maailma!")