Hi,
Below is the logstash Input plugin configured to read logs generated by my Windows Application,
input {
file {
path => ["D:/ELK/LoggerTestApp/Server/Logger/GetAssetPointerById/**/*.txt"]
codec => plain { charset => "UTF-16" }
sincedb_path => ["D:/ELK/logstash/since.db"]
start_position => "beginning"
}
}
My Application is configured to write logs in Unicode/UTF-16 encoding format only. Once the logs are read & ported to ElasticSearch, I'm seeing a invalid character (�) in each log as shown below
Please advice me on how to avoid these invalid characters.
Environment Details
- Operating System : Win 7, Win 2008 R2
- ElasticSearch : elasticsearch-2.3.4
- Logstash : logstash-2.3.4
- Kibana : kibana-4.5.3-windows
Thanks in Advance.