Hi all,
I want to save data as a txt file based on the ansi encoding using logstash. Logstash output is as following which ANSI_X3.4-1968 codec is used to encode output in Ansi. But, when i check the encoding of data20200823.txt file using notepad, it seems it is UTF-8. how can i save output in Ansi encoding? any advise will be so appreciated.
output {
csv {
fields => ["My_Data"]
path => "D:\My_data\data20200823.txt"
codec => plain{ charset=>"ANSI_X3.4-1968" }
}
stdout { codec => rubydebug }
}