# No ouput using logstash file plugin

**URL:** <https://discuss.elastic.co/t/no-ouput-using-logstash-file-plugin/189650>\
**Category:** Logstash\
**Created:** [July 10, 2019, 3:09am UTC](https://discuss.elastic.co/t/no-ouput-using-logstash-file-plugin/189650 "2019-07-10T03:09:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Altiano\_Gerung](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/altiano_gerung/32/38040_2.png) [@Altiano\_Gerung](https://discuss.elastic.co/u/Altiano_Gerung)\
**Post date:** [July 10, 2019, 3:09am UTC](https://discuss.elastic.co/t/no-ouput-using-logstash-file-plugin/189650/1 "2019-07-10T03:09:15Z")

</div>

I'm using Windows 10.  
Logstash 7.2.0

I just want to see the output of filter in console window..

My config `c.conf`:

> ```
> input {
> file {
> path => "D:\Elastic\logstash-7.2.0\test\theLogFile"
> start_position => "beginning"
> mode => "read"
> }
> }
> output {
> stdout { codec => rubydebug }
> }
> 
> ```

My log file `theLogFile`:

> ```
> 2019-01-09 09:01:05,333 ERROR-Log Message
> 2019-01-10 09:01:05,333 WARNING-Log Message
> 
> ```

Then I run the logstash:  
`.\bin\logstash -f test\c.conf --config.reload.automatic`

The output:

> ```
> Thread.exclusive is deprecated, use Thread::Mutex
> Sending Logstash logs to D:/Elastic/logstash-7.2.0/logs which is now configured via log4j2.properties
> [2019-07-10T10:07:28,637][WARN][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
> [2019-07-10T10:07:28,666][INFO][logstash.runner] Starting Logstash {"logstash.version"=>"7.2.0"}
> [2019-07-10T10:07:35,759][WARN][org.logstash.instrument.metrics.gauge.LazyDelegatingGauge] A gauge metric of an unknown type (org.jruby.RubyArray) has been create for key: cluster_uuids. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.
> [2019-07-10T10:07:35,766][INFO][logstash.javapipeline] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>8, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>1000, :thread=>"#<Thread:0x5e611e6b run>"}
> [2019-07-10T10:07:36,792][INFO][logstash.inputs.file] No sincedb_path set, generating one based on the "path" setting {:sincedb_path=>"D:/Elastic/logstash-7.2.0/data/plugins/inputs/file/.sincedb_4c88b325039e0801e1b541e2cf388ac7", :path=>["D:\\Elastic\\logstash-7.2.0\\test\\theLogFile"]}
> [2019-07-10T10:07:36,840][INFO][logstash.javapipeline] Pipeline started {"pipeline.id"=>"main"}
> [2019-07-10T10:07:36,930][INFO][filewatch.observingread] START, creating Discoverer, Watch with file and sincedb collections
> [2019-07-10T10:07:36,938][INFO][logstash.agent] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]}
> [2019-07-10T10:07:37,310][INFO][logstash.agent] Successfully started Logstash API endpoint {:port=>9600}
> 
> ```

I also tried to edit the file but **No Ouput** either.  
Please help me.

---

<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:** [July 10, 2019, 2:22pm UTC](https://discuss.elastic.co/t/no-ouput-using-logstash-file-plugin/189650/2 "2019-07-10T14:22:29Z")

</div>

> [@Altiano\_Gerung](#):
>
> path =\> "D:\Elastic\logstash-7.2.0\test\theLogFile"

Use forward slash in filenames in the path option of a file filter.

---

<div class="post-metadata">

**Author:** ![Altiano\_Gerung](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/altiano_gerung/32/38040_2.png) [@Altiano\_Gerung](https://discuss.elastic.co/u/Altiano_Gerung)\
**Post date:** [July 11, 2019, 5:28am UTC](https://discuss.elastic.co/t/no-ouput-using-logstash-file-plugin/189650/3 "2019-07-11T05:28:54Z")

</div>

I just add JVM\_HOME env variable and it works. Not sure what is 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:** [August 8, 2019, 5:39am UTC](https://discuss.elastic.co/t/no-ouput-using-logstash-file-plugin/189650/4 "2019-08-08T05:39:32Z")

</div>

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