Wrapper for zeek-cut within Python3
Find a file
2025-06-16 08:24:29 +02:00
LICENSE Initial commit 2020-03-02 08:31:18 +01:00
README.md Update README.md 2025-06-16 08:24:29 +02:00
zeekcut.py Fixed a bug in method >convert< 2020-10-29 15:26:10 +01:00

PyZeekCut

Wrapper fo use zeek-cut within Python 3 Executes: cat logfile | zeek-cut ...

Usage:

zeeklog = ZeekCut(ZEEK_LOGFILE, columns = ['COLUMN': 'VALUE', ,..], options = ['ARGUMENT'],...)

zeeklog.data => List of dictionaries containing the columns

zeeklog.gentsv() => line-by-line generator for CSV format

zeeklog.json() => returns .data as a string in JSON format

zeeklog.convert() => try to convert values to int, float or IPv4/6Address