-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsyslog.cfg
56 lines (48 loc) · 1.07 KB
/
syslog.cfg
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Alienvault plugin
# Author: Alienvault Team at devel@alienvault.com
# Plugin syslog id:4007 version: 0.0.2
# Last modification: 2015-05-13 16:11
#
# Plugin Selection Info:
# Syslog:Syslog:-
#
# END-HEADER
# Accepted products:
# syslog - syslog -
# Description:
#
#
#
[DEFAULT]
plugin_id=4007
[config]
type=detector
enable=yes
source=log
location=/var/log/syslog
create_file=true
process=
start=no
stop=no
startup=
shutdown=
[syslog - datamining]
event_type=event
regexp="^(?P<logline>(\SYSLOG_DATE)\s+(?P<sensor>\S+)\s+(?P<source>\S+)\s+(?P<generator>[^\[]*)\[(?P<pid>\d+)\]:(?P<logged_event>.*))$"
device={resolv($sensor)}
date={normalize_date($1)}
plugin_sid=1
src_ip={resolv($sensor)}
userdata1={md5sum($logline)}
userdata3={$generator}
userdata4={$logged_event}
userdata5={$pid}
[syslog - datamining - all]
event_type=event
regexp="^(?P<logline>(?P<date>\SYSLOG_DATE)\s+(?P<sensor>\S+)\s+(?P<source>\S+)\s+(?P<logged_event>.*)$)"
device={resolv($sensor)}
date={normalize_date($date)}
plugin_sid=1
src_ip={resolv($sensor)}
userdata1={md5sum($logline)}
userdata3={$logged_event}