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

SCEnumCharMap* SCSyslogGetFacilityMap ( void  )

returns the syslog facility enum map

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

References sc_syslog_facility_map.

Referenced by OutputJsonInitCtx(), SCLogAllocLogOPBuffer(), SCLogInitOPIfaceCtx(), and SCLogLoadConfig().

Here is the caller graph for this function:

SCEnumCharMap* SCSyslogGetLogLevelMap ( void  )

returns the syslog facility enum map

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

References sc_syslog_level_map.

Referenced by OutputJsonInitCtx().

Here is the caller graph for this function:

Variable Documentation

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 }
}
#define LOG_USER
Definition: win32-syslog.h:49
#define LOG_LOCAL3
Definition: win32-syslog.h:65
#define LOG_LOCAL1
Definition: win32-syslog.h:63
#define LOG_LOCAL2
Definition: win32-syslog.h:64
#define LOG_FTP
Definition: win32-syslog.h:59
#define LOG_LOCAL0
Definition: win32-syslog.h:62
#define LOG_MAIL
Definition: win32-syslog.h:50
#define LOG_SYSLOG
Definition: win32-syslog.h:53
#define LOG_AUTHPRIV
Definition: win32-syslog.h:58
#define LOG_LOCAL6
Definition: win32-syslog.h:68
#define LOG_CRON
Definition: win32-syslog.h:57
#define LOG_LPR
Definition: win32-syslog.h:54
#define LOG_NEWS
Definition: win32-syslog.h:55
#define LOG_LOCAL5
Definition: win32-syslog.h:67
#define LOG_DAEMON
Definition: win32-syslog.h:51
#define LOG_KERN
Definition: win32-syslog.h:48
#define LOG_LOCAL4
Definition: win32-syslog.h:66
#define LOG_UUCP
Definition: win32-syslog.h:56
#define LOG_LOCAL7
Definition: win32-syslog.h:69
#define LOG_AUTH
Definition: win32-syslog.h:52

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

Referenced by SCSyslogGetFacilityMap().

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 }
}
#define LOG_WARNING
Definition: win32-syslog.h:43
#define LOG_INFO
Definition: win32-syslog.h:45
#define LOG_ERR
Definition: win32-syslog.h:42
#define LOG_CRIT
Definition: win32-syslog.h:41
#define LOG_NOTICE
Definition: win32-syslog.h:44
#define LOG_ALERT
Definition: win32-syslog.h:40
#define LOG_DEBUG
Definition: win32-syslog.h:46
#define LOG_EMERG
Definition: win32-syslog.h:39

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

Referenced by SCSyslogGetLogLevelMap().