Skip to content

Instantly share code, notes, and snippets.

@ank-everstake
ank-everstake / gelf_to_file.py
Last active October 28, 2023 09:48 — forked from idlethreat/gelf-listener.py
Gelf Log Listener in Python
#!/usr/bin/env python
############### // gelfListener 0.2 // ###############
#
# Listens on UDP 12201 for Gelf messages
# Extracts the event data and writes the message to disk
# updated to handle both zlib (nxlog) and gzip (graylog server) compressed events
# not perfect, but works okay
#
# Bugs: