input { file { path => "C:/xampp/htdocs/csv/mellat2.csv" start_position => "beginning" sincedb_path => "NUL" codec => plain { charset => "UTF-8" } } } filter { csv { separator => "," skip_header => true columns => [ "NATIONAL_CODE", "ACCOUNT_NUMBER", "FULL_NAME", "FATHER_NAME", "ID_NUMBER", "BIRTH_DATE", "CITY_NAME", "PROVINCE_NAME", "BIRTH_CITY", "BIRTH_PROVINCE", "ADDRESS", "CARD_NO", "MOBILE" ] } mutate { remove_field => ["path", "host", "message"] } } output { elasticsearch { hosts => ["http://localhost:9200"] index => "mellat" } stdout { codec => rubydebug } }