# How to increase the performance of logging in elasticsearch

**URL:** https://discuss.elastic.co/t/how-to-increase-the-performance-of-logging-in-elasticsearch/248018
**Category:** Elasticsearch
**Created:** [September 9, 2020, 1:41pm UTC](https://discuss.elastic.co/t/how-to-increase-the-performance-of-logging-in-elasticsearch/248018 "2020-09-09T13:41:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![galet](https://avatars.discourse-cdn.com/v4/letter/g/e95f7d/32.png) [@galet](https://discuss.elastic.co/u/galet)
#### Post date: [September 9, 2020, 1:41pm UTC](https://discuss.elastic.co/t/how-to-increase-the-performance-of-logging-in-elasticsearch/248018/1 "2020-09-09T13:41:18Z")

</div>

I have multiple logs in my elasticsearch plugin app which will be logged during ingest and search.

I want to reduce the time taken to log the events in all log files when multiple ingest or bulk ingest happens. Same for search as well.

What should I do in elasticsearch [log4j2.properties](https://github.com/elastic/elasticsearch/blob/master/distribution/src/config/log4j2.properties) in order to achieve it?

Will Async Logger works for my scenario? How should I use [Async](https://logging.apache.org/log4j/2.x/manual/async.html) Logger in the ES log4j2.properties file?

---

<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: [October 7, 2020, 1:41pm UTC](https://discuss.elastic.co/t/how-to-increase-the-performance-of-logging-in-elasticsearch/248018/2 "2020-10-07T13:41:31Z")

</div>

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