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 2) 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 multi line logs. */
61 void *read_multiline(int pos, int *rc, int drop_it);
63 /* Read DJB multilog format */
64 /* Initializes multilog. */
65 int init_djbmultilog(int pos);
66 void *read_djbmultilog(int pos, int *rc, int drop_it);
69 /* Read events from output of command */
70 void *read_command(int pos, int *rc, int drop_it);
71 void *read_fullcommand(int pos, int *rc, int drop_it);
78 void win_read_vista_sec();
82 /*** Global variables ***/
87 int open_file_attempts;