Commit 5165a826 authored by Pavel Taskov's avatar Pavel Taskov

logstash configuration file

parent d4fe8192
input {
file {
start_position => "beginning"
path => "C:/Users/sefid/Desktop/testing_logstash/Test3/agilia.json"
sincedb_path => "NULL"
codec => json
}
}
filter {
date {
match => ["startDateOfOffer", "dd-MM-yyyy"]
target => "@timestamp"
timezone => "Europe/Berlin"
}
date {
match => ["endDateOfOffer", "dd-MM-yyyy", "ISO8601"]
timezone => "Europe/Berlin"
}
date {
match => ["startDateOfTravel", "dd-MM-yyyy", "ISO8601"]
timezone => "Europe/Berlin"
}
date {
match => ["startDateOfTravel", "dd-MM-yyyy", "ISO8601"]
timezone => "Europe/Berlin"
}
date {
match => ["endDateOfTravel", "dd-MM-yyyy", "ISO8601"]
timezone => "Europe/Berlin"
}
mutate {convert => {"available" => "boolean"}}
mutate {convert => {"balance" => "float"}}
mutate {convert => {"canceled" => "boolean"}}
mutate {convert => {"carLicensePlate" => "integer"}}
mutate {convert => {"deposit" => "float"}}
mutate {convert => {"depositeBalance" => "float"}}
mutate {convert => {"kmTraveled" => "float"}}
mutate {convert => {"priceBalance" => "float"}}
mutate {convert => {"priceForKm" => "float"}}
mutate {convert => {"priceForTime" => "float"}}
mutate {convert => {"rentForTime" => "boolean"}}
mutate {convert => {"reputation" => "integer"}}
mutate {convert => {"rewardBalance" => "float"}}
mutate {convert => {"seatsAvailable" => "integer"}}
mutate {convert => {"totalPrice" => "float"}}
}
output {
elasticsearch {
hosts => ["http://localhost:9200"]
index => ["agilia-test3"]
}
stdout { codec=>"dots" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment