# Log4j configuration to not display particular error

**URL:** <https://discuss.elastic.co/t/log4j-configuration-to-not-display-particular-error/326964>\
**Category:** Logstash\
**Created:** [March 3, 2023, 5:49pm UTC](https://discuss.elastic.co/t/log4j-configuration-to-not-display-particular-error/326964 "2023-03-03T17:49:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [March 3, 2023, 5:49pm UTC](https://discuss.elastic.co/t/log4j-configuration-to-not-display-particular-error/326964/1 "2023-03-03T17:49:44Z")

</div>

Hi Im using kafka input, when I get errors it shows me to much data, how to silence this error:  
`[ERROR][logstash.javapipeline]` in log4j2.properties?

thanks

---

<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:** [March 3, 2023, 6:07pm UTC](https://discuss.elastic.co/t/log4j-configuration-to-not-display-particular-error/326964/2 "2023-03-03T18:07:49Z")

</div>

You could probably do it using

```
logger.randomname.name = logstash.javapipeline
logger.randomname.level = FATAL

```

but I wouldn't recommend it!

---

<div class="post-metadata">

**Author:** ![ElasticLiver](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticliver/32/64869_2.png) [@ElasticLiver](https://discuss.elastic.co/u/ElasticLiver)\
**Post date:** [March 3, 2023, 6:14pm UTC](https://discuss.elastic.co/t/log4j-configuration-to-not-display-particular-error/326964/3 "2023-03-03T18:14:04Z")

</div>

Thanks badger, its just for a little while

---

<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:** [April 1, 2023, 4:38pm UTC](https://discuss.elastic.co/t/log4j-configuration-to-not-display-particular-error/326964/5 "2023-04-01T16:38:50Z")

</div>

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