# Log4j2.properties

**URL:** https://discuss.elastic.co/t/log4j2-properties/251568
**Category:** Elasticsearch
**Created:** [October 9, 2020, 1:08pm UTC](https://discuss.elastic.co/t/log4j2-properties/251568 "2020-10-09T13:08:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![abhinav\_elk](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@abhinav\_elk](https://discuss.elastic.co/u/abhinav_elk)
#### Post date: [October 9, 2020, 1:08pm UTC](https://discuss.elastic.co/t/log4j2-properties/251568/1 "2020-10-09T13:08:25Z")

</div>

Can someone please explain theses two things in the Log4j.2 properties file in ElasticSearch

```
`appender.index_search_slowlog_rolling.policies.time.type=TimeBasedTriggeringPolicy
 appender.index_search_slowlog_rolling.policies.time.interval = 1`

```

I want to understand how the slow log file will get deleted, as I have memory limitations.  
And I am unable to make it a time based policy - getting the below error

`curl --location --request PUT 'localhost:9200/_settings?pretty' \ --header 'Content-Type: application/json' \ --data-raw '{ "appender.rolling.policies.size.type" : "SizeBasedTriggeringPolicy", "appender.rolling.policies.size.size" : "256MB" }'`

`{ "error": { "root_cause": [{ "type": "illegal_argument_exception", "reason": "unknown setting [index.appender.rolling.policies.size.size] please check that any required plugins are installed, or check the breaking changes documentation for removed settings" } ], "type": "illegal_argument_exception", "reason": "unknown setting [index.appender.rolling.policies.size.size] please check that any required plugins are installed, or check the breaking changes documentation for removed settings", "suppressed": [{ "type": "illegal_argument_exception", "reason": "unknown setting [index.appender.rolling.policies.size.type] please check that any required plugins are installed, or check the breaking changes documentation for removed settings" } ] }, "status": 400 }`

---

<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: [November 6, 2020, 1:08pm UTC](https://discuss.elastic.co/t/log4j2-properties/251568/2 "2020-11-06T13:08:53Z")

</div>

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