Imported Upstream version 2.7
[ossec-hids.git] / src / config / csyslogd-config.h
1 /* @(#) $Id: ./src/config/csyslogd-config.h, 2011/09/08 dcid Exp $
2  */
3
4 /* Copyright (C) 2009 Trend Micro Inc.
5  * All right reserved.
6  *
7  * This program is a free software; you can redistribute it
8  * and/or modify it under the terms of the GNU General Public
9  * License (version 2) as published by the FSF - Free Software
10  * Foundation
11  */
12
13
14 #include "shared.h"
15
16
17 #ifndef _CSYSLOGCONFIG__H
18 #define _CSYSLOGCONFIG__H
19
20
21 /* Database config structure */
22 typedef struct _SyslogConfig
23 {
24     unsigned int port;
25     unsigned int format;
26     unsigned int level;
27     unsigned int *rule_id;
28     unsigned int priority;
29     int socket;
30
31     char *server;
32     OSMatch *group;
33     OSMatch *location;
34 }SyslogConfig;
35
36
37 /* Syslog formats. */
38 #define DEFAULT_CSYSLOG  0
39 #define CEF_CSYSLOG      1
40 #define JSON_CSYSLOG     2
41 #define SPLUNK_CSYSLOG   3
42
43
44 /* Syslog severities */
45 #define SLOG_EMERG   0   /* system is unusable */
46 #define SLOG_ALERT   1   /* action must be taken immediately */
47 #define SLOG_CRIT    2   /* critical conditions */
48 #define SLOG_ERR     3   /* error conditions */
49 #define SLOG_WARNING 4   /* warning conditions */
50 #define SLOG_NOTICE  5   /* normal but significant condition */
51 #define SLOG_INFO    6   /* informational */
52 #define SLOG_DEBUG   7   /* debug-level messages */
53
54 #endif