Hello, everybody,
i have the following error messages in the plain-logstash.log
Ruby exception occurred: undefined method `[ ]' for #LogStash::Event:0x671fe060
The filter that causes this problem looks like this
filter {
split {
}
ruby {
code => "fields = event['message'].split(':')
event[fields[0]] = fields[1].to_f"
}
}
Does anyone have an idea what I'm doing wrong or how I can fix this mistake?
kind regards, Thomas