suricata
util-syslog.c File Reference
#include "suricata-common.h"
#include "util-syslog.h"
Include dependency graph for util-syslog.c:

Go to the source code of this file.

Functions

SCEnumCharMapSCSyslogGetFacilityMap (void)
 returns the syslog facility enum map More...
 
SCEnumCharMapSCSyslogGetLogLevelMap (void)
 returns the syslog facility enum map More...
 

Variables

SCEnumCharMap sc_syslog_facility_map []
 
SCEnumCharMap sc_syslog_level_map []
 

Detailed Description

Author
Gurvinder Singh gurvi.nosp@m.nder.nosp@m.singh.nosp@m.dahi.nosp@m.ya@gm.nosp@m.ail..nosp@m.com

Syslog utility file

Definition in file util-syslog.c.

Function Documentation

◆ SCSyslogGetFacilityMap()

SCEnumCharMap* SCSyslogGetFacilityMap ( void  )

returns the syslog facility enum map

Definition at line 57 of file util-syslog.c.

References sc_syslog_facility_map.

◆ SCSyslogGetLogLevelMap()

SCEnumCharMap* SCSyslogGetLogLevelMap ( void  )

returns the syslog facility enum map

Definition at line 75 of file util-syslog.c.

References sc_syslog_level_map.

Variable Documentation

◆ sc_syslog_facility_map

SCEnumCharMap sc_syslog_facility_map[]
Initial value:
= {
{ "auth", LOG_AUTH },
{ "authpriv", LOG_AUTHPRIV },
{ "cron", LOG_CRON },
{ "daemon", LOG_DAEMON },
{ "ftp", LOG_FTP },
{ "kern", LOG_KERN },
{ "lpr", LOG_LPR },
{ "mail", LOG_MAIL },
{ "news", LOG_NEWS },
{ "security", LOG_AUTH },
{ "syslog", LOG_SYSLOG },
{ "user", LOG_USER },
{ "uucp", LOG_UUCP },
{ "local0", LOG_LOCAL0 },
{ "local1", LOG_LOCAL1 },
{ "local2", LOG_LOCAL2 },
{ "local3", LOG_LOCAL3 },
{ "local4", LOG_LOCAL4 },
{ "local5", LOG_LOCAL5 },
{ "local6", LOG_LOCAL6 },
{ "local7", LOG_LOCAL7 },
{ NULL, -1 }
}

Definition at line 31 of file util-syslog.c.

Referenced by SCSyslogGetFacilityMap().

◆ sc_syslog_level_map

SCEnumCharMap sc_syslog_level_map[]
Initial value:
= {
{ "Emergency", LOG_EMERG },
{ "Alert", LOG_ALERT },
{ "Critical", LOG_CRIT },
{ "Error", LOG_ERR },
{ "Warning", LOG_WARNING },
{ "Notice", LOG_NOTICE },
{ "Info", LOG_INFO },
{ "Debug", LOG_DEBUG },
{ NULL, -1 }
}

Definition at line 62 of file util-syslog.c.

Referenced by SCSyslogGetLogLevelMap().

LOG_KERN
#define LOG_KERN
Definition: win32-syslog.h:48
LOG_LPR
#define LOG_LPR
Definition: win32-syslog.h:54
LOG_NEWS
#define LOG_NEWS
Definition: win32-syslog.h:55
LOG_FTP
#define LOG_FTP
Definition: win32-syslog.h:59
LOG_LOCAL0
#define LOG_LOCAL0
Definition: win32-syslog.h:62
LOG_MAIL
#define LOG_MAIL
Definition: win32-syslog.h:50
LOG_LOCAL7
#define LOG_LOCAL7
Definition: win32-syslog.h:69
LOG_DAEMON
#define LOG_DAEMON
Definition: win32-syslog.h:51
LOG_DEBUG
#define LOG_DEBUG
Definition: win32-syslog.h:46
LOG_LOCAL3
#define LOG_LOCAL3
Definition: win32-syslog.h:65
LOG_NOTICE
#define LOG_NOTICE
Definition: win32-syslog.h:44
LOG_LOCAL5
#define LOG_LOCAL5
Definition: win32-syslog.h:67
LOG_LOCAL4
#define LOG_LOCAL4
Definition: win32-syslog.h:66
LOG_ALERT
#define LOG_ALERT
Definition: win32-syslog.h:40
LOG_EMERG
#define LOG_EMERG
Definition: win32-syslog.h:39
LOG_USER
#define LOG_USER
Definition: win32-syslog.h:49
LOG_UUCP
#define LOG_UUCP
Definition: win32-syslog.h:56
LOG_WARNING
#define LOG_WARNING
Definition: win32-syslog.h:43
LOG_CRIT
#define LOG_CRIT
Definition: win32-syslog.h:41
LOG_CRON
#define LOG_CRON
Definition: win32-syslog.h:57
LOG_LOCAL1
#define LOG_LOCAL1
Definition: win32-syslog.h:63
LOG_AUTH
#define LOG_AUTH
Definition: win32-syslog.h:52
LOG_LOCAL2
#define LOG_LOCAL2
Definition: win32-syslog.h:64
LOG_SYSLOG
#define LOG_SYSLOG
Definition: win32-syslog.h:53
LOG_AUTHPRIV
#define LOG_AUTHPRIV
Definition: win32-syslog.h:58
LOG_LOCAL6
#define LOG_LOCAL6
Definition: win32-syslog.h:68
LOG_INFO
#define LOG_INFO
Definition: win32-syslog.h:45
LOG_ERR
#define LOG_ERR
Definition: win32-syslog.h:42