logstash server 配置文件
|
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
|
input {
redis {
host => "10.10.45.200"
data_type => "list"
key => "elk_frontend_access:redis"
port =>"5379"
}
}
output {
if [type] == "www1_access"{
elasticsearch {
hosts => "10.10.45.200:8201"
index => "logstash-www1-frontend-%{+YYYY.MM.dd}"
}
}
if [type] == "flight1_access"{
elasticsearch {
hosts => "10.10.45.200:8201"
index => "logstash-flight1-frontend-%{+YYYY.MM.dd}"
}
}
if [type] == "www_access"{
elasticsearch {
hosts => "10.10.45.200:8201"
index => "logstash-www-frontend-%{+YYYY.MM.dd}"
}
}
if [type] == "m_access"{
elasticsearch {
hosts => "10.10.45.200:8201"
index => "logstash-m-frontend-%{+YYYY.MM.dd}"
}
}
if [type] == "ro_access"{
elasticsearch {
hosts => "10.10.45.200:8201"
index => "logstash-ro-frontend-%{+YYYY.MM.dd}"
}
}
}
|
本文转自1321385590 51CTO博客,原文链接:http://blog.51cto.com/linux10000/1941430,如需转载请自行联系原作者