# Issues processing text file with Logstash 2.4

**URL:** <https://discuss.elastic.co/t/issues-processing-text-file-with-logstash-2-4/63446>\
**Category:** Logstash\
**Created:** [October 19, 2016, 9:29pm UTC](https://discuss.elastic.co/t/issues-processing-text-file-with-logstash-2-4/63446 "2016-10-19T21:29:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpnoonan](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@tpnoonan](https://discuss.elastic.co/u/tpnoonan)\
**Post date:** [October 19, 2016, 9:29pm UTC](https://discuss.elastic.co/t/issues-processing-text-file-with-logstash-2-4/63446/1 "2016-10-19T21:29:31Z")

</div>

I've got a text file (json) that I want to process and eventually pump into ElasticSearch. I first started with a more elaborate configuration file and have now scaled back to a simple config that uses stdin for input and just does a very simple output to stdout. Just let me see the file being read in and out, that's all.

running this:  
cat /u01/app/elastic/soi\_data/alert\_details\_soi.json | bin/logstash --debug -e 'input { stdin { } } output { stdout {} }'

Results in logstash saying the stdin and stdout plugins are not in the defined namespace.

Plugin not defined in namespace, checking for plugin file {:type=\>"input", :name=\>"stdin", :path=\>"logstash/inputs/stdin", :level=\>:debug, :file=\>"logstash/plugin.rb", :line=\>"86", :method=\>"lookup"}  
Plugin not defined in namespace, checking for plugin file {:type=\>"codec", :name=\>"line", :path=\>"logstash/codecs/line", :level=\>:debug, :file=\>"logstash/plugin.rb", :line=\>"86", :method=\>"lookup"}  
config LogStash::Codecs::Line/@charset = "UTF-8" {:level=\>:debug, :file=\>"logstash/config/mixin.rb", :line=\>"154", :method=\>"config\_init"}  
config LogStash::Codecs::Line/@delimiter = "\n" {:level=\>:debug, :file=\>"logstash/config/mixin.rb", :line=\>"154", :method=\>"config\_init"}  
config LogStash::Inputs::Stdin/@codec = \<LogStash::Codecs::Line charset=\>"UTF-8", delimiter=\>"\n"\> {:level=\>:debug, :file=\>"logstash/config/mixin.rb", :line=\>"154", :method=\>"config\_init"}  
config LogStash::Inputs::Stdin/@add\_field = {} {:level=\>:debug, :file=\>"logstash/config/mixin.rb", :line=\>"154", :method=\>"config\_init"}  
Plugin not defined in namespace, checking for plugin file {:type=\>"output", :name=\>"stdout", :path=\>"logstash/outputs/stdout", :level=\>:debug, :file=\>"logstash/plugin.rb", :line=\>"86", :method=\>"lookup"}  
starting agent {:level=\>:info, :file=\>"logstash/agent.rb", :line=\>"213", :method=\>"execute"}  
starting pipeline {:id=\>"main", :level=\>:info, :file=\>"logstash/agent.rb", :line=\>"487", :method=\>"start\_pipeline"}

Then is subsequently dies. Anyone seen this behavior?

---

<div class="post-metadata">

**Author:** ![tpnoonan](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@tpnoonan](https://discuss.elastic.co/u/tpnoonan)\
**Post date:** [October 19, 2016, 9:31pm UTC](https://discuss.elastic.co/t/issues-processing-text-file-with-logstash-2-4/63446/2 "2016-10-19T21:31:33Z")

</div>

Just to validate here's a listing of the file that is being fed in as input.

[introsvr@vaausmonapp400 logstash-2.4.0]$ ls -lh /u01/app/elastic/soi\_data/alert\_details\_soi.json  
-rw-r-----. 1 introsvr introsvr 1.6G Oct 18 14:52 /u01/app/elastic/soi\_data/alert\_details\_soi.json  
[introsvr@vaausmonapp400 logstash-2.4.0]$

---

<div class="post-metadata">

**Author:** ![tpnoonan](https://avatars.discourse-cdn.com/v4/letter/t/76d3ee/32.png) [@tpnoonan](https://discuss.elastic.co/u/tpnoonan)\
**Post date:** [October 19, 2016, 9:39pm UTC](https://discuss.elastic.co/t/issues-processing-text-file-with-logstash-2-4/63446/3 "2016-10-19T21:39:22Z")

</div>

ok, ends up it is something with the file because I just tried the same process using another file and it worked as expected...very interesting....and peculiar....

---

<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 6, 2017, 4:33am UTC](https://discuss.elastic.co/t/issues-processing-text-file-with-logstash-2-4/63446/4 "2017-07-06T04:33:30Z")

</div>


