Skip to content

markusthilo/PyZeekCut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

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 tab stop separation of colums

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

About

Wrapper for zeek-cut within Python3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages