i made a test data source container for my logstash config
it has a sample of services that have filters in logstash
then pumps it at a test container that dumps the output to a "test-*" index pattern in elasticsearch
it's pretty rudimentary at the moment but it's the start of something a bit more continually integrated
it worked out being pretty useful, picked up two errors in my logstash config and one error in my sample data
czerasz joined the channel
rotbeard joined the channel
koendc joined the channel
janzo2 joined the channel
janzo2
how do i convert a field in a nested object array, convert => { "[rank_history][rank]" => "integer" } is not working. he object is rank_history: [{ date: date, rank: number}]
berglh
what's wrong with that?
lgtm!
janzo2
org.elasticsearch.index.mapper.MapperParsingException: failed to parse [rank_history.rank]
Caused by: java.lang.NumberFormatException: For input string: "2.0"
berglh
how are you assigning the field?
before converting it?
janzo2
json {
source => "message"
?
berglh
oh, ok, so it's coming into logstash as json?
janzo2
ya its coming from dynamodb
everything there is strings
berglh
hrm..
so.. the index you currently have
will have a field mapping associated with it
what does the field mapping think that field is?
janzo2
string
berglh
i think that might be the problem
the mapping is already created
and you're trying to put an invalid data type to the field mapping
janzo2
well it expects a integer
berglh
i believe you can't change the field mapping, you might need to delete the index and start again