-
Hi, Each day postgres create a new file for log with this pattern : 'postgresql-%Y-%m-%d_%H%M%S.log' fail2ban does not detect the new file unless I restart the service of course. So i can use cron for programming a restart but I would like if there is a way for forcing fail2ban to detect the new(s) file(s). For example it woulld be nice to have a parameter like bantime, for example analysetime. I think there is a low cost just for analysing if there is a new file. idealy 2 parameters analysetime = 00:05:00 (fix analyse) and delaytime = 15m (recurrent ananlyse). Perhaps there is a way but i don't know. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Normally it'd not do that for current file, only for rotated files (in daily case)...
It is not advisable to do that.
One can use
(and one could simply use this 2 command directly instead of reload, but...) But also that is not advisable. Better ways:
|
Beta Was this translation helpful? Give feedback.
Normally it'd not do that for current file, only for rotated files (in daily case)...
This way it is justified for windows possibly, but not for linux where every distro has a proper central mechanism for log-rotation.
It is not advisable to do that.
One can use
reload ?jail?
(which would read the config and built a new config stream, so it'd contain:(and one could simply use this …