Difference between revisions of "Configuration logrotate for fail2ban"
Line 16: | Line 16: | ||
This article has been created by an automatic translation software. You can view the article source [[:fr:Configuration logrotate pour fail2ban|here]].<br /><span data-translate="fr"></span> | This article has been created by an automatic translation software. You can view the article source [[:fr:Configuration logrotate pour fail2ban|here]].<br /><span data-translate="fr"></span> | ||
+ | |||
+ | {{#seo: | ||
+ | |title=Configuration logrotate for fail2ban | ||
+ | |title_mode=append | ||
+ | |keywords=these,are,your,keywords | ||
+ | |description=Configuration logrotate for fail2ban | ||
+ | |image=Uploaded_file.png | ||
+ | |image_alt=Wiki Logo | ||
+ | }} | ||
In order to limit the use of the file space | _. _. We will configure logrotate to limit this consumption. '''/var/log/fail1ban''' For that we will create the file | _. _. with the content below: _! _ | We can use the following command to force the rotation without waiting for the scheduled task execution | In order to limit the use of the file space | _. _. We will configure logrotate to limit this consumption. '''/var/log/fail1ban''' For that we will create the file | _. _. with the content below: _! _ | We can use the following command to force the rotation without waiting for the scheduled task execution |
Latest revision as of 15:29, 1 October 2021
en:Configuration logrotate for fail2ban
es:"Logrotate" en la configuración de fail2ban
he:Logrotate תצורה עבור fail2ban
ro:Configurare logrotate pentru fail2ban
ru:Конфигурация logrotate для fail2ban
pl:Logrotate konfiguracji dla fail2ban
ja:Fail2ban の構成 logrotate
ar:لوجروتاتي التكوين ل fail2ban
zh:Fail2ban 的配置翻转
de:Konfiguration Logrotate für fail2ban
nl:Configuratie logrotate voor fail2ban
it:Configurazione logrotate per fail2ban
pt:Logrotate configuração para fail2ban
fr:Configuration logrotate pour fail2ban
This article has been created by an automatic translation software. You can view the article source here.
In order to limit the use of the file space | _. _. We will configure logrotate to limit this consumption. /var/log/fail1ban For that we will create the file | _. _. with the content below: _! _ | We can use the following command to force the rotation without waiting for the scheduled task execution
/etc/logrotate.d/fail2ban :
/var/log/fail2ban.log { rotate 7 missingok compress postrotate /usr/bin/fail2ban-client flushlogs 1>/dev/null || true endscript }
:
logrotate -vf /etc/logrotate.conf
Enable comment auto-refresher