08ed723ee4b753f4d9e395824cd47f4e0cf85b9d
[ossec-hids.git] / src / config / csyslogd-config.h
1 /* @(#) $Id$ */
2
3 /* Copyright (C) 2009 Trend Micro Inc.
4  * All right reserved.
5  *
6  * This program is a free software; you can redistribute it
7  * and/or modify it under the terms of the GNU General Public
8  * License (version 2) as published by the FSF - Free Software
9  * Foundation
10  */
11
12
13 #include "shared.h"
14  
15
16 #ifndef _CSYSLOGCONFIG__H
17 #define _CSYSLOGCONFIG__H
18
19
20 /* Database config structure */
21 typedef struct _SyslogConfig
22 {
23     unsigned int port;
24     unsigned int format;
25     unsigned int level;
26     unsigned int *rule_id;
27     unsigned int priority;
28     int socket;
29
30     char *server;
31     OSMatch *group;
32     OSMatch *location;
33 }SyslogConfig;
34
35
36 /* Syslog formats. */
37 #define DEFAULT_CSYSLOG  0
38
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