1 /* @(#) $Id: logcollector.h,v 1.28 2009/11/03 21:07:32 dcid Exp $ */
3 /* Copyright (C) 2009 Trend Micro Inc.
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 3) as published by the FSF - Free Software
19 #define ARGV0 "ossec-logcollector"
24 #include "config/localfile-config.h"
25 #include "config/config.h"
30 /*** Function prototypes ***/
33 /* Read logcollector config */
34 int LogCollectorConfig(char * cfgfile);
36 /* Stary log collector daemon */
37 void LogCollectorStart();
40 int handle_file(int i, int do_fseek, int do_log);
42 /* Read syslog file */
43 void *read_syslog(int pos, int *rc, int drop_it);
45 /* Read snort full file */
46 void *read_snortfull(int pos, int *rc, int drop_it);
48 /* Read nmap grepable format */
49 void *read_nmapg(int pos, int *rc, int drop_it);
51 /* Read mysql log format */
52 void *read_mysql_log(int pos, int *rc, int drop_it);
54 /* Read mysql log format */
55 void *read_mssql_log(int pos, int *rc, int drop_it);
57 /* Read postgresql log format */
58 void *read_postgresql_log(int pos, int *rc, int drop_it);
60 /* Read DJB multilog format */
61 /* Initializes multilog. */
62 int init_djbmultilog(int pos);
63 void *read_djbmultilog(int pos, int *rc, int drop_it);
66 /* Read events from output of command */
67 void *read_command(int pos, int *rc, int drop_it);
74 void win_read_vista_sec();
78 /*** Global variables ***/
83 int open_file_attempts;