Change character encoding in Logstash


(Varun) #1

How to specify the character encoding as UTF 16 or ASCII in logstash?

My input section as below. I am reading a CSV file using CSV plugin in filter section

input {

	file {
			path => "C:/ITIL_Incidents.csv"                              
			start_position => "beginning"
			                    
		}
	}

#2

hello varun,
for what purpose do you need to change the character encoding,

check below code to load csv file,


(Varun) #3

because my csv file contains non utf-8 characters like Latin letters. so when I try to index in logstash, it is giving error for indexing non utf 8 fields


(system) #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.