# APM only shows errors and Warnings

**URL:** <https://discuss.elastic.co/t/apm-only-shows-errors-and-warnings/274652>\
**Category:** APM\
**Tags:** ruby\
**Created:** [June 1, 2021, 2:36pm UTC](https://discuss.elastic.co/t/apm-only-shows-errors-and-warnings/274652 "2021-06-01T14:36:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mar-ro](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@mar-ro](https://discuss.elastic.co/u/mar-ro)\
**Post date:** [June 1, 2021, 2:36pm UTC](https://discuss.elastic.co/t/apm-only-shows-errors-and-warnings/274652/1 "2021-06-01T14:36:45Z")

</div>

Good afternoon!  
I would like to know if it is possible to configure the different APM agents to log only errors and warnings. Is it possible to do this? How?  
Thank you!

---

<div class="post-metadata">

**Author:** ![trentm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trentm/32/77647_2.png) [@trentm](https://discuss.elastic.co/u/trentm)\
**Post date:** [June 1, 2021, 3:39pm UTC](https://discuss.elastic.co/t/apm-only-shows-errors-and-warnings/274652/2 "2021-06-01T15:39:59Z")

</div>

@mar-ro Hi! Yes that can be done by setting the "log\_level" config var to "warning". For example, here are the docs for that config variable for the Node.js APM agent: [Configuration options | APM Node.js Agent Reference [3.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/nodejs/current/configuration.html#log-level)

or for the Java APM agent: [Logging configuration options | APM Java Agent Reference [1.x] | Elastic](https://www.elastic.co/guide/en/apm/agent/java/current/config-logging.html#config-log-level)

How each agent is configured varies from language to language a little bit. Most (all?) recent agent versions support setting the `log_level` via "central config" in Kibana, if that is an option for you.

Cheers,  
Trent

---

<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:** [June 22, 2021, 11:40am UTC](https://discuss.elastic.co/t/apm-only-shows-errors-and-warnings/274652/3 "2021-06-22T11:40:26Z")

</div>

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