# Invalid setting for file input plugin- Logstash

**URL:** <https://discuss.elastic.co/t/invalid-setting-for-file-input-plugin-logstash/128711>\
**Category:** Logstash\
**Created:** [April 19, 2018, 1:29pm UTC](https://discuss.elastic.co/t/invalid-setting-for-file-input-plugin-logstash/128711 "2018-04-19T13:29:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SabRay](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@SabRay](https://discuss.elastic.co/u/SabRay)\
**Post date:** [April 19, 2018, 1:29pm UTC](https://discuss.elastic.co/t/invalid-setting-for-file-input-plugin-logstash/128711/1 "2018-04-19T13:29:11Z")

</div>

I am trying to load data from a csv file into elasticsearch. When I try to load the data using the command

logstash -f "\Users\dell\Desktop\Data\logstash\_cars.config"

**The logstash\_cars.config file is:**  
input{  
file{  
path=\>"/Users/dell/Desktop/Data/cars.csv"  
start\_position =\>"begining"  
since\_db =\> "/Users/dell/sincedb.txt"  
}  
}  
filter{  
csv{  
separtor =\>","  
columns =\>["maker","model","mileage","manufature\_year","engine\_displacement","engine\_power","body\_type","color\_slug","skt\_year","transmission","door\_count","seat\_count","fuel\_type","date\_created","date\_last\_seen","price\_eur"]

```
		}
		mutate{convert =>["milege","integer"]}
		mutate{convert =>["price_eur","float"]}
		mutate{convert =>["engine_power","integer"]}
		mutate{convert =>["door_count","integer"]}
		mutate{convert =>["seat_count","integer"]}

```

}

output{  
elasticsearch{  
hosts =\> "localhost"  
index =\> "cars"  
document\_type =\>"sold\_cars"  
}  
stdout{  
}  
}

**The following is the output in terminal:**

Sending Logstash's logs to C:/Software/elk/logstash-6.2.3/logs which is now configured via log4j2.properties  
[2018-04-19T18:45:02,959][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"fb\_apache", :directory=\>"C:/Software/elk/logstash-6.2.3/modules/fb\_apache/configuration"}  
[2018-04-19T18:45:02,991][INFO][logstash.modules.scaffold] Initializing module {:module\_name=\>"netflow", :directory=\>"C:/Software/elk/logstash-6.2.3/modules/netflow/configuration"}  
[2018-04-19T18:45:03,228][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
[2018-04-19T18:45:03,798][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"6.2.3"}  
[2018-04-19T18:45:04,991][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}  
[2018-04-19T18:45:07,471][ERROR][logstash.inputs.file] Invalid setting for file input plugin:

input {  
file {  
# This setting must be a ["beginning", "end"]  
# Expected one of ["beginning", "end"], got ["begining"]  
start\_position =\> "begining"  
...  
}  
}  
[2018-04-19T18:45:07,818][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:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/config/mixin.rb:89:in `config_init'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/inputs/base.rb:62:in`initialize'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/plugins/plugin\_factory.rb:89:in `plugin'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/pipeline.rb:112:in`plugin'", "(eval):8:in `<eval>'", "org/jruby/RubyKernel.java:994:in`eval'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/pipeline.rb:84:in `initialize'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/pipeline.rb:169:in`initialize'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/pipeline\_action/create.rb:40:in `execute'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/agent.rb:315:in`block in converge\_state'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/agent.rb:141:in `with_pipelines'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/agent.rb:312:in`block in converge\_state'", "org/jruby/RubyArray.java:1734:in `each'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/agent.rb:299:in`converge\_state'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/agent.rb:166:in `block in converge_state_and_update'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/agent.rb:141:in`with\_pipelines'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/agent.rb:164:in `converge_state_and_update'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/agent.rb:90:in`execute'", "C:/Software/elk/logstash-6.2.3/logstash-core/lib/logstash/runner.rb:348:in `block in execute'", "C:/Software/elk/logstash-6.2.3/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/task.rb:24:in`block in initialize'"]}

Looks like there is something wrong with my configuration file.  
Please help me resolve this, Thanks in advance!

---

<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:** [April 19, 2018, 1:45pm UTC](https://discuss.elastic.co/t/invalid-setting-for-file-input-plugin-logstash/128711/2 "2018-04-19T13:45:39Z")

</div>

> [@SabRay](#):
>
> # Expected one of ["beginning", "end"], got ["begining"]

It wants a double n, not a single n.

---

<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:** [April 19, 2018, 2:13pm UTC](https://discuss.elastic.co/t/invalid-setting-for-file-input-plugin-logstash/128711/3 "2018-04-19T14:13:15Z")

</div>

Apart from the rather obvious error that has already been pointed out, `since_db` isn't a valid option for the file input. See the plugin documentation for a list of valid options.

---

<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:** [May 17, 2018, 2:13pm UTC](https://discuss.elastic.co/t/invalid-setting-for-file-input-plugin-logstash/128711/4 "2018-05-17T14:13:34Z")

</div>

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