# LogStash not showing output on console

**URL:** <https://discuss.elastic.co/t/logstash-not-showing-output-on-console/248163>\
**Category:** Logstash\
**Created:** [September 10, 2020, 11:53am UTC](https://discuss.elastic.co/t/logstash-not-showing-output-on-console/248163 "2020-09-10T11:53:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishal\_Donderia](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vishal_donderia/32/75361_2.png) [@Vishal\_Donderia](https://discuss.elastic.co/u/Vishal_Donderia)\
**Post date:** [September 10, 2020, 11:53am UTC](https://discuss.elastic.co/t/logstash-not-showing-output-on-console/248163/1 "2020-09-10T11:53:44Z")

</div>

I was trying to use filebeat to push data into logstash

filebeat.yml

```auto
 type: log
  # Change to true to enable this input configuration.
  enabled: false

  #Paths that should be crawled and fetched. Glob based paths.
  paths:
    - /Users/vishal/Documents/Softwares/ELK/logstash-tutorial.log

# ---------------------------- Elasticsearch Output ----------------------------
#output.elasticsearch:
  # Array of hosts to connect to.
  #hosts: ["localhost:9200"]

# ------------------------------ Logstash Output -------------------------------
output.logstash:
  hosts: ["localhost:5044"]

```

logstash.conf

```auto
input {
  beats {
    port => "5044"
  }
}

filter {
    grok {
        match => { "message" => "%{COMBINEDAPACHELOG}"}
    }
    geoip {
        source => "clientip"
    }
}

output {
	stdout { codec => rubydebug }
}

```

It was not showing not data on console. After struggling for few hours i have changed logstash.conf file to read data from file as per below. Still not working ☹

```auto
input {
	file {
		path => "/Users/vishal/Documents/Softwares/ELK/logstash-tutorial.log"
		start_position => "beginning"
		sincedb_path => "NUL"
		ignore_older => 0
	}
}

filter {
    grok {
        match => { "message" => "%{COMBINEDAPACHELOG}"}
    }
    geoip {
        source => "clientip"
    }
}

output {
	stdout { codec => rubydebug }
}

```

---

<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:** [September 10, 2020, 2:57pm UTC](https://discuss.elastic.co/t/logstash-not-showing-output-on-console/248163/2 "2020-09-10T14:57:55Z")

</div>

> [@Vishal\_Donderia](#):
>
> ```auto
> sincedb_path => "NUL"
> ignore_older => 0
> 
> ```

On UNIX you should use "/dev/null" as the sincedb\_path to prevent the in-memory sincedb being persisted across restarts. "NUL" is for Windows.

In filebeat, setting ignore\_older to zero disables age based filtering. In logstash it tells the input to ignore any files more than zero seconds old, which is all files. Delete this option.

---

<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:** [October 8, 2020, 2:57pm UTC](https://discuss.elastic.co/t/logstash-not-showing-output-on-console/248163/3 "2020-10-08T14:57:57Z")

</div>

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