The fields for all int are empty, but when I take out the :int at the end of each definition, the fields will populate with the correct values. Can anyone explain what's going on?
Additionally, is using something like %{INT:data:int} redundant if I want the data to be passed as an integer to elasticsearch? Is the :int casting usually meant for if I am doing something like %{NUMBER:data:int}? I want to be able to aggregate the data when I'm finished so it's important that it's not passed as a string or something.
I'm new to Logstash/grok so any help/explanation would be greatly appreciated.
date {
match => [ "logdate", "dd-MM-YY HH:mm:ss.SSS" ]
}
}
}
output {
elasticsearch {
hosts => ["someIP"]
index => "%{[@metadata][ddctype]}-%{+YYYY.MM.dd}"
}
stdout { codec => rubydebug }
}
It seems to work with Kibana just fine.. The graphs are being populated with the data. It was just odd to me that the data wasn't showing up when debugging.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.