Hi,
I am using filebeat and logstash to parse the logs of a server to elastic search and then Kibana.
elastic search version 7.5 & kibana version: latest.
I am seeing logs being processed in kibana but the output seems to be encoded.
logstash.conf
input {
beats {
port => 5000
codec => plain { charset => "UTF-8" }
type => "Jenkins Log"
}
}
filter {
if [type] == "Jenkins Log" {
grok {
match => { "message" => ["%{PF}", "%{DOVECOT}" ] }
}
date {
match => [ "timestamp", "MMM dd HH:mm:ss", "MMM d HH:mm:ss" ]
}
}
}
output {
elasticsearch {
hosts => ["http://elasticsearch:9200"]
index => "%{[@metadata][beat]}-%{[@metadata][version]}"
}
}
filebeat.yaml
filebeat.inputs:
- type: log
enabled: true
encoding: utf-8
reload.enabled: true
reload.period: 10s
paths:
- /var/log/jenkins/*.log
output.logstash:
hosts: ["IPADDR:5000"]
console:
pretty:true
Do you have any suggestions to as to correct the config,
Best