# Issue while starting logstash

**URL:** <https://discuss.elastic.co/t/issue-while-starting-logstash/167401>\
**Category:** Logstash\
**Created:** [February 7, 2019, 9:11am UTC](https://discuss.elastic.co/t/issue-while-starting-logstash/167401 "2019-02-07T09:11:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaidw21](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaidw21/32/40678_2.png) [@zaidw21](https://discuss.elastic.co/u/zaidw21)\
**Post date:** [February 7, 2019, 9:11am UTC](https://discuss.elastic.co/t/issue-while-starting-logstash/167401/1 "2019-02-07T09:11:41Z")

</div>

Hi I am new to the ELK framework. Recently started to setup Logstash to parse them and push to elasticsearch.  
But I am facing the following error everytime i try to run it with my conf file.  
Tried a lot of options discussed in other threads but didnt helped.

**My conf file is** :

input {  
file {  
path =\> ["‪C:/var/logs/Debug\_2019-02-06.00.log"]  
}  
}  
filter {  
grok{  
patterns\_dir =\> ["C:/HOMEWARE/ELK/logstash-6.6.0/patterns"]  
match =\> ["message","%{CSTMDATE:loggedTime}%{SPACE}-%{SPACE}%{LOGLEVEL:logLevel}:%{GREEDYDATA:message}"]  
}  
date {  
match =\> ["loggedTime", "yyyy-MM-dd HH:mm:ss.SSSS"]  
target =\> "loggedTime"  
}  
}  
output {  
elasticsearch { hosts =\> ["localhost:9200"] }  
}  
stdout { codec =\> rubydebug }

**My Pattern file** :

CSTMDATE (?\>\d\d){1,2}-(?:0[1-9]|1[0-2])-(?:(?:0[1-9])|(?:[12][0-9])|(?:3[01])|[1-9]).(?:2[0123]|[01]?[0-9]):(?:[0-5][0-9]):(?:(?:[0-5]?[0-9]|60)(?:[:.,][0-9]+)?)

**Sample log** I want to parse :  
2019-02-05 02:00:00.0105 - INFO: Job Started Running for the date : 2/4/2019 2:00:00 AM

**I always get the following error** :

[2019-02-07T14:34:40,663][ERROR][logstash.pipeline] Error registering plugin {:pipeline\_id=\>"main", :plugin=\>"\<LogStash::Inputs::File path=\>["ΓÇ¬C:/var/logs/Debug\_2019-02-06.00.log"], id=\>"9b3b03f402ec598b32c86c8faa6efe8ae3a857189526f4fa2bf780987029126d", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Plain id=\>"plain\_121be750-5188-419b-8588-dfd96f60c629", enable\_metric=\>true, charset=\>"UTF-8"\>, stat\_interval=\>1.0, discover\_interval=\>15, sincedb\_write\_interval=\>15.0, start\_position=\>"end", delimiter=\>"\n", close\_older=\>3600.0, mode=\>"tail", file\_completed\_action=\>"delete", sincedb\_clean\_after=\>1209600.0, file\_chunk\_size=\>32768, file\_chunk\_count=\>140737488355327, file\_sort\_by=\>"last\_modified", file\_sort\_direction=\>"asc"\>", :error=\>"no implicit conversion from nil to integer", :thread=\>"#\<Thread:0x79718eef run\>"}  
[2019-02-07T14:34:40,740][ERROR][logstash.pipeline] Pipeline aborted due to error {:pipeline\_id=\>"main", :exception=\>#\<TypeError: no implicit conversion from nil to integer\>, :backtrace=\>["org/jruby/RubyString.java:2995:in `[]'", "uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/pathname.rb:44:in`chop\_basename'", "uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/pathname.rb:240:in `relative?'", "C:/HOMEWARE/ELK/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.9/lib/logstash/inputs/file.rb:268:in`block in register'", "org/jruby/RubyArray.java:1734:in `each'", "C:/HOMEWARE/ELK/logstash-6.6.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-file-4.1.9/lib/logstash/inputs/file.rb:267:in`register'", "C:/HOMEWARE/ELK/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:242:in `register_plugin'", "C:/HOMEWARE/ELK/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:253:in`block in register\_plugins'", "org/jruby/RubyArray.java:1734:in `each'", "C:/HOMEWARE/ELK/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:253:in`register\_plugins'", "C:/HOMEWARE/ELK/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:396:in `start_inputs'", "C:/HOMEWARE/ELK/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:294:in`start\_workers'", "C:/HOMEWARE/ELK/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:200:in `run'", "C:/HOMEWARE/ELK/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:160:in`block in start'"], :thread=\>"#\<Thread:0x79718eef run\>"}  
[2019-02-07T14:34:40,767][ERROR][logstash.agent] Failed to execute action {:id=\>:main, :action\_type=\>LogStash::ConvergeResult::FailedAction, :message=\>"Could not execute action: PipelineAction::Create, action\_result: false", :backtrace=\>nil}

Please help me.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [February 7, 2019, 2:47pm UTC](https://discuss.elastic.co/t/issue-while-starting-logstash/167401/2 "2019-02-07T14:47:47Z")

</div>

> [@zaidw21](#):
>
> file {  
> path =\> ["‪C:/var/logs/Debug\_2019-02-06.00.log"]  
> }
> 
> **I always get the following error** :
> 
> [2019-02-07T14:34:40,663][ERROR][logstash.pipeline] Error registering plugin {:pipeline\_id=\>"main", :plugin=\>"\<LogStash::Inputs::File path=\>["ΓÇ¬C:/var/logs/Debug\_2019-02-06.00.log"],

The path in the log and the path in your configuration do not exactly match. If you are pointing -f to a directory then it will concatenate all the files in that directory into a single configuration. Is it possible you have a backup copy of your configuration in the same directory that has a different value for path?

---

<div class="post-metadata">

**Author:** ![zaidw21](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zaidw21/32/40678_2.png) [@zaidw21](https://discuss.elastic.co/u/zaidw21)\
**Post date:** [February 7, 2019, 5:22pm UTC](https://discuss.elastic.co/t/issue-while-starting-logstash/167401/3 "2019-02-07T17:22:23Z")

</div>

Thanks for the reply, I dont have any other conf file.  
I tried changing the path too and put it inside bin, ran it from there still with no luck.  
Just got stuck there.

---

<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:** [March 7, 2019, 5:22pm UTC](https://discuss.elastic.co/t/issue-while-starting-logstash/167401/4 "2019-03-07T17:22:27Z")

</div>

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