syslogng_kafka package¶
Submodules¶
syslogng_kafka.kafkadriver module¶
syslogng_kafka.log module¶
A library that provides a custom logger for the KafkaDestination object.
syslogng_kafka.util module¶
Util library for the kakfa driver.
-
syslogng_kafka.util.
date_str_to_timestamp
(date_str)[source]¶ Convert ‘%b %d %H:%M:%S’ date string format to UNIX timestamp in local time assuming current year.
Parameters: date_str – string in ‘%b %d %H:%M:%S’ format. Returns: a string containing the UNIX timestamp
-
syslogng_kafka.util.
parse_firewall_msg
(msg)[source]¶ Parse a syslog message from the firewall program into a python dictionary.
Parameters: msg – firewall msg from syslog Returns: a dictionary of firewall related key value pairs