1 /* @(#) $Id: ./src/logcollector/logcollector.h, 2012/03/28 dcid Exp $
4 /* Copyright (C) 2009 Trend Micro Inc.
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
20 #define ARGV0 "ossec-logcollector"
25 #include "config/localfile-config.h"
26 #include "config/config.h"
31 /*** Function prototypes ***/
34 /* Read logcollector config */
35 int LogCollectorConfig(char * cfgfile, int accept_remote);
37 /* Stary log collector daemon */
38 void LogCollectorStart();
41 int handle_file(int i, int do_fseek, int do_log);
43 /* Read syslog file */
44 void *read_syslog(int pos, int *rc, int drop_it);
46 /* Read snort full file */
47 void *read_snortfull(int pos, int *rc, int drop_it);
49 /* Read ossec alert file */
50 void *read_ossecalert(int pos, int *rc, int drop_it);
52 /* Read nmap grepable format */
53 void *read_nmapg(int pos, int *rc, int drop_it);
55 /* Read mysql log format */
56 void *read_mysql_log(int pos, int *rc, int drop_it);
58 /* Read mysql log format */
59 void *read_mssql_log(int pos, int *rc, int drop_it);
61 /* Read postgresql log format */
62 void *read_postgresql_log(int pos, int *rc, int drop_it);
64 /* read multi line logs. */
65 void *read_multiline(int pos, int *rc, int drop_it);
67 /* Read DJB multilog format */
68 /* Initializes multilog. */
69 int init_djbmultilog(int pos);
70 void *read_djbmultilog(int pos, int *rc, int drop_it);
73 /* Read events from output of command */
74 void *read_command(int pos, int *rc, int drop_it);
75 void *read_fullcommand(int pos, int *rc, int drop_it);
82 void win_read_vista_sec();
83 void win_start_event_channel(char *evt_log, char future, char *query);
84 void win_format_event_string(char *string);
88 /*** Global variables ***/
93 int open_file_attempts;