# Log-stash not showing output in stdout

**URL:** https://discuss.elastic.co/t/log-stash-not-showing-output-in-stdout/223610
**Category:** Logstash
**Created:** [March 14, 2020, 10:51am UTC](https://discuss.elastic.co/t/log-stash-not-showing-output-in-stdout/223610 "2020-03-14T10:51:34Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Seetharaman\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seetharaman_k/32/52542_2.png) [@Seetharaman\_K](https://discuss.elastic.co/u/Seetharaman_K)
#### Post date: [March 14, 2020, 10:51am UTC](https://discuss.elastic.co/t/log-stash-not-showing-output-in-stdout/223610/1 "2020-03-14T10:51:34Z")

</div>

[config](http://dpaste.com/1DNAAT2) -\> my config file

> logstash -f "C:\busapps\drsb\gbl0\logstash\7.0.0\bin\pipelines\logstash.conf"

above is my command

**below is the output :**

> [2020-03-14T10:43:12,670][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
> [2020-03-14T10:43:12,701][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"7.0.0"}  
> [2020-03-14T10:43:19,873][INFO][logstash.javapipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50, "pipeline.max\_inflight"=\>500, :thread=\>"#\<Thread:0x1ad1dde5 run\>"}  
> [2020-03-14T10:43:20,433][INFO][logstash.inputs.file] No sincedb\_path set, generating one based on the "path" setting {:sincedb\_path=\>"C:/busapps/drsb/gbl0/logstash/7.0.0/data/plugins/inputs/file/.sincedb\_4f82f2aa7ccc5e22dc845052d595113f", :path=\>["C:\busdata\samplelogs\2020-03-10\_Robot.log"]}  
> [2020-03-14T10:43:20,519][INFO][logstash.javapipeline] Pipeline started {"pipeline.id"=\>"main"}  
> [2020-03-14T10:43:20,605][INFO][logstash.agent] Pipelines running {:count=\>1, :running\_pipelines=\>[:main], :non\_running\_pipelines=\>}  
> [2020-03-14T10:43:20,605][INFO][filewatch.observingtail] START, creating Discoverer, Watch with file and sincedb collections  
> [2020-03-14T10:43:21,137][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

ideally its should process / simply display the output file (As there is no filter ) . but nothing is happening.. only pipeline started !

---

<div class="post-metadata">

### Author: ![Fabio-sama](https://avatars.discourse-cdn.com/v4/letter/f/b9e5f3/32.png) [@Fabio-sama](https://discuss.elastic.co/u/Fabio-sama)
#### Post date: [March 14, 2020, 12:41pm UTC](https://discuss.elastic.co/t/log-stash-not-showing-output-in-stdout/223610/2 "2020-03-14T12:41:21Z")

</div>

Hi there,

my guess is this is not the first time you try to process that file and since you didn't specify in your input a null parameter for the `sincedb_path` (`sincedb_path => "/dev/null"` for linux and `sincedb_path => "NUL"` for windows if I'm not wrong), Logstash thinks it has already processed that file, that's why you don't see anything.

Try cloning that file, changing its name and changing the filename in the input section of logstash, adding the `sincedb_path => "NUL"` and see if it works.

---

<div class="post-metadata">

### Author: ![Seetharaman\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seetharaman_k/32/52542_2.png) [@Seetharaman\_K](https://discuss.elastic.co/u/Seetharaman_K)
#### Post date: [March 14, 2020, 2:05pm UTC](https://discuss.elastic.co/t/log-stash-not-showing-output-in-stdout/223610/3 "2020-03-14T14:05:02Z")

</div>

thanks first of all , i changed the file name and included the code for "NUL" still the same . any other thoughts.

> Sending Logstash logs to C:/busapps/drsb/gbl0/logstash/7.0.0/logs which is now configured via log4j2.properties  
> [2020-03-14T14:00:37,917][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
> [2020-03-14T14:00:37,932][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"7.0.0"}  
> [2020-03-14T14:00:45,006][INFO][logstash.javapipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50, "pipeline.max\_inflight"=\>500, :thread=\>"#\<Thread:0x46dce278 run\>"}  
> [2020-03-14T14:00:45,540][INFO][logstash.javapipeline] Pipeline started {"pipeline.id"=\>"main"}  
> [2020-03-14T14:00:45,629][INFO][logstash.agent] Pipelines running {:count=\>1, :running\_pipelines=\>[:main], :non\_running\_pipelines=\>}  
> [2020-03-14T14:00:45,645][INFO][filewatch.observingtail] START, creating Discoverer, Watch with file and sincedb collections  
> [2020-03-14T14:00:46,063][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

---

<div class="post-metadata">

### Author: ![Seetharaman\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seetharaman_k/32/52542_2.png) [@Seetharaman\_K](https://discuss.elastic.co/u/Seetharaman_K)
#### Post date: [March 14, 2020, 3:01pm UTC](https://discuss.elastic.co/t/log-stash-not-showing-output-in-stdout/223610/4 "2020-03-14T15:01:17Z")

</div>

infact i deleted the sincedb file , and copied the same log file and named it differently. i went on to even reduce the content of the log file( assuming offset will affect the execution ) .included a "ignore\_older=\>" 0 but still

> C:\busapps\drsb\gbl0\logstash\7.0.0\bin\>logstash -f "C:\busapps\drsb\gbl0\logstash\7.0.0\bin\pipelines\logstash.conf"  
> Sending Logstash logs to C:/busapps/drsb/gbl0/logstash/7.0.0/logs which is now configured via log4j2.properties  
> [2020-03-14T15:16:36,820][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
> [2020-03-14T15:16:36,836][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"7.0.0"}  
> [2020-03-14T15:16:43,958][INFO][logstash.javapipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50, "pipeline.max\_inflight"=\>500, :thread=\>"#\<Thread:0x3f200de7 run\>"}  
> [2020-03-14T15:16:44,618][INFO][logstash.javapipeline] Pipeline started {"pipeline.id"=\>"main"}  
> [2020-03-14T15:16:44,713][INFO][logstash.agent] Pipelines running {:count=\>1, :running\_pipelines=\>[:main], :non\_running\_pipelines=\>}  
> [2020-03-14T15:16:44,728][INFO][filewatch.observingtail] START, creating Discoverer, Watch with file and sincedb collections  
> [2020-03-14T15:16:45,185][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

@yaauie any thoughts ? i am tagging you as i found your reply on a similar issue (in git gub) 🙂 i hope u dont mind.

---

<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: [March 14, 2020, 6:24pm UTC](https://discuss.elastic.co/t/log-stash-not-showing-output-in-stdout/223610/5 "2020-03-14T18:24:33Z")

</div>

Do not use backslash in the path option of a file input. It is interpreted as an escape. Use forward slash (or else use \\).

---

<div class="post-metadata">

### Author: ![Seetharaman\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seetharaman_k/32/52542_2.png) [@Seetharaman\_K](https://discuss.elastic.co/u/Seetharaman_K)
#### Post date: [March 14, 2020, 6:31pm UTC](https://discuss.elastic.co/t/log-stash-not-showing-output-in-stdout/223610/6 "2020-03-14T18:31:00Z")

</div>

ok new path ,

> path =\> "C:/Users/G703065T1/Desktop/log.txt"

new output

> C:\busapps\drsb\gbl0\logstash\7.0.0\bin\>logstash -f "C:\busapps\drsb\gbl0\logstash\7.0.0\bin\pipelines\logstash.conf"  
> Sending Logstash logs to C:/busapps/drsb/gbl0/logstash/7.0.0/logs which is now configured via log4j2.properties  
> [2020-03-14T18:28:40,221][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified  
> [2020-03-14T18:28:40,237][INFO][logstash.runner] Starting Logstash {"logstash.version"=\>"7.0.0"}  
> [2020-03-14T18:28:47,850][INFO][logstash.javapipeline] Starting pipeline {:pipeline\_id=\>"main", "pipeline.workers"=\>4, "pipeline.batch.size"=\>125, "pipeline.batch.delay"=\>50, "pipeline.max\_inflight"=\>500, :thread=\>"#\<Thread:0x35ffeae2 run\>"}  
> [2020-03-14T18:28:48,411][INFO][logstash.javapipeline] Pipeline started {"pipeline.id"=\>"main"}  
> [2020-03-14T18:28:48,512][INFO][logstash.agent] Pipelines running {:count=\>1, :running\_pipelines=\>[:main], :non\_running\_pipelines=\>}  
> [2020-03-14T18:28:48,543][INFO][filewatch.observingtail] START, creating Discoverer, Watch with file and sincedb collections  
> [2020-03-14T18:28:49,259][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=\>9600}

content of the file log.txt is "abcd" thats all. its a simple string!

---

<div class="post-metadata">

### Author: ![Seetharaman\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seetharaman_k/32/52542_2.png) [@Seetharaman\_K](https://discuss.elastic.co/u/Seetharaman_K)
#### Post date: [March 14, 2020, 6:33pm UTC](https://discuss.elastic.co/t/log-stash-not-showing-output-in-stdout/223610/7 "2020-03-14T18:33:46Z")

</div>

my wonder is , in the output section there is no reference of the input file or its path etc., is it first of all processing or not ? infact when i gave "//" it threw some error

> File paths must be absolute, relative path specified: C:\Users\G703065T1\Desktop\log.txt\>, :backtrace=\>["C:/busapps/drsb/gbl0/logstash/7.0.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-file-4.1.10/lib/logstash/inputs/file.rb:269:in `block in register'", "org/jruby/RubyArray.java:1792:in `each'", "C:/busapps/drsb/gbl0/logstash/7.0.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-file-4.1.10/lib/logstash/inputs/file.rb:267:in `register'", "C:/busapps/drsb/gbl0/logstash/7.0.0/logstash-core/lib/logstash/java_pipeline.rb:191:in `block in register\_plugins'", "org/jruby/RubyArray.java:1792:in `each'", "C:/busapps/drsb/gbl0/logstash/7.0.0/logstash-core/lib/logstash/java_pipeline.rb:190:in `register\_plugins'", "C:/busapps/drsb/gbl0/logstash/7.0.0/logstash-core/lib/logstash/java\_pipeline.rb:280:in `start_inputs'", "C:/busapps/drsb/gbl0/logstash/7.0.0/logstash-core/lib/logstash/java_pipeline.rb:244:in `start\_workers'", "C:/busapps/drsb/gbl0/logstash/7.0.0/logstash-core/lib/logstash/java\_pipeline.rb:145:in `run'", "C:/busapps/drsb/gbl0/logstash/7.0.0/logstash-core/lib/logstash/java_pipeline.rb:104:in `block in start'"], :thread=\>"#\<Thread:0x1721e33d run\>"}

---

<div class="post-metadata">

### Author: ![Seetharaman\_K](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seetharaman_k/32/52542_2.png) [@Seetharaman\_K](https://discuss.elastic.co/u/Seetharaman_K)
#### Post date: [March 15, 2020, 7:17pm UTC](https://discuss.elastic.co/t/log-stash-not-showing-output-in-stdout/223610/8 "2020-03-15T19:17:49Z")

</div>

> ```auto
> input
> {
> 
> stdin{}
> 
> }
> 
> filter{
> grok{
> match => {"message"=>"%{LOGLEVEL:loglevel}"}
> overwrite => ["message"]
> }
> }
> output
> {
> 
> stdout{}
> 
> }
> 
> ```

above configuration file solved the problem .

---

<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: [April 12, 2020, 7:17pm UTC](https://discuss.elastic.co/t/log-stash-not-showing-output-in-stdout/223610/9 "2020-04-12T19:17:51Z")

</div>

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