Docker logging driver gelf not working

Hello guys,

Trying to send docker logs by using GELF logging driver to Logstash. Have configured udp and other details in logstash conf file. How to validate whether we are sending logs to kibana.

Below is the logstash conf file.
input {
        beats {
                port => 5044
        }
        tcp {
                port => 5000
        }
        gelf {
                port => 12201
                type => docker
        }

}

## Add your filters / logstash plugins configuration here

output {
   if [type] == "docker"
        {
         elasticsearch {
                hosts => "elasticsearch:9200"
                user => "xxxxx"
                password => "xxxxx"
                manage_template => false
                index => "docker-%{[@metadata][beat]}-%{+YYYY.MM.dd}"
               # document_type => "%{[@metadata][type]}"
        }
    }
        else
             {
                elasticsearch {
                hosts => "elasticsearch:9200"
                user => "xxxxx"
                password => "xxxxx"
                manage_template => false
                index => "logstash-%{[@metadata][beat]}-%{+YYYY.MM.dd}"
               # document_type => "%{[@metadata][type]}"
            }
        }
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.