# Slow log not working in ES6

**URL:** <https://discuss.elastic.co/t/slow-log-not-working-in-es6/165705>\
**Category:** Elasticsearch\
**Created:** [January 25, 2019, 7:00am UTC](https://discuss.elastic.co/t/slow-log-not-working-in-es6/165705 "2019-01-25T07:00:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mannoj87](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mannoj87](https://discuss.elastic.co/u/mannoj87)\
**Post date:** [January 25, 2019, 7:00am UTC](https://discuss.elastic.co/t/slow-log-not-working-in-es6/165705/1 "2019-01-25T07:00:38Z")

</div>

Below are my settings in log4j2.properties, am using 6.3.0. But slow log doesn't log anything.

appender.index\_indexing\_slowlog\_rolling.fileName = {sys:es.logs.base\_path}{sys:file.separator}{sys:es.logs.cluster\_name}\_index\_indexing\_slowlog.log appender.index\_indexing\_slowlog\_rolling.filePattern = {sys:es.logs.base\_path}{sys:file.separator}{sys:es.logs.cluster\_name}\_index\_indexing\_slowlog-%d{yyyy-MM-dd}.log  
index.indexing.slowlog.threshold.index.warn: 1ms  
index.indexing.slowlog.threshold.index.info: 1ms  
index.indexing.slowlog.threshold.index.debug: 1ms  
index.indexing.slowlog.threshold.index.trace: 5ms  
index.indexing.slowlog.level: info  
index.indexing.slowlog.source: 1000

I always find it is 0bytes. How does these variables work? I have given 1ms to log in slow log.

~# ls -ltr /var/log/elasticsearch/ | grep -i slow  
-rw-r--r-- 1 elasticsearch elasticsearch 0 Jan 2 20:38 prd-es6\_index\_search\_slowlog.log  
-rw-r--r-- 1 elasticsearch elasticsearch 0 Jan 2 20:38 prd-es6\_index\_indexing\_slowlog.log

---

<div class="post-metadata">

**Author:** ![pjanzen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pjanzen/32/13756_2.png) [@pjanzen](https://discuss.elastic.co/u/pjanzen)\
**Post date:** [January 25, 2019, 7:12am UTC](https://discuss.elastic.co/t/slow-log-not-working-in-es6/165705/2 "2019-01-25T07:12:35Z")

</div>

I think you need to do more then just configure log4j.

Please [have a look here.](https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules-slowlog.html) Those are the docs for slowlog.

Paul.

---

<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:** [February 22, 2019, 7:13am UTC](https://discuss.elastic.co/t/slow-log-not-working-in-es6/165705/3 "2019-02-22T07:13:02Z")

</div>

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