summaryrefslogtreecommitdiffstats
path: root/include/sh_log_correlate.h
blob: 9c22014a5aa059c9299e2c26b18bca7398d9c8a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef SH_LOG_CORRELATE_H
#define SH_LOG_CORRELATE_H

/* Clean up everything.
 */
void sh_keep_destroy();

/* Add an event 
 */
int sh_keep_add(sh_string * label, unsigned long delay, time_t last);

/* Add an event sequence matching rule 
 */
int sh_keep_match_add(const char * str, const char * queue, const char * pattern);

/* Delete the list of event sequence matching rules
 */
void sh_keep_match_del();

/* Try to find correlated events
 */
void sh_keep_match();

/* Deadtime for a correlation rule
 */
int sh_keep_deadtime (const char * str);

#endif