plesk LF_MODSEC log

Post Reply
cmer
Junior Member
Posts: 3
Joined: 21 Jun 2010, 19:54

plesk LF_MODSEC log

Post by cmer »

Hello,
It is possible to say LFD has to go and read in several error_log annalyser so that the log of each vhost

Example: /var/www/vhosts/*/statistics/logs/error_log

Thank you:)
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Re: plesk LF_MODSEC log

Post by chirpy »

No, it's not possible. You can only set MODSEC_LOG to a single log file. You could probably add an additional log rule to create such a file if you want lfd to track it.
cmer
Junior Member
Posts: 3
Joined: 21 Jun 2010, 19:54

Re: plesk LF_MODSEC log

Post by cmer »

Hello,

Thank you for your reply:)

Currently jet managed to change your regex to match a fail2ban and it happened to go read all the log customers with just the variable
example:

Code: Select all

[modsec]
enabled  = true
filter   = modsec
action   = apache
logpath  = /var/www/vhosts/*/statistics/logs/error_log
maxretry = 6
restart fail2ban and

Code: Select all

Apr 24 21:04:34 web2 fail2ban.filter : INFO   Added logfile = /var/www/vhosts/hebergement-vous./statistics/logs/error_log
Apr 24 21:04:34 web2 fail2ban.filter : INFO   Added logfile = /var/www/vhosts/supreme-elite../statistics/logs/error_log
Apr 24 21:04:34 web2 fail2ban.filter : INFO   Added logfile = /var/www/vhosts/papys-aperos../statistics/logs/error_log
well it happens to find any matche, Too bad I would have loved to centralize everything on CSF
Post Reply