Hello
I am trying to create a visualize where it is sorted by date, I used the filter in the date logstash, but I cannot sort the crescent in the kibana visualize
Logstash
input {
beats {
port => "5064"
}
}
filter {
if [App] == "Deployment" {
grok {
patterns_dir => "/opt/elk/applications/logstash/config/patterns"
match => [ "message", "^%{WORD}\:%{DATA:Domain}%{SPACE}%{WORD}\:%{HOSTNAME:Hostname}%{SPACE}%{WORD}\:%{GREEDYDATA:Deploy}%{SPACE}Data\:%{GREEDYDATA:Data}" ]
}
date{
match => [ "Data", "dd/MM/yy HH-mm" ]
locale => "en-US"
timezone => "Brazil/East"
target => "Data"
}
mutate {
remove_field => [ 'wls_timezone' , 'message', 'wls_host', 'wls_rawtime', 'wls_diagcontid' , 'tags' , "host.name" , "source" ]
remove_tag => ["beats_input_codec_plain_applied" , "audit" , "_dateparsefailure" , "wls_audit_8_out" , "_grokparsefailure" , "source" , "host.name" ]
}
}
##END PIPELINE
}
output {
elasticsearch {
hosts => ["elk1:9200", "elk2:9200"]
index => "wl_audit_deployment_teste-%{+YYYY.MM.dd}"
}
}
in the date field it does not sort by increasing or decreasing the date 10/12/19 16:45 appears in the middle of the field
