# Logstash error: Cannot create pipeline

**URL:** <https://discuss.elastic.co/t/logstash-error-cannot-create-pipeline/91439>\
**Category:** Logstash\
**Created:** [June 30, 2017, 1:38pm UTC](https://discuss.elastic.co/t/logstash-error-cannot-create-pipeline/91439 "2017-06-30T13:38:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CDR](https://avatars.discourse-cdn.com/v4/letter/c/d9b06d/32.png) [@CDR](https://discuss.elastic.co/u/CDR)\
**Post date:** [June 30, 2017, 1:38pm UTC](https://discuss.elastic.co/t/logstash-error-cannot-create-pipeline/91439/1 "2017-06-30T13:38:40Z")

</div>

I am running logstash using docker. When I ran my docker-compose up I got this error:

`13:31:16.723 [LogStash::Runner] ERROR logstash.agent - Cannot create pipeline {:reason=>"Expected one of #, input, filter, output at line 1, column 1 (byte 1) after "}`

When I run this same config file without using docker and using logstash on windows I do not get this error. Here is the part of my config file I believe it is talking about.

```
input{
	file{
		path => "/config-dir/data/**/admin_ui*.csv"
		start_position => beginning
		ignore_older => 0
		sincedb_path => "/dev/null"
		type => "csv"
	}	
	file{
		path => "/config-dir/data/**/alarm[0-9]*.prn"
		start_position => beginning
		sincedb_path => "/dev/null"
		ignore_older => 0
        type => "alarmprn"
		codec => plain{charset => "ANSI_X3.4-1968"}
	}

```

I am not entirely sure where exactly it is expecting the #.

Thanks!

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 30, 2017, 1:59pm UTC](https://discuss.elastic.co/t/logstash-error-cannot-create-pipeline/91439/2 "2017-06-30T13:59:16Z")

</div>

The error message could indicate that you have a garbage character at the very beginning of the file. Maybe a byte order mark? Check in a hex editor.

---

<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 28, 2017, 2:00pm UTC](https://discuss.elastic.co/t/logstash-error-cannot-create-pipeline/91439/3 "2017-07-28T14:00:05Z")

</div>

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