# Elasticsearch change log level

**URL:** <https://discuss.elastic.co/t/elasticsearch-change-log-level/243293>\
**Category:** Elasticsearch\
**Created:** [July 31, 2020, 1:42am UTC](https://discuss.elastic.co/t/elasticsearch-change-log-level/243293 "2020-07-31T01:42:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [July 31, 2020, 1:42am UTC](https://discuss.elastic.co/t/elasticsearch-change-log-level/243293/1 "2020-07-31T01:42:53Z")

</div>

Hi

There are lot of configurations in log4j properties. I'm using logstash to insert records to elasticsearch and I need to log those.  
what is the effect of changing below config?

logger.action.name = org.elasticsearch.action  
logger.action.level = debug

Also can this be changed without restarting elasticsearch?

Regards  
Ram

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 31, 2020, 2:14am UTC](https://discuss.elastic.co/t/elasticsearch-change-log-level/243293/2 "2020-07-31T02:14:51Z")

</div>

It'll log quite a lot of data out to the log. If you don't need the info, you should leave it.

You can update these [dynamically](https://www.elastic.co/guide/en/elasticsearch/reference/current/logging.html#configuring-logging-levels).

---

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [July 31, 2020, 4:53am UTC](https://discuss.elastic.co/t/elasticsearch-change-log-level/243293/3 "2020-07-31T04:53:34Z")

</div>

Thank you for the prompt response. which logger i should change to enable logstash insertion logs and skips all other unwanted logs? Is there any such?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 31, 2020, 5:47am UTC](https://discuss.elastic.co/t/elasticsearch-change-log-level/243293/4 "2020-07-31T05:47:17Z")

</div>

There's not explicitly, no. You'd need a pretty custom logging setup to extract just them.  
Logstash has [some settings](https://www.elastic.co/guide/en/logstash/current/logging.html) that might help.

What problem are you trying to solve here?

---

<div class="post-metadata">

**Author:** ![RAM\_NATHAN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ram_nathan/32/50393_2.png) [@RAM\_NATHAN](https://discuss.elastic.co/u/RAM_NATHAN)\
**Post date:** [July 31, 2020, 7:38am UTC](https://discuss.elastic.co/t/elasticsearch-change-log-level/243293/5 "2020-07-31T07:38:14Z")

</div>

We are using logstash for parsing and storing events in elasticsearch. For troubleshooting, we need someway to log the events that got inserted into elasticsearch.

---

<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:** [August 29, 2020, 7:27am UTC](https://discuss.elastic.co/t/elasticsearch-change-log-level/243293/7 "2020-08-29T07:27:14Z")

</div>

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