Hi, first of all sorry for my english!
im using version 7.14 of ELK and i`m having some strange behavior when using
mutate { remove_field => [ "message" ] }
I have some logs from a DataPower then I use GROK to make them more usefull, without the mutate logs everything go fine but when I add that line some logs never appear in the Discover in Kibana.
this is my logstash
does anyone have any idea why when doing a remove_field logs never reach the elastic output? No error in but the way.
input {
tcp {
port => 8089
tags => [datapower_log]
codec => multiline {
pattern => "<14>"
negate => true
what => "previous"
}
}
}
filter {
if "INPUT" in [message] {
grok {
match => { "message" =>"%{NOTSPACE:Codigo}%{SYSLOGTIMESTAMP:fecha} %{GREEDYDATA:nodo}\[%{WORD:ResponseCode}\]\[%{WORD:debug}\]\[%{WORD:level}\]\ wsgw\(%{WORD:WS}\): trans\(%{WORD:trans}\)\[%{WORD:tipo}\]\[%{IP:cliente}\] gtid\(%{WORD:id}\): \nINPUT:(?m)%{GREEDYDATA:INPUT}\nOUTPUT:(?m)%{GREEDYDATA:OUTPUT}" }
}
mutate {
remove_field => [ "message" ]
}
}
output {
if "datapower_log" in [tags] {
elasticsearch {
hosts => ['https://xxxxxxxxx:9200']
index => "dp-log-%{+YYYY.MM.dd}"
cacert => '/etc/logstash/bps-net-cer-ca.pem'
ssl => true
ssl_certificate_verification => false
user => elastic
password => xxxxxxxxxxx
}
}
stdout {
codec => rubydebug { metadata => false }
}
}