forked from luizcarlosfaria/EnterpriseApplicationLog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
access.logstash.conf
57 lines (50 loc) · 1.25 KB
/
access.logstash.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
53
54
55
56
input {
rabbitmq {
# ack => true
subscription_retry_interval_seconds => 2
durable => true
host => "AMQPServer"
vhost => "EnterpriseLog"
queue => "ApplicationLog"
port => 5672
user => "logUser"
password => "logPwd"
passive => false
prefetch_count => 10
threads => 1
# type => "Log"
}
}
filter {
date {
match => [ "date", "yyyy-MM-dd HH:mm:ss Z" ]
target => "date"
}
geoip {
source => "ipv4"
}
useragent {
source => "agent"
target => "agent"
}
}
output {
elasticsearch {
action => "index"
codec => "json"
# flush_size => ... # number (optional), default: 5000
# idle_flush_time => ... # number (optional), default: 1
hosts => ["elasticsearch"]
index => "logstash-%{+YYYY.MM.dd}"
document_type => "access"
template_name => "logstash_template"
template => "/config/logstash_template.json"
# index_type => ... # string (optional)
# manage_template => ... # boolean (optional), default: true
# node_name => ... # string (optional)
# port => ... # string (optional)
# protocol => ... # string, one of ["node", "transport", "http"] (optional)
# template_overwrite => ... # boolean (optional), default: false
# workers => 2
}
}