-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtry.conf
More file actions
40 lines (33 loc) · 909 Bytes
/
try.conf
File metadata and controls
40 lines (33 loc) · 909 Bytes
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 {
file {
path => "/home/nik/Desktop/democsv.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
csv {
separator => ","
skip_header => "true"
columns => ["Batch_ID","Source","Entity","No_of_files","Records_Processed","Records_Rejected","Status","Duration_in_secs","Error_Msg"]
add_field => {'datetime' => '%{Batch_ID}' }
}
date {
match => [ "datetime" , 'yyyy-MM-dd-HH:mm:ss' ]
target => "timestamp"
}
mutate {
convert => {
"No_of_files" => "integer"
"Records_Processed" => "integer"
"Records_Rejected" => "integer"
"Duration_in_secs" => "integer"
}
}
}
output {
elasticsearch {
hosts => ["localhost:9200"]
index => "tryyyy"
}
}