# Как остановить логи? How to stop slowlog

**URL:** <https://discuss.elastic.co/t/how-to-stop-slowlog/84601>\
**Category:** Вопросы на русском языке\
**Created:** [May 4, 2017, 5:16pm UTC](https://discuss.elastic.co/t/how-to-stop-slowlog/84601 "2017-05-04T17:16:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![klara\_gogi](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@klara\_gogi](https://discuss.elastic.co/u/klara_gogi)\
**Post date:** [May 4, 2017, 5:16pm UTC](https://discuss.elastic.co/t/how-to-stop-slowlog/84601/1 "2017-05-04T17:16:40Z")

</div>

Не могу найти в документации возможность остановить slowlog и deprecated, которые стали дико расти, но не по важному делу. Сейчас это стало критически важно для системы

---

<div class="post-metadata">

**Author:** ![klara\_gogi](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@klara\_gogi](https://discuss.elastic.co/u/klara_gogi)\
**Post date:** [May 4, 2017, 5:17pm UTC](https://discuss.elastic.co/t/how-to-stop-slowlog/84601/2 "2017-05-04T17:17:03Z")

</div>

Настройки логеров:

status = error

# log action execution errors for easier debugging

[logger.action.name](http://logger.action.name) = org.elasticsearch.action  
logger.action.level = debug

appender.console.type = Console  
[appender.console.name](http://appender.console.name) = console  
appender.console.layout.type = PatternLayout  
appender.console.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%m%n

appender.rolling.type = RollingFile  
[appender.rolling.name](http://appender.rolling.name) = rolling  
appender.rolling.fileName = ${sys:es.logs}.log  
appender.rolling.layout.type = PatternLayout  
appender.rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%.-10000m%n  
appender.rolling.filePattern = ${sys:es.logs}-%d{yyyy-MM-dd}.log  
appender.rolling.policies.type = Policies  
appender.rolling.policies.time.type = TimeBasedTriggeringPolicy  
appender.rolling.policies.time.interval = 1  
appender.rolling.policies.time.modulate = true

rootLogger.level = info  
rootLogger.appenderRef.console.ref = console  
rootLogger.appenderRef.rolling.ref = rolling

appender.deprecation\_rolling.type = RollingFile  
appender.deprecation\_rolling.name = deprecation\_rolling  
appender.deprecation\_rolling.fileName = ${sys:es.logs}\_deprecation.log  
appender.deprecation\_rolling.layout.type = PatternLayout  
appender.deprecation\_rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c{1.}] %marker%.-10000m%n  
appender.deprecation\_rolling.filePattern = ${sys:es.logs}\_deprecation-%i.log.gz  
appender.deprecation\_rolling.policies.type = Policies  
appender.deprecation\_rolling.policies.size.type = SizeBasedTriggeringPolicy  
appender.deprecation\_rolling.policies.size.size = 1GB  
appender.deprecation\_rolling.strategy.type = DefaultRolloverStrategy  
appender.deprecation\_rolling.strategy.max = 4

[logger.deprecation.name](http://logger.deprecation.name) = org.elasticsearch.deprecation  
logger.deprecation.level = warn  
logger.deprecation.appenderRef.deprecation\_rolling.ref = deprecation\_rolling  
logger.deprecation.additivity = false

appender.index\_search\_slowlog\_rolling.type = RollingFile  
appender.index\_search\_slowlog\_rolling.name = index\_search\_slowlog\_rolling  
appender.index\_search\_slowlog\_rolling.fileName = ${sys:es.logs}\_index\_search\_slowlog.log  
appender.index\_search\_slowlog\_rolling.layout.type = PatternLayout  
appender.index\_search\_slowlog\_rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c] %marker%.-10000m%n  
appender.index\_search\_slowlog\_rolling.filePattern = ${sys:es.logs}\_index\_search\_slowlog-%d{yyyy-MM-dd}.log  
appender.index\_search\_slowlog\_rolling.policies.type = Policies  
appender.index\_search\_slowlog\_rolling.policies.time.type = TimeBasedTriggeringPolicy  
appender.index\_search\_slowlog\_rolling.policies.time.interval = 1  
appender.index\_search\_slowlog\_rolling.policies.time.modulate = true

logger.index\_search\_slowlog\_rolling.name = index.search.slowlog  
logger.index\_search\_slowlog\_rolling.level = trace  
logger.index\_search\_slowlog\_rolling.appenderRef.index\_search\_slowlog\_rolling.ref = index\_search\_slowlog\_rolling  
logger.index\_search\_slowlog\_rolling.additivity = false

appender.index\_indexing\_slowlog\_rolling.type = RollingFile  
appender.index\_indexing\_slowlog\_rolling.name = index\_indexing\_slowlog\_rolling  
appender.index\_indexing\_slowlog\_rolling.fileName = ${sys:es.logs}\_index\_indexing\_slowlog.log  
appender.index\_indexing\_slowlog\_rolling.layout.type = PatternLayout  
appender.index\_indexing\_slowlog\_rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c] %marker%.-10000m%n  
appender.index\_indexing\_slowlog\_rolling.filePattern = ${sys:es.logs}\_index\_indexing\_slowlog-%d{yyyy-MM-dd}.log  
appender.index\_indexing\_slowlog\_rolling.policies.type = Policies  
appender.index\_indexing\_slowlog\_rolling.policies.time.type = TimeBasedTriggeringPolicy  
appender.index\_indexing\_slowlog\_rolling.policies.time.interval = 1  
appender.index\_indexing\_slowlog\_rolling.policies.time.modulate = true

logger.index\_indexing\_slowlog.name = index.indexing.slowlog.index  
logger.index\_indexing\_slowlog.level = trace  
logger.index\_indexing\_slowlog.appenderRef.index\_indexing\_slowlog\_rolling.ref = index\_indexing\_slowlog\_rolling  
logger.index\_indexing\_slowlog.additivity = false

logger.index\_search\_slowlog.threshold.query.trace=24h

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [May 4, 2017, 6:10pm UTC](https://discuss.elastic.co/t/how-to-stop-slowlog/84601/3 "2017-05-04T18:10:40Z")

</div>

> [@klara\_gogi](#):
>
> Не могу найти в документации возможность остановить slowlog и deprecated

В [Slow Log | Elasticsearch Guide [5.3] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/index-modules-slowlog.html) это описано тут:

> By default, none are enabled (set to -1). Levels (warn, info, debug, trace) allow to control under which logging level the log will be logged.

Из [Configuring Elasticsearch | Elasticsearch Guide [5.3] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/5.3/settings.html#deprecation-logging) выходит, что

> By default, deprecation logging is enabled at the WARN level, the level at which all deprecation log messages will be emitted.  
> `logger.deprecation.level = warn`  
> .... пропускаем ....  
> You can disable it in the config/log4j2.properties file by setting the deprecation log level to error.

---

<div class="post-metadata">

**Author:** ![klara\_gogi](https://avatars.discourse-cdn.com/v4/letter/k/76d3ee/32.png) [@klara\_gogi](https://discuss.elastic.co/u/klara_gogi)\
**Post date:** [May 5, 2017, 11:52am UTC](https://discuss.elastic.co/t/how-to-stop-slowlog/84601/4 "2017-05-05T11:52:49Z")

</div>

Спасибо!

Для slowlog читала документацию apache и подумала что level = OFF , то что мне нужно, а не срабатывало. FATAL почему то тоже.

---

<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 2, 2017, 12:02pm UTC](https://discuss.elastic.co/t/how-to-stop-slowlog/84601/5 "2017-06-02T12:02:05Z")

</div>

Closed on June 2, 2017, 12:02pm UTC

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