# Expire\_logs\_days =\> binlog\_expire\_logs\_seconds

**URL:** <https://forums.percona.com/t/expire-logs-days-binlog-expire-logs-seconds/36741>\
**Category:** Percona Toolkit\
**Created:** [February 16, 2025, 1:14pm UTC](https://forums.percona.com/t/expire-logs-days-binlog-expire-logs-seconds/36741 "2025-02-16T13:14:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nunop](https://avatars.discourse-cdn.com/v4/letter/n/5fc32e/32.png) [@nunop](https://forums.percona.com/u/nunop)\
**Post date:** [February 16, 2025, 1:14pm UTC](https://forums.percona.com/t/expire-logs-days-binlog-expire-logs-seconds/36741/1 "2025-02-16T13:14:10Z")

</div>

In `pt-variable-advisor`:

> WARN expire\_logs\_days: Binary logs are enabled, but automatic purging is not enabled. If you do not purge binary logs, your disk will fill up.

`expire_logs_days` is deprecated, and this is what we should use now:

`binlog_expire_logs_seconds = 604800`

However, the warning still appears, because I’m not setting `expire_logs_days`.

I believe this should be updated.

Thanks!!

---

<div class="post-metadata">

**Author:** ![Abhinav\_Gupta](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/abhinav_gupta/32/6262_2.png) [@Abhinav\_Gupta](https://forums.percona.com/u/Abhinav_Gupta)\
**Post date:** [February 17, 2025, 2:41pm UTC](https://forums.percona.com/t/expire-logs-days-binlog-expire-logs-seconds/36741/2 "2025-02-17T14:41:00Z")

</div>

Please report it with detailed test case steps to [https://jira.percona.com](https://jira.percona.com/).
