We are trying to setup Loki and Promtail to collect logs for some legacy system, however we are running into issues regarding the Character encoding of the log files. The log files are encoded as ISO-8859-1 however Promtail reads the files as UTF-8 causing some characters to be grabled.
Was this ever done? I have the same problems with trying to send logs from a legacy windows application into loki with promtail. When there are special characters (i.e scandinavian characters) grafana error out with invalid utf-8 rune. So need to figure out some fix for this.
Loki PR2604 seems to have fixed this issue by adding encoding: utf-16 parameter to promtail which we expect it to fix our issues with Windows logs encoded in utf-16.
For some reason which I don’t understand, it was not merged by owen-d. The bot later closed it. Seemingly vyzigoldigold put a lot of efforts in Loki PR2604 and I don’t understand why it was dismissed so easily. I gave it a try, but personally I’m not able to build GitHub - vyzigold/loki: Like Prometheus, but for logs. and now we are stuck with some utf-16 encoded Windows logs that neither promtail nor loki can handle properly.
@ewelch could you please reconsider reopening Loki PR2604 and merging (a revised version of) it?