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.
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.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.