-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautomation.conf
More file actions
executable file
·50 lines (38 loc) · 1.08 KB
/
automation.conf
File metadata and controls
executable file
·50 lines (38 loc) · 1.08 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
input {
file {
path => "/opt/automation/*"
start_position => "beginning"
ignore_older => 0
type => "n"
sincedb_path => "/dev/null"
}
}
filter {
if [type] == "n" {
csv {
separator => ","
columns => ["Client","Automata Name","Total Alerts","Diagnosed","Remediated","Failed","Connectivity Failed","Failure Rate","Remediation Rate","Remediation Switched To Diagnosis","Switched %","CMDB Failed","CMDB Failed %"]
}
mutate {convert => ["Total Alerts", "float"] }
mutate {convert => ["Diagnosed", "float"] }
mutate {convert => ["Remediated", "float"] }
mutate {convert => ["Failed", "float"] }
mutate {convert => ["Connectivity Failed", "float"] }
mutate { remove_field => ["Failure Rate","Remediation Rate","Remediation Switched To Diagnosis","Switched %","CMDB Failed","CMDB Failed %"] }
}
uuid {
target => "uuid"
overwrite => true
}
}
output {
if [type] == "n" {
elasticsearch {
hosts => ["10.5.112.121:9200", "10.5.112.122:9200"]
index => "automation"
document_type => "auto1"
document_id => "%{uuid}"
}
stdout {codec => rubydebug}
}
}