# Will Filebeat ever send my log file content to stdout?

**URL:** <https://discuss.elastic.co/t/will-filebeat-ever-send-my-log-file-content-to-stdout/276988>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 24, 2021, 10:03pm UTC](https://discuss.elastic.co/t/will-filebeat-ever-send-my-log-file-content-to-stdout/276988 "2021-06-24T22:03:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wade](https://avatars.discourse-cdn.com/v4/letter/w/9de053/32.png) [@Wade](https://discuss.elastic.co/u/Wade)\
**Post date:** [June 24, 2021, 10:03pm UTC](https://discuss.elastic.co/t/will-filebeat-ever-send-my-log-file-content-to-stdout/276988/1 "2021-06-24T22:03:00Z")

</div>

Is there ever a scenario where filebeat would log the contents of the files it is harvesting to standard out? I am shipping log files to elasticsearch with sensitive information and anything that is written to stdout it will get captured in cloudwatch, which I can't have happen.

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [June 25, 2021, 12:12am UTC](https://discuss.elastic.co/t/will-filebeat-ever-send-my-log-file-content-to-stdout/276988/2 "2021-06-25T00:12:06Z")

</div>

How are you running filebeat? As a service, running the executable directly, container...? There are configs to output to stdout, but if your not running in debug mode, I dont think you should have an issue.

---

<div class="post-metadata">

**Author:** ![Wade](https://avatars.discourse-cdn.com/v4/letter/w/9de053/32.png) [@Wade](https://discuss.elastic.co/u/Wade)\
**Post date:** [June 25, 2021, 7:06pm UTC](https://discuss.elastic.co/t/will-filebeat-ever-send-my-log-file-content-to-stdout/276988/3 "2021-06-25T19:06:20Z")

</div>

I am running filebeat in a docker container on Amazon ECS. I am using the base image [docker.elastic.co/beats/filebeat:7.8.0](http://docker.elastic.co/beats/filebeat:7.8.0).

Here is my config:

```auto
filebeat.inputs:
  - type: log
    enabled: true
    paths:
      - /usr/local/app/logs/django_out.log
    close_inactive: 15000m
    index: django_logs

setup.template:
  name: "my-logs-template"
  pattern: "my-logs-template-*"

setup.ilm.enabled: false

output.elasticsearch:
  api_key: ${API_KEY}
  hosts: ["${ELASTIC_HOST}"]

```

---

<div class="post-metadata">

**Author:** ![legoguy1000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/legoguy1000/32/54301_2.png) [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Post date:** [June 25, 2021, 7:39pm UTC](https://discuss.elastic.co/t/will-filebeat-ever-send-my-log-file-content-to-stdout/276988/4 "2021-06-25T19:39:14Z")

</div>

I don't see anything in ur config that would output sensitive info to stdout.

---

<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:** [July 23, 2021, 9:39pm UTC](https://discuss.elastic.co/t/will-filebeat-ever-send-my-log-file-content-to-stdout/276988/5 "2021-07-23T21:39:19Z")

</div>

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