Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Zatalyz on March 20, 2023, 05:27:33 AM

Title: How to set up error log notifications ?
Post by: Zatalyz on March 20, 2023, 05:27:33 AM
Hello,
When we are an admin, the forum displays a notification if the error log has hits. It's pretty good during debugging time: it allowed me to immediately see problems when I changed things in the theme.

But some errors are more like warnings, and I'd prefer not to be notified of them every time in this rather intrusive way. In particular, many of my users make mistakes in their passwords, so I get a notification every time about a wrong password; if it was on the fourth attempt, signalling a potential attack, okay, but it's human to get it wrong once or twice. Too human, in fact, because every time I go to my forum I empty this log (and I should point out that it's the legitimate users who get it wrong every time). It's become so automatic that the day a bot tries to connect, I might not pay attention...

Anyway: is there a way to set up these error notifications, so that you only get what you think is relevant?

Edit : my forum is on 2.1.3 :)
Title: Re: How to set up error log notifications ?
Post by: Doug Heffernan on March 20, 2023, 06:37:18 AM
Quote from: Zatalyz on March 20, 2023, 05:27:33 AMAnyway: is there a way to set up these error notifications, so that you only get what you think is relevant?

Not out of the box. You will need a custom mod for that.
Title: Re: How to set up error log notifications ?
Post by: Steve on March 20, 2023, 08:14:48 AM
Couldn't you go to Admin -> Maintenance -> Error Log -> Log Settings tab and disable either or both these two settings:

Enable reporting of non-activated account log-in attempts
Enable reporting of failed password log-in attempts

?

That would not report repeated password attempts though, right?

@Zatalyz - to control the number of attempts before reporting an error would indeed require a mod, as Doug said.
Title: Re: How to set up error log notifications ?
Post by: Zatalyz on March 20, 2023, 08:55:11 AM
Quote from: SteveEnable reporting of non-activated account log-in attempts
Enable reporting of failed password log-in attempts

I don't see this option... Maybe "Enable error logging" ? But it seem to be more generalist.

I join screenshot of this windows. Either I'm not awake, or maybe with another name  :-[

But as I understand it, it's either no logs at all, or lots of noise, unless I create a plugin?
Title: Re: How to set up error log notifications ?
Post by: Steve on March 20, 2023, 08:59:03 AM
Let me check if I have a mod installed that changes this.

Edit: apparently I do. I can't find it at the mod site though. My apologies.
Title: Re: How to set up error log notifications ?
Post by: Shades. on March 20, 2023, 09:04:03 AM
Quote from: Steve on March 20, 2023, 08:59:03 AMLet me check if I have a mod installed that changes this.
There's a mod called Error Log Control over at webdev @Chen Zhen  ;)
Title: Re: How to set up error log notifications ?
Post by: Steve on March 20, 2023, 09:09:29 AM
Ah, that's it! Thanks @Shades.! The direct link is here (https://web-develop.ca/index.php?action=downloads;area=stable_smf_modifications;file=33).
Title: Re: How to set up error log notifications ?
Post by: Arantor on March 20, 2023, 10:05:03 AM
And if someone's account is being hacked, now you won't know :(