Python syslog.LOG_DAEMON Examples

The following are 7 code examples of syslog.LOG_DAEMON(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module syslog , or try the search function .
Example #1
Source File: parse.py    From LogESP with MIT License 5 votes vote down vote up
def __init__(self):
        """Initialize live parser"""
        self.parser = None
        self.parser_name = None
        self.event_type = None
        self.log_source = None
        syslog.openlog(facility=syslog.LOG_DAEMON) 
Example #2
Source File: core.py    From LogESP with MIT License 5 votes vote down vote up
def __init__(self, config='/opt/LogESP/config/parser.conf'):
        """Initialize live parser"""
        self.conf = config
        self.threads = []
        syslog.openlog(facility=syslog.LOG_DAEMON) 
Example #3
Source File: logespcore.py    From LogESP with MIT License 5 votes vote down vote up
def __init__(self):
        """Initialize daemon core object"""
        # Open our log facility:
        syslog.openlog(facility=syslog.LOG_DAEMON) 
Example #4
Source File: core.py    From LogESP with MIT License 5 votes vote down vote up
def __init__(self):
        """Initialize sentry core"""
        self.rule_types = {}
        self.threads = {}
        syslog.openlog(facility=syslog.LOG_DAEMON) 
Example #5
Source File: core.py    From LogESP with MIT License 5 votes vote down vote up
def __init__(self):
        """Initialize trigger engine"""
        self.rlist = []
        self.rules = []
        self.newrules = []
        self.threads = {}
        syslog.openlog(facility=syslog.LOG_DAEMON) 
Example #6
Source File: list.py    From LogESP with MIT License 5 votes vote down vote up
def __init__(self, rule):
        """Initialize trigger object"""
        self.rule = rule
        self.tzone = TIME_ZONE
        self.lasteventid = None
        self.justfired = False
        self.timeint = timedelta(minutes=self.rule.time_int)
        syslog.openlog(facility=syslog.LOG_DAEMON) 
Example #7
Source File: core.py    From LogESP with MIT License 5 votes vote down vote up
def __init__(self):
        """Initialize trigger engine"""
        self.rlist = []
        self.rules = []
        self.newrules = []
        self.threads = {}
        syslog.openlog(facility=syslog.LOG_DAEMON)