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
syslogng_kafka.util.parse_nat_msg(msg)[source]

Parse a syslog message from the nat program into a python dictionary.

Parameters:msg – nat msg from syslog
Returns:a dictionary of nat related key value pairs
syslogng_kafka.util.parse_str_list(list_str)[source]

Parse a string containing comma separated values and return a list of strings.

Parameters:list_str – a string containing a comma separated list of strings
Returns:a list of string Python builtin object.

Module contents