# Output of \`logstash -e 'input { stdin { } } output { stdout {} }'\`

**URL:** <https://discuss.elastic.co/t/output-of-logstash-e-input-stdin-output-stdout/210244>\
**Category:** Logstash\
**Created:** [December 2, 2019, 8:45pm UTC](https://discuss.elastic.co/t/output-of-logstash-e-input-stdin-output-stdout/210244 "2019-12-02T20:45:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Willl](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@Willl](https://discuss.elastic.co/u/Willl)\
**Post date:** [December 2, 2019, 8:45pm UTC](https://discuss.elastic.co/t/output-of-logstash-e-input-stdin-output-stdout/210244/1 "2019-12-02T20:45:10Z")

</div>

Hi  
Testing a new 7.5.0 setup. Brand new. Logstash doc says test it with

> logstash -e 'input { stdin { } } output { stdout {} }'

and then enter "hello world" after logstash says "pipeline is started" and I should see a line

> 2013-11-21T01:22:14.405+0000 0.0.0.0 hello world

But I see a json formatted output in the terminal. Is this the supposed the result instead? Everything is fresh install on the system.

> {  
> "@version" =\> "1",  
> "message" =\> "Hello World",  
> "host" =\> "testnode1",  
> "@timestamp" =\> 2019-12-02T20:37:08.373Z  
> }

Thanks  
W

---

<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 3, 2019, 12:59pm UTC](https://discuss.elastic.co/t/output-of-logstash-e-input-stdin-output-stdout/210244/2 "2019-12-03T12:59:10Z")

</div>

Yes, the default codec used by a stdout output is now rubydebug. In the past that was not true, it was (I think) "plain" which would give the message format you quote.

---

<div class="post-metadata">

**Author:** ![Willl](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@Willl](https://discuss.elastic.co/u/Willl)\
**Post date:** [December 3, 2019, 9:24pm UTC](https://discuss.elastic.co/t/output-of-logstash-e-input-stdin-output-stdout/210244/3 "2019-12-03T21:24:08Z")

</div>

Right. Got the point.  
part of the testing is using output  
`stdout { codec => rubydebug }`

---

<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:** [December 31, 2019, 9:26pm UTC](https://discuss.elastic.co/t/output-of-logstash-e-input-stdin-output-stdout/210244/4 "2019-12-31T21:26:55Z")

</div>

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