Configuration question

Post Reply
webwalrus
Junior Member
Posts: 2
Joined: 07 Apr 2023, 17:30

Configuration question

Post by webwalrus »

Hi, I have CSF monitoring one of my files, and it's not picking up non-standard log lines generated by LiteSpeed. I have a ton of these:

2023-04-07 10:44:40.487175 [NOTICE] [12043] [T0] [[redacted]:39787-22#_AdminVHost:lsapi] [STDERR] [WebAdmin Console] Failed Login Attempt - username: admin ip: 185.220.100.253 url: https://[redacted]/login.php\n

By my understanding, I should just have to add the log file to (for example) CUSTOM3_LOG in csf.conf, and then write a regex for regex.custom.pm that pulls the offending IP out of the above info - correct?
Sergio
Junior Member
Posts: 1712
Joined: 12 Dec 2006, 14:56

Re: Configuration question

Post by Sergio »

Yes, you are correct.

You have to declare the log that you want your rule to check and save the PATH on a CUSTOM_LOG that is not used by any other process.

After that you can create your own rule.
Post Reply