-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.yml
90 lines (72 loc) · 1.76 KB
/
config.yml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
geoip:
ipinfo_asn: '/etc/geoip/country_asn.mmdb'
ipinfo_country: '/etc/geoip/country_asn.mmdb'
# ipinfo_location:
# maxmind_asn:
# maxmind_country:
# maxmind_city:
files:
- path: 'prod.log'
prefix: 'waf_prod_'
extract:
- name: time
regex: '(\d*:\d*(AM|PM))'
type: 'time'
time_format: '3:04PM'
- name: 'client'
search: '[client "<THIS>"]'
clean:
remove: '::ffff:'
- name: 'hostname'
search: '[hostname "<THIS>"]'
clean:
remove: '::ffff:'
- name: 'score'
regex: '.*\(Total Score: (\d*)\).*'
type: 'int'
fallback: '0'
- name: 'file'
search: '[file "<THIS>"]'
clean:
remove: '/etc/coraza-spoa/'
- name: 'rule_line'
search: '[line "<THIS>"]'
type: 'int'
- name: 'rule_id'
search: '[id "<THIS>"]'
type: 'int'
- name: 'msg'
search: '[msg "<THIS>"]'
- name: 'data'
search: '[data "<THIS>"]'
- name: 'severity'
search: '[severity "<THIS>"]'
- name: 'tags'
multiple: true
search: '[tag "<THIS>"]'
- name: 'uri'
search: '[uri "<THIS>"]'
- name: 'uid'
search: '[unique_id "<THIS>"]'
process:
- name: category
from: 'file'
regex: '\d-(.*?).conf'
clean:
remove: 'APPLICATION-ATTACK-'
- name: geoip_asn
geoip:
db: 'ipinfo_asn'
from: 'client'
clean:
remove: 'AS'
- name: geoip_as_name
geoip:
db: 'ipinfo_asn'
attribute: 'as_name'
from: 'client'
- name: geoip_country
geoip:
db: 'ipinfo_country'
from: 'client'