![André](/assets/img/avatar_default.png)
[Dovecot] Syslog-ng: Do not trim after each push to Redis [Dovecot] Add new cronjob to trim all Redis logs every minute (will be moved in the future)
8 lines
262 B
Bash
Executable File
8 lines
262 B
Bash
Executable File
#!/bin/bash
|
|
|
|
redis-cli -h redis LTRIM ACME_LOG 0 LOG_LINES
|
|
redis-cli -h redis LTRIM POSTFIX_MAILLOG 0 LOG_LINES
|
|
redis-cli -h redis LTRIM DOVECOT_MAILLOG 0 LOG_LINES
|
|
redis-cli -h redis LTRIM SOGO_LOG 0 LOG_LINES
|
|
redis-cli -h redis LTRIM NETFILTER_LOG 0 LOG_LINES
|