-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtools.conf
More file actions
executable file
·112 lines (84 loc) · 1.65 KB
/
tools.conf
File metadata and controls
executable file
·112 lines (84 loc) · 1.65 KB
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
input {
file {
path => "/opt/toolsteam/xaa"
start_position => "beginning"
ignore_older => 0
type => "k"
sincedb_path => "/dev/null"
}
file {
path => "/opt/toolsteam/xab"
start_position => "beginning"
ignore_older => 0
type => "l"
sincedb_path => "/dev/null"
}
file {
path => "/opt/toolsteam/xac"
start_position => "beginning"
ignore_older => 0
type => "m"
sincedb_path => "/dev/null"
}
}
filter {
if [type] == "k" {
csv {
separator => ","
columns => ["column1","column2","column3","column4","column5","column6","column7","column8","column9"]
}
uuid {
target => "uuid"
overwrite => true
}
}
if [type] == "l" {
csv {
separator => ","
columns => ["Serial Number","Initiative Name ","Planned Start Date","Planned End Date","Status","Comments"]
}
uuid {
target => "uuid"
overwrite => true
}
}
if [type] == "m" {
csv {
separator => ","
columns => ["column1","column2","column3"]
}
uuid {
target => "uuid"
overwrite => true
}
}
}
output {
if [type] == "k" {
elasticsearch {
hosts => ["10.5.112.121:9200", "10.5.112.122:9200"]
index => "tools1"
document_type => "tool1"
document_id => "%{uuid}"
}
stdout {codec => rubydebug}
}
if [type] == "l" {
elasticsearch {
hosts => ["10.5.112.121:9200", "10.5.112.122:9200"]
index => "tools2"
document_type => "tool2"
document_id => "%{uuid}"
}
stdout {codec => rubydebug}
}
if [type] == "m" {
elasticsearch {
hosts => ["10.5.112.121:9200", "10.5.112.122:9200"]
index => "tools3"
document_type => "tool3"
document_id => "%{uuid}"
}
stdout {codec => rubydebug}
}
}