# How to disable specific log output using log4j.properties?

**URL:** <https://discuss.elastic.co/t/how-to-disable-specific-log-output-using-log4j-properties/184787>\
**Category:** Logstash\
**Created:** [June 7, 2019, 4:29pm UTC](https://discuss.elastic.co/t/how-to-disable-specific-log-output-using-log4j-properties/184787 "2019-06-07T16:29:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bschaeffer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bschaeffer/32/40303_2.png) [@bschaeffer](https://discuss.elastic.co/u/bschaeffer)\
**Post date:** [June 7, 2019, 4:29pm UTC](https://discuss.elastic.co/t/how-to-disable-specific-log-output-using-log4j-properties/184787/1 "2019-06-07T16:29:45Z")

</div>

I am seeing a ton of `org.logstash.beats.BeatHandler` logs in logstash's debug out, but I would love to disable that so I can better debug our pipeline.

How would I go about that in the log4j.properties file? Currently we have the following, which I was cargo culting from [the guides](https://www.elastic.co/guide/en/logstash/current/logging.html#log4j2):

```
logger.beatsinput.name = org.logstash.beats.BeatsHandler
logger.beatsinput.level = info

```

For reference, the line I am trying to remove is

```
[$TIMESTAMP][DEBUG][org.logstash.beats.BeatsHandler] ...

```

Would prefer a solution that does not include `grep -v`

---

<div class="post-metadata">

**Author:** ![bschaeffer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bschaeffer/32/40303_2.png) [@bschaeffer](https://discuss.elastic.co/u/bschaeffer)\
**Post date:** [June 10, 2019, 12:56pm UTC](https://discuss.elastic.co/t/how-to-disable-specific-log-output-using-log4j-properties/184787/2 "2019-06-10T12:56:41Z")

</div>

Pinging this

---

<div class="post-metadata">

**Author:** ![bschaeffer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bschaeffer/32/40303_2.png) [@bschaeffer](https://discuss.elastic.co/u/bschaeffer)\
**Post date:** [June 10, 2019, 10:45pm UTC](https://discuss.elastic.co/t/how-to-disable-specific-log-output-using-log4j-properties/184787/3 "2019-06-10T22:45:26Z")

</div>

Solved... its `log4j2.properties` 🤦‍♂️

---

<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 8, 2019, 10:45pm UTC](https://discuss.elastic.co/t/how-to-disable-specific-log-output-using-log4j-properties/184787/4 "2019-07-08T22:45:27Z")

</div>

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