-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshipper.conf_kafka
64 lines (51 loc) · 1.2 KB
/
shipper.conf_kafka
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
input{
file {
path => ["/mnt/jetty/jetty-kmbms/logs/*","/mnt/jetty/jetty-kmbms-clustera/logs/*"]
type => "kmbms"
sincedb_path => "/mnt/logstash-2.3.3/sincedb_path/logpostion"
codec => multiline {
pattern => "^DEBUG|INFO|ERROR [0-9][0-9][0-9][0-9]"
negate => true
what => "previous"
}
}
file {
path => ["/mnt/jetty/jetty-kmall/logs/*","/mnt/jetty/jetty-kmall-clustera/logs/*"]
type => "kmall"
sincedb_path => "/mnt/logstash-2.3.3/sincedb_path/logpostion"
codec => multiline {
pattern => "^DEBUG|INFO|ERROR [0-9][0-9][0-9][0-9]"
negate => true
what => "previous"
}
}
file {
path => "/mnt/nginx/kmall/*"
type => "uat-visit"
sincedb_path => "/mnt/logstash-2.3.3/sincedb_path/logpostion"
codec => "json"
}
}
output{
if [type] == "kmbms"{
kafka {
workers => 1
bootstrap_servers => "localhost:9092"
topic_id => "kmbms"
}
}
if [type] == "kmall"{
kafka {
workers => 1
bootstrap_servers => "localhost:9092"
topic_id => "kmall"
}
}
if [type] == "uat-visit"{
kafka {
workers => 1
bootstrap_servers => "localhost:9092"
topic_id => "uat-visit"
}
}
}