Hi Guys, I have seen this type of issue once or twice before but i can't seem to get it sorted my side still.
I have a field defined as an INT in my patterns, which today has thrown out the error (in Kibana):
Visualize: Expected numeric type on field [MS], but got [string]
I understand that for some reason Kibana is seeing this value as a string instead of an int as expected hence the error, but without a single config change to my patterns or Logstash filters i don't see why this would suddenly change.
Here is the logstash config it is passing through:
filter {
if [type] == "swAuditLog" {
grok {
patterns_dir => ["/opt/logstash/patterns"]
match => { "message" => "%{SW_AUDIT}" }
}
if "_grokparsefailure" in [tags] {
drop { }
}
date {
timezone => "Africa/Harare"
match => ["LoggedDateTime", "YYYY/MM/dd HH:mm:ss"]
target => "@timestamp"
}
mutate {
remove_tag => [ "beats_input_codec_plain_applied" ]
}
}
}
.. and the specific (custom) pattern itself:
SW_MS (?:[0-9]{1,4})
SW_DUR_MS (?:%{SW_MS:MS:int}%{SPACE}(ms))
SW_SEC (?:(?:[0-5]?[0-9]|60)(?:[:.,][0-9]+)?)
SW_MIN (?:[0-5]?[0-9])
SW_DUR_SEC (?:%{SW_SEC:SEC:int}%{SPACE}(sec))
SW_DUR_MIN (?:%{SW_MIN:MIN:int}%{SPACE}(min))
SW_DURATION (?:(\[Duration:%{SPACE}%{SW_DUR_MS}\])|(\[Duration:%{SPACE}%{SW_DUR_SEC}(,)%{SW_DUR_MS}\])|(\[Duration:%{SPACE}%{SW_DUR_MIN}(,)%{SW_DUR_MS}\])|(\[Duration:%{SPACE}%{SW_DUR_MIN}(,)%{SW_DUR_SEC}(,)%{SW_DUR_MS}\]))
I am running on Logstash v2.3.4, Elasticsearch v2.3.4, Kibana v4.5.3 and Filebeat v1.2.3 with only this one single server logging to my Elastic Stack. Logging levels are default not debug level.
How i can better find out why this started happening without any config changes?