# Logstash showing error

**URL:** <https://discuss.elastic.co/t/logstash-showing-error/91130>\
**Category:** Logstash\
**Created:** [June 28, 2017, 2:49pm UTC](https://discuss.elastic.co/t/logstash-showing-error/91130 "2017-06-28T14:49:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rp311286](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rp311286/32/19619_2.png) [@rp311286](https://discuss.elastic.co/u/rp311286)\
**Post date:** [June 28, 2017, 2:49pm UTC](https://discuss.elastic.co/t/logstash-showing-error/91130/1 "2017-06-28T14:49:03Z")

</div>

here is my logstash\_car.conf file

file{  
path =\> "C:\Users\ravi\Downloads\data\car.csv"  
start\_position =\>"beginning"  
sincedb\_path =\> "/dev/null"  
}  
filter{  
csv{  
separator=\>","  
columns =\>["maker","model","mileage","manufacture\_year","engine\_displacement","engine\_power","body\_type","color\_slug","stk\_year","transmission","door\_count","seat\_count","fuel\_type","date\_created","date\_last\_seen","price\_eur"]  
}  
mutate{convert =\>["mileage","integer"]}  
mutate{convert =\>["price\_eur","float"]}  
mutate{convert =\>["engine\_power","integer"]}  
mutate{convert =\>["door\_count","integer"]}  
mutate{convert =\>["seat\_count","integer"]}  
}  
output{  
elasticsearch {  
hosts =\> "localhost"  
index =\> "cars"  
document\_type =\>"sold\_cars"  
}  
stdout{}

}

if i am running the logstash it showing following error

C:\Users\ravi\Downloads\logstash-5.4.2\logstash-5.4.2\bin\>logstash -f logstash\_c  
ar.conf  
Sending Logstash's logs to C:/Users/ravi/Downloads/logstash-5.4.2/logstash-5.4.2  
/logs which is now configured via log4j2.properties  
[2017-06-28T20:03:41,532][ERROR][logstash.agent] Cannot create pipeli  
ne {:reason=\>"Expected one of #, input, filter, output at line 1, column 1 (byte

1. after "}

i am not getting how to resolve this error

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 28, 2017, 2:52pm UTC](https://discuss.elastic.co/t/logstash-showing-error/91130/2 "2017-06-28T14:52:09Z")

</div>

You do not seem to have an input block wrapping the file input.

---

<div class="post-metadata">

**Author:** ![rp311286](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rp311286/32/19619_2.png) [@rp311286](https://discuss.elastic.co/u/rp311286)\
**Post date:** [June 29, 2017, 5:49am UTC](https://discuss.elastic.co/t/logstash-showing-error/91130/3 "2017-06-29T05:49:24Z")

</div>

thank you so much Christian. now its working

---

<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:** [July 27, 2017, 6:00am UTC](https://discuss.elastic.co/t/logstash-showing-error/91130/4 "2017-07-27T06:00:58Z")

</div>

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