# PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::ConfigurationError", :message=\>"Expected one of #, {, ,, \] at line 4, column 36 (byte 99)

**URL:** https://discuss.elastic.co/t/pipelineaction-create-pipeline-id-main-exception-logstash-configurationerror-message-expected-one-of-at-line-4-column-36-byte-99/159312
**Category:** Elasticsearch
**Created:** [December 4, 2018, 8:26am UTC](https://discuss.elastic.co/t/pipelineaction-create-pipeline-id-main-exception-logstash-configurationerror-message-expected-one-of-at-line-4-column-36-byte-99/159312 "2018-12-04T08:26:05Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![lungelo\_zondo](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@lungelo\_zondo](https://discuss.elastic.co/u/lungelo_zondo)
#### Post date: [December 4, 2018, 8:26am UTC](https://discuss.elastic.co/t/pipelineaction-create-pipeline-id-main-exception-logstash-configurationerror-message-expected-one-of-at-line-4-column-36-byte-99/159312/1 "2018-12-04T08:26:06Z")

</div>

Hi,

Can anyone please help with this issue, I am running CMD : **:\Users\zondol\logstash-6.5.1\bin\>logstash -f /Users/zondol/data/logstash.config**

And below is my config file.

input {  
file {  
path =\> "C:\Users\zondol\datalog\_file.csv"  
start\_position =\> ["beginning,"end"]  
sincedb\_path =\> "null"  
}

}

filter {

```
    csv {

       seperator => ","

       columns => ["originId","userId ","queryType","neStream ","neManager ","neId","subscriberId ","subscriberIdType"]
    }

    mutate {convert => ["userId","Integer"]}

```

}

output {

```
elasticsearch{

 hosts => ["localhost:5601"]
 index => "logs"
 document_type => "output_imput_log"
}

stdout {}

```

}

---

<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: [December 4, 2018, 8:55am UTC](https://discuss.elastic.co/t/pipelineaction-create-pipeline-id-main-exception-logstash-configurationerror-message-expected-one-of-at-line-4-column-36-byte-99/159312/2 "2018-12-04T08:55:05Z")

</div>

> [@lungelo\_zondo](#):
>
> start\_position =\> ["beginning,"end"]  
> sincedb\_path =\> "null"

`start_position` should be just` "beginning"` (not an array) and `sincedb_path` should as far as I know on Windows be `"nul"`.

---

<div class="post-metadata">

### Author: ![lungelo\_zondo](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@lungelo\_zondo](https://discuss.elastic.co/u/lungelo_zondo)
#### Post date: [December 4, 2018, 9:35am UTC](https://discuss.elastic.co/t/pipelineaction-create-pipeline-id-main-exception-logstash-configurationerror-message-expected-one-of-at-line-4-column-36-byte-99/159312/3 "2018-12-04T09:35:29Z")

</div>

Thank you so much Christian 🙂 , that error is gone but I am now getting this one below:

**Error registering plugin {:pipeline\_id=\>"main", :plugin=\>"#LogStash::OutputDelegator:0x4b9fce4e", :error=\>"Unexpected character ('\<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')\n a**

Are you familiar with it?

Thanks in advance

---

<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: [December 4, 2018, 9:37am UTC](https://discuss.elastic.co/t/pipelineaction-create-pipeline-id-main-exception-logstash-configurationerror-message-expected-one-of-at-line-4-column-36-byte-99/159312/4 "2018-12-04T09:37:37Z")

</div>

> [@lungelo\_zondo](#):
>
> hosts =\> ["localhost:5601"]

That error I am not sure about, but this is also wrong. You should send the data to Elasticsearch (usually port 9200) and not Kibana.

---

<div class="post-metadata">

### Author: ![lungelo\_zondo](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@lungelo\_zondo](https://discuss.elastic.co/u/lungelo_zondo)
#### Post date: [December 4, 2018, 9:48am UTC](https://discuss.elastic.co/t/pipelineaction-create-pipeline-id-main-exception-logstash-configurationerror-message-expected-one-of-at-line-4-column-36-byte-99/159312/5 "2018-12-04T09:48:31Z")

</div>

Yeah , I have changed the port number and the error mesg changed to this:

**logstash.pipeline ] Error registering plugin {:pipeline\_id=\>"main", :plugin=\>"#\<LogStash::FilterDelegator:0xf9b1246 @metric\_events\_out=org.jruby.proxy.org.logstash.instrument.metrics.counter.LongCounter$Proxy2 - name: out value:0, @metric\_events\_in=org.jruby.proxy.org.logstash.instrument.metrics.counter.LongCounter$Proxy2 - name: in value:0, @metric\_events\_time=org.jruby.proxy.org.logstash.instrument.metrics.counter.LongCounter$Proxy2 - name: duration\_in\_millis value:0, @id="42eb6a52cafe982c94f38926283166ed9cf0a6e3bc3729f313754a8b32718206", @klass=LogStash::Filters::Mutate, @metric\_events=#LogStash::Instrument::NamespacedMetric:0x275a5554, @filter=\<LogStash::Filters::Mutate convert=\>{"userId"=\>"Integer"}, id=\>"42eb6a52cafe982c94f38926283166ed9cf0a6e3bc3729f313754a8b32718206", enable\_metric=\>true, periodic\_flush=\>false\>\>", :error=\>"translation missing: en.logstash.agent.configuration.invalid\_plugin\_register", :thread=\>"#\<Thread:0x3778a666 run\>"}**

Your help is highly appreciated, I am very new to this.

---

<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: [December 4, 2018, 10:03am UTC](https://discuss.elastic.co/t/pipelineaction-create-pipeline-id-main-exception-logstash-configurationerror-message-expected-one-of-at-line-4-column-36-byte-99/159312/6 "2018-12-04T10:03:16Z")

</div>

Have a look at your mutate filter and check the convert directive against the example that should be in the docs.

---

<div class="post-metadata">

### Author: ![lungelo\_zondo](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@lungelo\_zondo](https://discuss.elastic.co/u/lungelo_zondo)
#### Post date: [December 4, 2018, 1:52pm UTC](https://discuss.elastic.co/t/pipelineaction-create-pipeline-id-main-exception-logstash-configurationerror-message-expected-one-of-at-line-4-column-36-byte-99/159312/7 "2018-12-04T13:52:45Z")

</div>

Thanks, this is what I'm getting right now ..I am not seeing anything in the console though, doesn't this mean my data should be visible of Kibana front-end when this is done?

**C:\Users\zondol\logstash-6.5.1\bin\>logstash -f /Users/zondol/data/logstash.config**  
**Sending Logstash logs to C:/Users/zondol/logstash-6.5.1/logs which is now configured via log4j2.properties**  
**[2018-12-04T11:52:48,707][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified**  
**[2018-12-04T11:52:48,739][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.5.1"}**  
**[2018-12-04T11:52:53,562][WARN][logstash.outputs.elasticsearch] You are using a deprecated config setting "document\_type" set in elasticsearch. Deprecated settings will continue to work, but are scheduled for removal from logstash in the future. Document types are being deprecated in Elasticsearch 6.0, and removed entirely in 7.0. You should avoid this feature If you have any questions about this, please visit the #logstash channel on freenode irc. {:name=\>"document\_type", :plugin=\>\<LogStash::Outputs::ElasticSearch index=\>"logs", id=\>"9eb6298a3162a026999a6b9bf42eb7e070d89d073b5335cb5f6676c180f74d95", hosts=\>[[//localhost:9200](https://localhost:9200)], document\_type=\>"output\_input\_log", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Plain id=\>"plain\_5acfef7b-e479-4abc-9990-97d6db57c6c8", enable\_metric=\>true, charset=\>"UTF-8"\>, workers=\>1, manage\_template=\>true, template\_name=\>"logstash", template\_overwrite=\>false, doc\_as\_upsert=\>false, script\_type=\>"inline", script\_lang=\>"painless", script\_var\_name=\>"event", scripted\_upsert=\>false, retry\_initial\_interval=\>2, retry\_max\_interval=\>64, retry\_on\_conflict=\>1, action=\>"index", ssl\_certificate\_verification=\>true, sniffing=\>false, sniffing\_delay=\>5, timeout=\>60, pool\_max=\>1000, pool\_max\_per\_route=\>100, resurrect\_delay=\>5, validate\_after\_inactivity=\>10000, http\_compression=\>false\>}**  
**[2018-12-04T11:52:55,874][INFO][logstash.pipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50}**  
**[2018-12-04T11:52:56,720][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=\>{:removed=\>[], :added=\>[[http://localhost:9200/](http://localhost:9200/)]}}**  
**[2018-12-04T11:52:56,743][INFO][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connection is working {:healthcheck\_url=\>[http://localhost:9200/](http://localhost:9200/), :path=\>"/"}**  
**[2018-12-04T11:52:57,068][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=\>"[http://localhost:9200/](http://localhost:9200/)"}**  
**[2018-12-04T11:52:57,172][INFO][logstash.outputs.elasticsearch] ES Output version determined {:es\_version=\>6}**  
**[2018-12-04T11:52:57,182][WARN][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the `type` event field won't be used to determine the document \_type {:es\_version=\>6}**  
**[2018-12-04T11:52:57,230][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=\>"LogStash::Outputs::ElasticSearch", :hosts=\>["[//localhost:9200](https://localhost:9200)"]}**  
**[2018-12-04T11:52:57,266][INFO][logstash.outputs.elasticsearch] Using mapping template from {:path=\>nil}**  
**[2018-12-04T11:52:57,303][INFO][logstash.outputs.elasticsearch] Attempting to install template {:manage\_template=\>{"template"=\>"logstash-_", "version"=\>60001, "settings"=\>{"index.refresh\_interval"=\>"5s"}, "mappings"=\>{"default"=\>{"dynamic\_templates"=\>[{"message\_field"=\>{"path\_match"=\>"message", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false}}}, {"string\_fields"=\>{"match"=\>"_", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>false, "fields"=\>{"keyword"=\>{"type"=\>"keyword", "ignore\_above"=\>256}}}}}], "properties"=\>{"@timestamp"=\>{"type"=\>"date"}, "@version"=\>{"type"=\>"keyword"}, "geoip"=\>{"dynamic"=\>true, "properties"=\>{"ip"=\>{"type"=\>"ip"}, "location"=\>{"type"=\>"geo\_point"}, "latitude"=\>{"type"=\>"half\_float"}, "longitude"=\>{"type"=\>"half\_float"}}}}}}}}**  
**[2018-12-04T11:52:58,124][INFO][logstash.pipeline] Pipeline started successfully {:pipeline\_id=\>"main", :thread=\>"#\<Thread:0x55843a7c run\>"}**  
**[2018-12-04T11:52:58,216][INFO][logstash.agent] Pipelines running {:count=\>1, :running\_pipelines=\>[:main], :non\_running\_pipelines=\>[]}**  
**[2018-12-04T11:52:58,247][INFO][filewatch.observingtail] START, creating Discoverer, Watch with file and sincedb collections**  
**[2018-12-04T11:52:58,782][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}**

---

<div class="post-metadata">

### Author: ![lungelo\_zondo](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@lungelo\_zondo](https://discuss.elastic.co/u/lungelo_zondo)
#### Post date: [December 4, 2018, 2:26pm UTC](https://discuss.elastic.co/t/pipelineaction-create-pipeline-id-main-exception-logstash-configurationerror-message-expected-one-of-at-line-4-column-36-byte-99/159312/8 "2018-12-04T14:26:21Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/4/7/47b23189b4d24c139c3657ea51786715709344d4.png)

---

<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: [January 1, 2019, 2:26pm UTC](https://discuss.elastic.co/t/pipelineaction-create-pipeline-id-main-exception-logstash-configurationerror-message-expected-one-of-at-line-4-column-36-byte-99/159312/9 "2019-01-01T14:26:26Z")

</div>

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