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