-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEIDA-logging.conf
52 lines (50 loc) · 1.44 KB
/
EIDA-logging.conf
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
## Read the input from TCP/5000
input {
tcp {
port => 5000
}
}
## Add your filters
filter {
grok {
match => { "message" => "%{COMBINEDAPACHELOG}"}
}
date {
match => [ "timestamp", "dd/MMM/yyyy:HH:mm:ss Z" ]
}
geoip {
source => "clientip"
}
mutate {
convert => ["response", "integer"]
convert => ["bytes", "integer"]
}
}
output {
if [request] =~ /eidaws\/wfcatalog/ {
elasticsearch {
hosts => "elasticsearch:9200"
index => "wfcatalog"
}
} else if [request] =~ /fdsnws\/dataselect/ {
elasticsearch {
hosts => "elasticsearch:9200"
index => "dataselect"
}
} else if [request] =~ /fdsnws\/station/ {
elasticsearch {
hosts => "elasticsearch:9200"
index => "station"
}
} else if [request] =~ /eidaws\/routing/ {
elasticsearch {
hosts => "elasticsearch:9200"
index => "routing"
}
} else {
elasticsearch {
hosts => "elasticsearch:9200"
index => "apache"
}
}
}