# How input csv data without header with logstash

**URL:** <https://discuss.elastic.co/t/how-input-csv-data-without-header-with-logstash/155219>\
**Category:** Logstash\
**Created:** [November 2, 2018, 6:12pm UTC](https://discuss.elastic.co/t/how-input-csv-data-without-header-with-logstash/155219 "2018-11-02T18:12:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sutarisani](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@sutarisani](https://discuss.elastic.co/u/sutarisani)\
**Post date:** [November 2, 2018, 6:12pm UTC](https://discuss.elastic.co/t/how-input-csv-data-without-header-with-logstash/155219/1 "2018-11-02T18:12:18Z")

</div>

Hi,

I tried to input csv data with out header. How create config file

data as below

02/11/2018-23:26:15,cbtcnb-smscp2p-09,KRUSTY ,8-5ba294bf,"dinni.rds\_uerror\_in","",c,0,3,3,0,0,6  
02/11/2018-23:26:15,cbtcnb-smscp2p-09,KRUSTY ,8-5ba294bf,"dinni.ati\_cnf\_in","",c,206,215,207,180,169,977  
02/11/2018-23:26:15,cbtcnb-smscp2p-09,KRUSTY ,8-5ba294bf,"dinni.mt\_fsm\_msc\_req\_out","",c,1724,1775,1707,1590,1624,8420  
02/11/2018-23:26:15,cbtcnb-smscp2p-09,KRUSTY ,8-5ba294bf,"dinni.ati\_req\_out","",c,207,214,207,181,168,977

config logstash

input {  
file {  
path =\> "/opt/log/omn/ss7\*.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
}  
}  
filter {  
csv {  
separator =\> ","  
csv\_options = { "headers"=\> true }  
columns =\> ["DateTime","NodeName","Container","Container ID","CounterName","Filler","Type","Int1","Int2","Int3","Int4","Int5","TotalInt"]  
]  
}  
mutate {convert =\> ["Int1","integer"] }  
mutate {convert =\> ["Int2","integer"] }  
mutate {convert =\> ["Int3","integer"] }  
mutate {convert =\> ["Int4","integer"] }  
mutate {convert =\> ["Int5","integer"] }  
mutate {convert =\> ["TotalINt","integer"] }  
}  
output {  
elasticsearch {  
hosts =\> "[http://127.0.0.1:9200](http://127.0.0.1:9200)"  
index =\> "openmindstatistic"  
document\_type =\> "openmind\_statistic"  
}  
stdout{}  
}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 30, 2018, 6:12pm UTC](https://discuss.elastic.co/t/how-input-csv-data-without-header-with-logstash/155219/2 "2018-11-30T18:12:19Z")

</div>

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