Received an event that has a different character encoding than you configured. {text=>"log message" :expected_charset=>"UTF-8", :level=>:warn }
I have tried setting JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8". // and "ISO-8859-1" too
I have tried with specifying:
codec => plain {
charset => "UTF-8" // and "ISO-8859-1" too
}
None this is giving me the output.
My logstash configuration file is:
input {
file {
path => "/opt/app/jboss/home/instances/SAGM-QA01-AGENT01/standalone/log/server.log"
start_position => beginning
sincedb_path => "/dev/null"
}
file {
path => "/opt/app/jboss/home/instances/SAGM-QA01-AUX/standalone/log/server.log"
start_position => beginning
sincedb_path => "/dev/null"
}
}
}output {
stdout{
codec => rubydebug
}
redis { host => "10.30.8.179" data_type => "list" key => "logstash" }
}
filter{
multiline {
pattern => "^%{TIMESTAMP_ISO8601}"
negate => true
what => "previous"
}
}
Please help me in fixing this.