This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Using Solarwinds to send email alert when Event ID 4740 is detected?

Hi All,

We have multiple AD domain controllers spread across the globe ~20+ hence, looking for Windows Security Event ID 4740 for locked out account is cumbersome and long.

How can I get the email alert from Solarwinds so I can get a meaningful email with the below in the body of the email:

'User' = Jo
'DomainController' = PRDDC18-VM
'EventId' = 4740
'LockedOutTimeStamp' = 03/07/2020 1:15PM
'Message' = Account Locked Out.
'LockedOutLocation' = Jo-SurfacePro

Thank you in advance.

  • I don't know if you can easily modify the event log structure without a lot of custom SWQL/SQL queries but you can embed the event log message itself into your email.

    There are a few steps:

    1. Set up a Windows Event Log component monitor to look for that specific event. The out-of-the-box Windows Domain Controller Security template has this already so you can duplicate that template and remove/disable everything else.

    shuth_0-1593750695063.png

    2. Once you have that assigned to your DC's, you will need to set up an alert.  Create an alert for a "Component" and change the scope so it matches the component name (User Account: Account was locked out) or the name of the application monitor.

    The trigger condition will be Component Status = Down  (unless you change the monitor to go into Critical instead of Down).

    shuth_1-1593750891696.png

    3. In your trigger actions, you can use the variable: ${N=SwisEntity;M=ComponentAlert.WindowsEventMessages}

    This will include the detected event log message in the email.

    It's been a while since I did something like the above so I can't remember the results of every scenario (e.g. users getting locked out while the alert is active, etc).

    They will all show up on the Component Details view in SolarWinds in the Event Log Message Details resource. e.g.

    shuth_0-1593751205354.png

  •  thank you for the response.

    So if I have about 20+ domain controllers, does this requires AppInsight license x 20+ ?

  • This doesn't use AppInsight.

    The licensing usage will depends if you have the newer SAMxxx licence or the older ALxxx license.

    If older license - it uses the single Event Log Monitor component monitor - 1 component * 20 servers = 20 components
    If newer license - it will draw down one SAM node license per server, so 20 servers.

  • I'm still using the older AL license.

    I wonder where do I find the location to create the "Windows Event Log component monitor"?

    I'm using SAM v2020.2
  • Create a new app monitor template then click add component monitor:

    osborne_graham_0-1593772541942.png

    search for 'contains' 'event', specify quantity of the monitors you want (in this case only 1 but worth noting the multi-add for other templates), flag the box, apply and then follow Shuth's instructions above.

    osborne_graham_1-1593772722461.png