# Disable filebeat console output

**URL:** <https://discuss.elastic.co/t/disable-filebeat-console-output/128352>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 17, 2018, 12:46pm UTC](https://discuss.elastic.co/t/disable-filebeat-console-output/128352 "2018-04-17T12:46:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![terminaattori](https://avatars.discourse-cdn.com/v4/letter/t/e19b73/32.png) [@terminaattori](https://discuss.elastic.co/u/terminaattori)\
**Post date:** [April 17, 2018, 12:46pm UTC](https://discuss.elastic.co/t/disable-filebeat-console-output/128352/1 "2018-04-17T12:46:17Z")

</div>

Hey!

I'm having trouble disabling my filebeat's console output. I have stated in my filebeat.yml that console output should be enabled but it doesn't work. Do I need to configure it somewhere else as well as to the filebeat.yml? I am currently starting my filebeat with command:

`sudo --preserve-env ./filebeat -e -c filebeat.yml -d "publish" --once`

and my filebeat.yml looks like this:

```
filebeat.prospectors:
- type: log
  paths:
    -PATH

  fields:
     index: ${CURRENT_SERVER}-${DATE_USED}
  close_eof: true
output.logstash:
  hosts: MY HOST
output.console:
  enabled: false

```

I am not sure if the output is even caused by filebeat. The output that I'm trying to disable looks like this:

```
TIMESTAMP	DEBUG	[publish]	pipeline/processor.go:275	Publish event: {
  "@timestamp": TIMESTAMP
  "@metadata": {
    "beat": "filebeat",
    "type": "doc",
    "version": VERSION
  },
  "offset": OFFSET
  "message": MESSAGE
  "prospector": {
    "type": "log"
  },
  "fields": {
    "index": INDEXNAME
  },
  "beat": {
    "name": NAME
    "hostname": NAME
    "version": VERSION
  },
  "source": SOURCE
}
```

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [April 17, 2018, 1:25pm UTC](https://discuss.elastic.co/t/disable-filebeat-console-output/128352/2 "2018-04-17T13:25:03Z")

</div>

`-e` flag makes `filebeat` to log to stderr.

If you want to reduce the level of logs printed you can use [`logging.level`](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-logging.html) 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:** [May 15, 2018, 1:25pm UTC](https://discuss.elastic.co/t/disable-filebeat-console-output/128352/3 "2018-05-15T13:25:09Z")

</div>

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