National charset convertation

Hello everyone.

Please help me to read correctly file with national charset.
The file is Windows-1251 (Russia). I use encoding options in Filebeat. My Filebeat config is posted below:

filebeat:
prospectors:
-
paths:
- d:\result.txt
encoding: unicode
input_type: log
document_type: log1c

registry_file: /var/lib/filebeat/registry

output:
logstash:
hosts: ["xxx.yyy.zzz.nnn:5044"]
bulk_max_size: 1024

shipper:

logging:
files:
rotateeverybytes: 10485760 # = 10MB

In Kibana I see:
message:20161003;15:31:34;smetanin;E;$$>@<8@>20=85

BG5B0; 55AB@>:C<5=B>2:F8O;3

It's incorrect.

Could you give me the cue where I'm wrong?

1 Like

encoding: unicode

"unicode" isn't a valid encoding, and it definitely doesn't make sense for Windows-1251 text. Try "windows-1251" instead.

Thanks for reply. It was a mistake. The correct encoding is Windows-1251 (without ""). Also I tried windows-1251, "windows-1251", "Windows-1251" without luck.

1 Like