# Changing logger setting using API

**URL:** <https://discuss.elastic.co/t/changing-logger-setting-using-api/246223>\
**Category:** Elasticsearch\
**Created:** [August 25, 2020, 6:24am UTC](https://discuss.elastic.co/t/changing-logger-setting-using-api/246223 "2020-08-25T06:24:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![somebody](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@somebody](https://discuss.elastic.co/u/somebody)\
**Post date:** [August 25, 2020, 6:24am UTC](https://discuss.elastic.co/t/changing-logger-setting-using-api/246223/1 "2020-08-25T06:24:47Z")

</div>

Logging information: [https://www.elastic.co/guide/en/elasticsearch/reference/current/logging.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/logging.html)

We are trying to change the following logger through API provided above:

```auto
appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
appender.rolling.policies.size.size = 256MB
appender.rolling.strategy.type = DefaultRolloverStrategy
appender.rolling.strategy.max = 5

```

When we try to update the logger settings:

```auto
{
  "transient": {
    "appender.rolling.policies.size.size": "10MB"
  }
}

```

We are getting this error:

```auto
  "error" : {
    "root_cause" : [
      {
        "type" : "illegal_argument_exception",
        "reason" : "transient setting [appender.rolling.policies.size.size], not recognized"
      }
    ],
    "type" : "illegal_argument_exception",
    "reason" : "transient setting [appender.rolling.policies.size.size], not recognized"
  },
  "status" : 400
}

```

How can we change these setting through APIs?

---

<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:** [September 22, 2020, 6:24am UTC](https://discuss.elastic.co/t/changing-logger-setting-using-api/246223/2 "2020-09-22T06:24:58Z")

</div>

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