# Can not create pipeline while running logstash

**URL:** https://discuss.elastic.co/t/can-not-create-pipeline-while-running-logstash/126612
**Category:** Logstash
**Created:** [April 3, 2018, 4:58pm UTC](https://discuss.elastic.co/t/can-not-create-pipeline-while-running-logstash/126612 "2018-04-03T16:58:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![dpk3d](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@dpk3d](https://discuss.elastic.co/u/dpk3d)
#### Post date: [April 3, 2018, 4:58pm UTC](https://discuss.elastic.co/t/can-not-create-pipeline-while-running-logstash/126612/1 "2018-04-03T16:58:25Z")

</div>

Hi ELK Community!

Hope you people are doing good.

I'm getting the below error :-

[2018-04-03T22:20:19,670][ERROR][logstash.agent] Cannot create pipeli  
ne {:reason=\>"Expected one of #, { at line 14, column 11 (byte 317) after filter  
{\n\t\tcsv{\n\t\t\t\t\t\t\n\t\t\tcolumns =\> ["SL","Team","countryName","  
Audit","Period","Date","Resource","timeInIST","Hours","productionTyp  
e","Comments"]\n\t\t\tseperator =\> ","\n\t\t\t} \n\t\t\t\tmutate"}

Below is my conf file:-

input {  
file {  
path =\> "C:\Users\DKRSingh\Downloads\ELK\Input\xxxxxx.csv"  
start\_position =\> beginning

```
	} 
}

```

filter {  
csv{

```
		columns => ["SL","Team","countryName","Audit","Period","Date","Resource","timeInIST","Hours","productionType","Comments"]
		seperator => ","
		}   

```

mutate {  
convert =\> { "SL" =\> "integer" , "Team" =\> "string" , "countryName" =\> "string" , "Hours" =\> "double" , "Date" =\> "string"}  
}  
}

output {  
elasticsearch {  
hosts =\> "localhost"  
index =\> "Test2"  
}

}

---

<div class="post-metadata">

### Author: ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)
#### Post date: [April 3, 2018, 6:54pm UTC](https://discuss.elastic.co/t/can-not-create-pipeline-while-running-logstash/126612/2 "2018-04-03T18:54:25Z")

</div>

> [@dpk3d](#):
>
> Expected one of #, { at line 14, column 11 (byte 317)

The error indicates that on line 14, column 11, the parser expected there to be either the pound symbol (`#`, indicating start-of-comment) or an open-bracket (`{`, indicating either start-of-block or start-of-hashmap).

It would be a little easier to help if you edited your post to include code-fences around your configuration (e.g., add a line with `~~~` before and after); since there are no fences, the formatting gets a little messed up, so I can't see what is at "line 14, column 11".

---

<div class="post-metadata">

### Author: ![dpk3d](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@dpk3d](https://discuss.elastic.co/u/dpk3d)
#### Post date: [April 4, 2018, 8:29am UTC](https://discuss.elastic.co/t/can-not-create-pipeline-while-running-logstash/126612/3 "2018-04-04T08:29:44Z")

</div>

Please look at below, again same problem Can not create pipline...

[2018-04-04T13:53:40,729][ERROR][logstash.agent] Cannot create pipeli  
ne {:reason=\>"Expected one of #, input, filter, output at line 1, column 1 (byte

1. after "}

---

<div class="post-metadata">

### Author: ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)
#### Post date: [April 4, 2018, 10:53pm UTC](https://discuss.elastic.co/t/can-not-create-pipeline-while-running-logstash/126612/4 "2018-04-04T22:53:22Z")

</div>

> [@dpk3d](#):
>
> ```auto
> [2018-04-04T13:53:40,729][ERROR][logstash.agent] Cannot create pipeline {:reason=&gt;"Expected one of #, input, filter, output at line 1, column 1 (byte 1. after "}
> 
> ```

What pipeline configuration did you specify? Again, the output is telling you very specifically that your syntax is wrong and what it expected, in this case at the very first line, in the very first column:

It expected one of:

- `#`: a hash character inidicating that the rest of the line would be a comment; OR
- `input`: the string `input`, opening an input section; OR
- `filter`: the string `input`, opening a filter section; OR
- `output`: the string `input`, opening an output section.

---

<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: [May 2, 2018, 10:53pm UTC](https://discuss.elastic.co/t/can-not-create-pipeline-while-running-logstash/126612/5 "2018-05-02T22:53:24Z")

</div>

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