# Logstash -f is failed to create index - windows environment

**URL:** https://discuss.elastic.co/t/logstash-f-is-failed-to-create-index-windows-environment/137898
**Category:** Logstash
**Created:** [June 29, 2018, 5:03am UTC](https://discuss.elastic.co/t/logstash-f-is-failed-to-create-index-windows-environment/137898 "2018-06-29T05:03:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lax](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lax](https://discuss.elastic.co/u/lax)
#### Post date: [June 29, 2018, 5:03am UTC](https://discuss.elastic.co/t/logstash-f-is-failed-to-create-index-windows-environment/137898/1 "2018-06-29T05:03:11Z")

</div>

logstash version - 6.3.0  
running on windows 7 - 64 machine

my config file

* * *

input{  
file{  
path =\> "c:/lax/station.csv"  
start\_position =\> "beginning"  
sincedb\_path =\> "c:/lax"  
}  
}

filter  
{  
csv  
{  
separator =\> ","  
columns =\> [  
"id","name","slug"  
]  
}  
}  
output {  
elasticsearch{  
hosts =\> "localhost"  
index =\> "stations"  
document\_type =\> "station\_details"  
}  
stdout {}   
}

* * *

executed below command from windows command prompt  
**logstash -f c:\lax\logstash\_csv.config**

-- noticed below output on command prompt window but it didn't create index when I checked in kibana-

* * *

Sending Logstash's logs to C:/Users/hg/Downloads/logstash-6.3.0/logs which is no  
w configured via log4j2.properties  
[2018-06-29T10:29:57,916][WARN][logstash.config.source.multilocal] Ignoring the  
'pipelines.yml' file because modules or command line options are specified  
[2018-06-29T10:29:59,748][INFO][logstash.runner] Starting Logstash {"  
logstash.version"=\>"6.3.0"}  
[2018-06-29T10:30:05,966][WARN][logstash.outputs.elasticsearch] You are using a  
deprecated config setting "document\_type" set in elasticsearch. Deprecated sett  
ings will continue to work, but are scheduled for removal from logstash in the f  
uture. Document types are being deprecated in Elasticsearch 6.0, and removed ent  
irely 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 hosts=\>[[//localhost](https://localhost)], index=\>"stations  
", document\_type=\>"station\_details", id=\>"e6d8989aaccfcbb4237999a23f80aa35129f68  
3058d1efa36b41c276769663c6", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Plai  
n id=\>"plain\_96c96752-bd3c-4934-b063-ac63416f3b53", enable\_metric=\>true, charset  
=\>"UTF-8"\>, workers=\>1, manage\_template=\>true, template\_name=\>"logstash", templa  
te\_overwrite=\>false, doc\_as\_upsert=\>false, script\_type=\>"inline", script\_lang=\>"  
painless", script\_var\_name=\>"event", scripted\_upsert=\>false, retry\_initial\_inter  
val=\>2, retry\_max\_interval=\>64, retry\_on\_conflict=\>1, action=\>"index", ssl\_certi  
ficate\_verification=\>true, sniffing=\>false, sniffing\_delay=\>5, timeout=\>60, pool  
\_max=\>1000, pool\_max\_per\_route=\>100, resurrect\_delay=\>5, validate\_after\_inactivi  
ty=\>10000, http\_compression=\>false\>}  
[2018-06-29T10:30:09,581][INFO][logstash.pipeline] Starting pipeline {:  
pipeline\_id=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipelin  
e.batch.delay"=\>50}  
[2018-06-29T10:30:11,363][INFO][logstash.outputs.elasticsearch] Elasticsearch p  
ool URLs updated {:changes=\>{:removed=\>, :added=\>[[http://localhost:9200/](http://localhost:9200/)]}}  
[2018-06-29T10:30:11,399][INFO][logstash.outputs.elasticsearch] Running health  
check to see if an Elasticsearch connection is working {:healthcheck\_url=\>http:/  
/localhost:9200/, :path=\>"/"}  
[2018-06-29T10:30:12,130][WARN][logstash.outputs.elasticsearch] Restored connec  
tion to ES instance {:url=\>"[http://localhost:9200/](http://localhost:9200/)"}  
[2018-06-29T10:30:12,278][INFO][logstash.outputs.elasticsearch] ES Output versi  
on determined {:es\_version=\>6}  
[2018-06-29T10:30:12,278][WARN][logstash.outputs.elasticsearch] Detected a 6.x  
and above cluster: the `type` event field won't be used to determine the documen  
t \_type {:es\_version=\>6}  
[2018-06-29T10:30:12,324][INFO][logstash.outputs.elasticsearch] Using mapping t  
emplate from {:path=\>nil}  
[2018-06-29T10:30:12,501][INFO][logstash.outputs.elasticsearch] Attempting to i  
nstall template {:manage\_template=\>{"template"=\>"logstash-\*", "version"=\>60001,  
"settings"=\>{"index.refresh\_interval"=\>"5s"}, "mappings"=\>{"_default_"=\>{"dynami  
c\_templates"=\>[{"message\_field"=\>{"path\_match"=\>"message", "match\_mapping\_type"=

> "string", "mapping"=\>{"type"=\>"text", "norms"=\>false}}}, {"string\_fields"=\>{"ma  
> tch"=\>"\*", "match\_mapping\_type"=\>"string", "mapping"=\>{"type"=\>"text", "norms"=\>  
> false, "fields"=\>{"keyword"=\>{"type"=\>"keyword", "ignore\_above"=\>256}}}}}], "pro  
> perties"=\>{"@timestamp"=\>{"type"=\>"date"}, "@version"=\>{"type"=\>"keyword"}, "geo  
> ip"=\>{"dynamic"=\>true, "properties"=\>{"ip"=\>{"type"=\>"ip"}, "location"=\>{"type"=  
> "geo\_point"}, "latitude"=\>{"type"=\>"half\_float"}, "longitude"=\>{"type"=\>"half\_f  
> loat"}}}}}}}}  
> [2018-06-29T10:30:12,705][INFO][logstash.outputs.elasticsearch] New Elasticsear  
> ch output {:class=\>"LogStash::Outputs::Elasticsearch", :hosts=\>["[//localhost](https://localhost)"]}  
> [2018-06-29T10:30:15,081][ERROR][logstash.pipeline] Error registering pl  
> ugin {:pipeline\_id=\>"main", :plugin=\>"\<LogStash::Inputs::File path=\>["c:/lax/st  
> ation.csv"], start\_position=\>"beginning", sincedb\_path=\>"c:/lax", id=\>"d28  
> 4a4d33a34039f8364fccbe87b708ce950cdb5acc7effbf37b64b6b8387e30", enable\_metric=\>  
> true, codec=\>\<LogStash::Codecs::Plain id=\>"plain\_ab35b07b-fd5d-480c-91f9-6fae8f  
> ed7dad", enable\_metric=\>true, charset=\>"UTF-8"\>, stat\_interval=\>1, discover\_i  
> nterval=\>15, sincedb\_write\_interval=\>15, delimiter=\>"\n", close\_older=\>3600\>"  
> , :error=\>"The "sincedb\_path" argument must point to a file, received a direct  
> ory: "c:/lax"", :thread=\>"#\<Thread:0x25337751 run\>"}  
> [2018-06-29T10:30:15,443][ERROR][logstash.pipeline] Pipeline aborted due  
> to error {:pipeline\_id=\>"main", :exception=\>#\<ArgumentError: The "sincedb\_path"  
> argument must point to a file, received a directory: "c:/lax"\>, :backtrace=\>["C  
> :/Users/hg/Downloads/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-inpu  
> t-file-4.0.5/lib/logstash/inputs/file.rb:232:in `register'", "C:/Users/hg/Downlo  
> ads/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:340:in `register\_plugi  
> n'", "C:/Users/hg/Downloads/logstash-6.3.0/logstash-core/lib/logstash/pipeline.r  
> b:351:in `block in register_plugins'", "org/jruby/RubyArray.java:1734:in `each'"  
> , "C:/Users/hg/Downloads/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:3  
> 51:in `register\_plugins'", "C:/Users/hg/Downloads/logstash-6.3.0/logstash-core/l  
> ib/logstash/pipeline.rb:498:in `start\_inputs'", "C:/Users/hg/Downloads/logstash-  
> 6.3.0/logstash-core/lib/logstash/pipeline.rb:392:in `start\_workers'", "C:/Users/  
> hg/Downloads/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:288:in `run'"  
> , "C:/Users/hg/Downloads/logstash-6.3.0/logstash-core/lib/logstash/pipeline.rb:2  
> 48:in `block in start'"], :thread=\>"#\<Thread:0x25337751 run\>"}  
> [2018-06-29T10:30:15,555][ERROR][logstash.agent] Failed to execute ac  
> tion {:id=\>:main, :action\_type=\>LogStash::ConvergeResult::FailedAction, :message  
> =\>"Could not execute action: PipelineAction::Create, action\_result: false"  
> , :backtrace=\>nil}  
> [2018-06-29T10:30:16,555][INFO][logstash.agent] Successfully started  
> Logstash API endpoint {:port=\>9600}

---

<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 29, 2018, 6:24am UTC](https://discuss.elastic.co/t/logstash-f-is-failed-to-create-index-windows-environment/137898/2 "2018-06-29T06:24:18Z")

</div>

Here's the error message:

> The "sincedb\_path" argument must point to a file, received a directory

---

<div class="post-metadata">

### Author: ![lax](https://avatars.discourse-cdn.com/v4/letter/l/b19c9b/32.png) [@lax](https://discuss.elastic.co/u/lax)
#### Post date: [July 2, 2018, 9:02am UTC](https://discuss.elastic.co/t/logstash-f-is-failed-to-create-index-windows-environment/137898/3 "2018-07-02T09:02:23Z")

</div>

Many thanks Mangnuas!

---

<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 30, 2018, 9:02am UTC](https://discuss.elastic.co/t/logstash-f-is-failed-to-create-index-windows-environment/137898/4 "2018-07-30T09:02:24Z")

</div>

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