# Conf file just sits and waits forever.... Windows

**URL:** <https://discuss.elastic.co/t/conf-file-just-sits-and-waits-forever-windows/167017>\
**Category:** Logstash\
**Created:** [February 4, 2019, 7:18pm UTC](https://discuss.elastic.co/t/conf-file-just-sits-and-waits-forever-windows/167017 "2019-02-04T19:18:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![OpSecMonkey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/opsecmonkey/32/46110_2.png) [@OpSecMonkey](https://discuss.elastic.co/u/OpSecMonkey)\
**Post date:** [February 4, 2019, 7:18pm UTC](https://discuss.elastic.co/t/conf-file-just-sits-and-waits-forever-windows/167017/1 "2019-02-04T19:18:12Z")

</div>

Good morning/afternoon everyone.

I have recently started a fresh install with Windows 10 using 6.6.0 everything. ElasticSearch, Logstash and Kibana.  
I got everything working installed but I am having a issue with my config file just sitting and waiting in powershell.

Here is my config file

```
input {
file {
path => "C:\Users\XXX\Documents\Split\*.*"
start_position => "beginning"
sincedb_path => "NUL"
}
}
filter {
csv {
separator => ","
}
}

output {
elasticsearch {
hosts => "localhost:9200"
index => "xxxxx"
document_type => "xxxx"
}
stdout { codec => rubydebug }
}

```

I thought everything looked good up there. I have roughly 13000 CSV files this time so I added the _._ to the end.  
When I run

`PS C:\Windows\system32> C:\ELK\logstash\bin\logstash.bat -f C:\ELK\logstash\config\email.conf`

I get  
Sending Logstash logs to C:/ELK/logstash/logs which is now configured via log4j2.properties  
[2019-02-04T11:13:44,962][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2019-02-04T11:13:45,009][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.6.0"}  
[2019-02-04T11:13:56,634][ERROR][logstash.inputs.file] Unknown setting 'since\_path' for file  
[2019-02-04T11:13:56,665][ERROR][logstash.agent] Failed to execute action {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"LogStash::ConfigurationError", :message=\>"Something is wrong with your configuration.", :backtrace=\>["C:/ELK/logstash/logstash-core/lib/logstash/config/mixin.rb:86:in `config_init'", "C:/ELK/logstash/logstash-core/lib/logstash/inputs/base.rb:60:in`initialize'", "org/logstash/plugins/PluginFactoryExt.java:251:in `plugin'", "org/logstash/plugins/PluginFactoryExt.java:181:in`plugin'", "C:/ELK/logstash/logstash-core/lib/logstash/pipeline.rb:71:in `plugin'", "(eval):8:in`'", "org/jruby/RubyKernel.java:994:in `eval'", "C:/ELK/logstash/logstash-core/lib/logstash/pipeline.rb:49:in`initialize'", "C:/ELK/logstash/logstash-core/lib/logstash/pipeline.rb:90:in `initialize'", "C:/ELK/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:42:in`block in execute'", "C:/ELK/logstash/logstash-core/lib/logstash/agent.rb:92:in `block in exclusive'", "org/jruby/ext/thread/Mutex.java:148:in`synchronize'", "C:/ELK/logstash/logstash-core/lib/logstash/agent.rb:92:in `exclusive'", "C:/ELK/logstash/logstash-core/lib/logstash/pipeline_action/create.rb:38:in`execute'", "C:/ELK/logstash/logstash-core/lib/logstash/agent.rb:317:in `block in converge\_state'"]}  
[2019-02-04T11:13:57,259][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

Anyone have any ideas what I can be doing wrong?

---

<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 4, 2019, 9:18pm UTC](https://discuss.elastic.co/t/conf-file-just-sits-and-waits-forever-windows/167017/2 "2019-02-04T21:18:19Z")

</div>

> [@OpSecMonkey](#):
>
> [ERROR][logstash.inputs.file] Unknown setting 'since\_path' for file

That should be sincedb\_path, rather than since\_path.

---

<div class="post-metadata">

**Author:** ![OpSecMonkey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/opsecmonkey/32/46110_2.png) [@OpSecMonkey](https://discuss.elastic.co/u/OpSecMonkey)\
**Post date:** [February 4, 2019, 9:40pm UTC](https://discuss.elastic.co/t/conf-file-just-sits-and-waits-forever-windows/167017/3 "2019-02-04T21:40:36Z")

</div>

@Badger Hello my friend.

I fixed that shortly after I posted this and I still get the same thing.

```
PS C:\Windows\system32> C:\ELK\logstash\bin\logstash.bat -f C:\ELK\logstash\config\email.conf
Sending Logstash logs to C:/ELK/logstash/logs which is now configured via log4j2.properties
[2019-02-04T13:18:28,396][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2019-02-04T13:18:28,490][INFO][logstash.runner] Starting Logstash {"logstash.version"=>"6.6.0"}
[2019-02-04T13:19:01,302][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=>"account", id=>"48b537922c72dc19520ddc9b98bc994e8bbda37b593856c65f53c546e5d424ba", hosts=>[//localhost:9200], document_type=>"account", enable_metric=>true, codec=><LogStash::Codecs::Plain id=>"plain_3e19c91e-21aa-4715-a5ed-b72f77847dcf", 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, ilm_enabled=>false, ilm_rollover_alias=>"logstash", ilm_pattern=>"{now/d}-000001", ilm_policy=>"logstash-policy", 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>}
[2019-02-04T13:19:06,611][INFO][logstash.pipeline] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>8, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50}
[2019-02-04T13:19:07,517][INFO][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[http://localhost:9200/]}}
[2019-02-04T13:19:08,048][WARN][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"http://localhost:9200/"}
[2019-02-04T13:19:08,595][INFO][logstash.outputs.elasticsearch] ES Output version determined {:es_version=>6}
[2019-02-04T13:19:08,595][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}
[2019-02-04T13:19:08,689][INFO][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["//localhost:9200"]}
[2019-02-04T13:19:08,720][INFO][logstash.outputs.elasticsearch] Using mapping template from {:path=>nil}
[2019-02-04T13:19:08,845][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"}}}}}}}}
[2019-02-04T13:19:10,533][INFO][logstash.pipeline] Pipeline started successfully {:pipeline_id=>"main", :thread=>"#<Thread:0x19b811e3 sleep>"}
[2019-02-04T13:19:10,642][INFO][logstash.agent] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]}
[2019-02-04T13:19:10,673][INFO][filewatch.observingtail] START, creating Discoverer, Watch with file and sincedb collections
[2019-02-04T13:19:11,283][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=>9600}

```

So thats what I get now. Its just sitting there waiting and doing nothing. The \_ just keeps flashing so I guess that means its doing something but not sure what.

---

<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 4, 2019, 10:08pm UTC](https://discuss.elastic.co/t/conf-file-just-sits-and-waits-forever-windows/167017/4 "2019-02-04T22:08:49Z")

</div>

Enable --log.level trace and see what filewatch is doing.

See [this](https://discuss.elastic.co/t/is-there-a-solution-available-for-issue-mentioned-in-153152/164098/4?u=badger) post if you want to selectively enable trace level logging.

---

<div class="post-metadata">

**Author:** ![OpSecMonkey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/opsecmonkey/32/46110_2.png) [@OpSecMonkey](https://discuss.elastic.co/u/OpSecMonkey)\
**Post date:** [February 4, 2019, 10:14pm UTC](https://discuss.elastic.co/t/conf-file-just-sits-and-waits-forever-windows/167017/5 "2019-02-04T22:14:11Z")

</div>

I will figure out how to do that in windows and I will post shortly

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [February 5, 2019, 12:28pm UTC](https://discuss.elastic.co/t/conf-file-just-sits-and-waits-forever-windows/167017/6 "2019-02-05T12:28:14Z")

</div>

I suspect that Logstash is treating the backslashes as escape characters.  
`path => "C:\Users\XXX\Documents\Split\*.*"`

Try `path => "C:\\Users\\XXX\\Documents\\Split\\*.*"`  
or `path => "C:/Users/XXX/Documents/Split/*.*"`

---

<div class="post-metadata">

**Author:** ![OpSecMonkey](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/opsecmonkey/32/46110_2.png) [@OpSecMonkey](https://discuss.elastic.co/u/OpSecMonkey)\
**Post date:** [February 7, 2019, 2:46pm UTC](https://discuss.elastic.co/t/conf-file-just-sits-and-waits-forever-windows/167017/7 "2019-02-07T14:46:47Z")

</div>

I got it working. Thank you 🙂

---

<div class="post-metadata">

**Author:** ![guyboertje](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/guyboertje/32/31592_2.png) [@guyboertje](https://discuss.elastic.co/u/guyboertje)\
**Post date:** [February 9, 2019, 11:20pm UTC](https://discuss.elastic.co/t/conf-file-just-sits-and-waits-forever-windows/167017/8 "2019-02-09T23:20:07Z")

</div>

Which one worked for you?

---

<div class="post-metadata">

**Author:** ![DaniSusB](https://avatars.discourse-cdn.com/v4/letter/d/8e7dd6/32.png) [@DaniSusB](https://discuss.elastic.co/u/DaniSusB)\
**Post date:** [February 14, 2019, 7:52am UTC](https://discuss.elastic.co/t/conf-file-just-sits-and-waits-forever-windows/167017/9 "2019-02-14T07:52:18Z")

</div>

I've had the same issue with Windows, for me the solution was:  
`path => "C:/Users/XXX/Documents/Split/*.*"`

---

<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 14, 2019, 7:53am UTC](https://discuss.elastic.co/t/conf-file-just-sits-and-waits-forever-windows/167017/10 "2019-03-14T07:53:37Z")

</div>

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