# Unable to load csv file into elastic through logstash

**URL:** <https://discuss.elastic.co/t/unable-to-load-csv-file-into-elastic-through-logstash/110882>\
**Category:** Logstash\
**Created:** [December 8, 2017, 5:49pm UTC](https://discuss.elastic.co/t/unable-to-load-csv-file-into-elastic-through-logstash/110882 "2017-12-08T17:49:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yuvaraja\_kannan](https://avatars.discourse-cdn.com/v4/letter/y/ba8739/32.png) [@Yuvaraja\_kannan](https://discuss.elastic.co/u/Yuvaraja_kannan)\
**Post date:** [December 8, 2017, 5:49pm UTC](https://discuss.elastic.co/t/unable-to-load-csv-file-into-elastic-through-logstash/110882/1 "2017-12-08T17:49:57Z")

</div>

HI All,

I am trying to load a CSV file into elastic by initializing logstash through the below command,  
.\bin\logstash -f C:\data\logstash\_cars.config

But data is not transferred due to some reason. I am not able to see the data pipeline in the log as well. Could you advice on this. The below is the log file.

**C:\logstash-6.0.1\>.\bin\logstash -f C:\data\logstash\_cars.config**  
Sending Logstash's logs to C:/logstash-6.0.1/logs which is now configured via lo  
g4j2.properties  
[2017-12-08T19:32:08,069][INFO][logstash.modules.scaffold] Initializing module  
{:module\_name=\>"fb\_apache", :directory=\>"C:/logstash-6.0.1/modules/fb\_apache/con  
figuration"}  
[2017-12-08T19:32:08,085][INFO][logstash.modules.scaffold] Initializing module  
{:module\_name=\>"netflow", :directory=\>"C:/logstash-6.0.1/modules/netflow/configu  
ration"}  
[2017-12-08T19:32:08,506][WARN][logstash.config.source.multilocal] Ignoring the  
'pipelines.yml' file because modules or command line options are specified  
[2017-12-08T19:32:09,961][INFO][logstash.agent] Successfully started  
Logstash API endpoint {:port=\>9600}  
[2017-12-08T19:32:15,033][ERROR][logstash.plugins.registry] Problems loading a p  
lugin with {:type=\>"filter", :name=\>"CSV", :path=\>"logstash/filters/CSV", :error  
\_message=\>"NameError", :error\_class=\>NameError, :error\_backtrace=\>["C:/logstash-  
6.0.1/logstash-core/lib/logstash/plugins/registry.rb:226:in `namespace_lookup'", "C:/logstash-6.0.1/logstash-core/lib/logstash/plugins/registry.rb:162:in`legac  
y\_lookup'", "C:/logstash-6.0.1/logstash-core/lib/logstash/plugins/registry.rb:13  
8:in `lookup'", "C:/logstash-6.0.1/logstash-core/lib/logstash/plugins/registry.r b:180:in`lookup\_pipeline\_plugin'", "C:/logstash-6.0.1/logstash-core/lib/logstas  
h/plugin.rb:140:in `lookup'", "C:/logstash-6.0.1/logstash-core/lib/logstash/pipe line.rb:143:in`plugin'", "(eval):12:in `<eval>'", "org/jruby/RubyKernel.java:99 4:in`eval'", "C:/logstash-6.0.1/logstash-core/lib/logstash/pipeline.rb:82:in `i nitialize'", "C:/logstash-6.0.1/logstash-core/lib/logstash/pipeline.rb:215:in`i  
nitialize'", "C:/logstash-6.0.1/logstash-core/lib/logstash/pipeline\_action/creat  
e.rb:35:in `execute'", "C:/logstash-6.0.1/logstash-core/lib/logstash/agent.rb:33 5:in`block in converge\_state'", "C:/logstash-6.0.1/logstash-core/lib/logstash/a  
gent.rb:141:in `with_pipelines'", "C:/logstash-6.0.1/logstash-core/lib/logstash/ agent.rb:332:in`block in converge\_state'", "org/jruby/RubyArray.java:1734:in `e ach'", "C:/logstash-6.0.1/logstash-core/lib/logstash/agent.rb:319:in`converge\_s  
tate'", "C:/logstash-6.0.1/logstash-core/lib/logstash/agent.rb:166:in `block in converge_state_and_update'", "C:/logstash-6.0.1/logstash-core/lib/logstash/agent .rb:141:in`with\_pipelines'", "C:/logstash-6.0.1/logstash-core/lib/logstash/agen  
t.rb:164:in `converge_state_and_update'", "C:/logstash-6.0.1/logstash-core/lib/l ogstash/agent.rb:90:in`execute'", "C:/logstash-6.0.1/logstash-core/lib/logstash  
/runner.rb:362:in `block in execute'", "C:/logstash-6.0.1/vendor/bundle/jruby/2. 3.0/gems/stud-0.0.23/lib/stud/task.rb:24:in`block in initialize'"]}  
[2017-12-08T19:32:15,120][ERROR][logstash.agent] Failed to execute ac  
tion {:action=\>LogStash::PipelineAction::Create/pipeline\_id:main, :exception=\>"L  
ogStash::PluginLoadingError", :message=\>"Couldn't find any filter plugin named '  
CSV'. Are you sure this is correct? Trying to load the CSV filter plugin resulte  
d in this error: Problems loading the requested plugin named CSV of type filter.  
Error: NameError NameError", :backtrace=\>["C:/logstash-6.0.1/logstash-core/lib/  
logstash/plugins/registry.rb:185:in `lookup_pipeline_plugin'", "C:/logstash-6.0. 1/logstash-core/lib/logstash/plugin.rb:140:in`lookup'", "C:/logstash-6.0.1/logs  
tash-core/lib/logstash/pipeline.rb:143:in `plugin'", "(eval):12:in`'", "o  
rg/jruby/RubyKernel.java:994:in `eval'", "C:/logstash-6.0.1/logstash-core/lib/lo gstash/pipeline.rb:82:in`initialize'", "C:/logstash-6.0.1/logstash-core/lib/log  
stash/pipeline.rb:215:in `initialize'", "C:/logstash-6.0.1/logstash-core/lib/log stash/pipeline_action/create.rb:35:in`execute'", "C:/logstash-6.0.1/logstash-co  
re/lib/logstash/agent.rb:335:in `block in converge_state'", "C:/logstash-6.0.1/l ogstash-core/lib/logstash/agent.rb:141:in`with\_pipelines'", "C:/logstash-6.0.1/  
logstash-core/lib/logstash/agent.rb:332:in `block in converge_state'", "org/jrub y/RubyArray.java:1734:in`each'", "C:/logstash-6.0.1/logstash-core/lib/logstash/  
agent.rb:319:in `converge_state'", "C:/logstash-6.0.1/logstash-core/lib/logstash /agent.rb:166:in`block in converge\_state\_and\_update'", "C:/logstash-6.0.1/logst  
ash-core/lib/logstash/agent.rb:141:in `with_pipelines'", "C:/logstash-6.0.1/logs tash-core/lib/logstash/agent.rb:164:in`converge\_state\_and\_update'", "C:/logstas  
h-6.0.1/logstash-core/lib/logstash/agent.rb:90:in `execute'", "C:/logstash-6.0.1 /logstash-core/lib/logstash/runner.rb:362:in`block in execute'", "C:/logstash-6  
.0.1/vendor/bundle/jruby/2.3.0/gems/stud-0.0.23/lib/stud/task.rb:24:in `block in  
initialize'"]}

C:\logstash-6.0.1\>

---

<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:** [December 8, 2017, 6:58pm UTC](https://discuss.elastic.co/t/unable-to-load-csv-file-into-elastic-through-logstash/110882/2 "2017-12-08T18:58:09Z")

</div>

In your config do you have filter { CSV { ... } } ? If so, change CSV to csv. If I try CSV I get that error message..

---

<div class="post-metadata">

**Author:** ![Yuvaraja\_kannan](https://avatars.discourse-cdn.com/v4/letter/y/ba8739/32.png) [@Yuvaraja\_kannan](https://discuss.elastic.co/u/Yuvaraja_kannan)\
**Post date:** [December 9, 2017, 7:16am UTC](https://discuss.elastic.co/t/unable-to-load-csv-file-into-elastic-through-logstash/110882/3 "2017-12-09T07:16:56Z")

</div>

Thanks, Yes, it looks like I had used CSV instead of csv.

---

<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 6, 2018, 7:17am UTC](https://discuss.elastic.co/t/unable-to-load-csv-file-into-elastic-through-logstash/110882/4 "2018-01-06T07:17:09Z")

</div>

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