to be able to use the predefined kibqnq dashboards for the nginx module while sending the log output of the nginx module from filbeat to logstash I specified the application of the pipeline in the elasticsearch output
// My logstash code here
input {
beats {
port => 5044
}
}
filter {
if [event][module] == "nginx" {
mutate {
remove_field => ["[event][original]"]
}
date {
match => [ "timestamp", "dd/MMM/YYYY:HH:mm:ss Z" ]
target => "@timestamp"
}
}
}
output {
if [@metadata][pipeline] {
elasticsearch {
hosts => ["http://192.168.99.37:9200"]
manage_template => false
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
pipeline => "%{[@metadata][pipeline]}"
}
}
}
In my elasticsearch the index was created correctly with the mappings. To be able to use the predefined dashboards I executed the command sudo filebeat setup --dashboards and the default data view was created but when I try to go to the Discover section this is the error displayed
S'il vous plaît j'ai besoin d'aide