I am trying to add calculated "message_length" field that would be a representation on character count in "message" field. Info is coming in from winlogbeat/filebeat/syslog if that makes any difference.
This is the code I currently have:
filter {
  ruby {
	code => "event['message_length'] = event['message'].length"
        }
}
But it's producing 0 results. No value is added into message_length field.
What am I doing wrong?