input {
generator {
count => 1
add_field => {"call_start_time" => "2020-12-14T00:13:04.351Z"}
add_field => {"call_end_time" => "2020-12-14T00:15:04.351Z"}
}
}
filter {
date {
locale => en
match => [ "call_start_time", "YYYYMMddHHmmssS", "YYYYMMddHHmmssS"]
timezone => "Asia/Tokyo"
target => "call_start_time"
}
date {
locale => en
match => [ "call_end_time", "YYYYMMddHHmmssS", "YYYYMMddHHmmssS"]
timezone => "Asia/Tokyo"
target => "call_end_time"
}
}
output {
stdout { codec => rubydebug }
elasticsearch {
hosts => "localhost:9200"
index => mytomo
}
}
Created
December 14, 2020 00:46
-
-
Save TomonoriSoejima/f33e5ad960e830fd6337bddc4a5a7aeb to your computer and use it in GitHub Desktop.
generator.conf.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment