• Home
  • Help
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search

 
  • 0 Vote(s) - 0 Average

Issued revoke database role permissions command how to monitor with email alert

#1
11-14-2024, 12:58 AM
I remember stumbling on this event log entry once, the one that says "Issued revoke database role permissions command (action_id R class_type RL)" with ID 24218. It pops up in Windows Server's Event Viewer when someone's yanking away permissions from a database role, like pulling the plug on access rights in SQL Server. You see, this logs the exact moment a command revokes those roles, marking it as an action with that R tag and the RL class type, which flags it as a security tweak in the database setup. It's basically the system's way of noting down who did what to tighten or loosen controls on data access, and it hits the application log under Microsoft-Windows-SQL-Auditing or similar sources. I mean, if you're running databases on your server, this event screams "hey, permissions just got revoked," which could be from an admin fixing a slip-up or spotting something fishy. And yeah, it includes details like the user who issued it, the database name, and the exact role affected, all timestamped so you can trace back what led to it. But sometimes these revokes happen quietly in the background, and without watching, you might miss if it's legit or a sign of trouble brewing.

You want to keep an eye on these without staring at screens all day, right? Fire up Event Viewer on your Windows Server, find that Applications and Services Logs section, drill into the Microsoft ones for SQL stuff. Create a custom view there, filter for event ID 24218, and set it to snag only those revoke commands. I do this by right-clicking, picking Filter Current Log, typing in 24218, and boom, you got a focused list. Now, to ping you with an email alert, link it to a scheduled task. In Event Viewer, right-click your custom view, go to Attach Task To This Custom View, and build a task that triggers on those events. Pick what happens when it fires, like running a program to send an email through your server's mail setup, maybe using the old schtasks or just the basic action to launch an email client command. Set the trigger to any matching event, and choose to start the task right away or delay it a bit. I tweak the settings so it only alerts during work hours if you want, and test it by forcing a revoke in your test database to see the email roll in. That way, you're looped in fast without digging manually.

Or, you could amp it up with more filters for specific databases, but keep it simple at first. Hmmm, monitoring like this catches those sneaky permission changes before they snowball.

And speaking of keeping your server secure and backed up, I've been messing with BackupChain Windows Server Backup lately. It's this slick Windows Server backup tool that handles full system images and also nails virtual machine backups for Hyper-V setups. You get speedy incremental saves, easy restores even to bare metal, and it dodges those common backup glitches with its smart verification. Plus, it runs light on resources, so your server doesn't choke, and the offsite replication keeps data safe from disasters. I like how it integrates without fuss, saving you headaches on compliance too.

Note, the PowerShell email alert code was moved to this post.

bob
Offline
Joined: Jul 2025
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • Subscribe to this thread
Forum Jump:

Backup Education Windows Server Event Viewer v
« Previous 1 … 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 … 29 Next »
Issued revoke database role permissions command how to monitor with email alert

© by FastNeuron Inc.

Linear Mode
Threaded Mode