• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Podcast
  • Meetups
  • Archives
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp for Desktops
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp for VDI
  • Topics
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

Automation and Monitoring with SentinelOne and ControlUp

Posted on May 14, 2024

Some employees discuss their experience using SentinelOne on VDI servers, and how they created a script to alert for quarantine actions by searching the SentinelOne/Operational log. This script allows ControlUp to trigger from the application log. Some mention using S1 console and Splunk dashboard for monitoring. There is also a link to the script provided.


Read the entire ‘Automation and Monitoring with SentinelOne and ControlUp’ thread below:

Anyone do any work in the SentinelOne space? Logs analysis, etc? Looking to see if others have creative ways to grab logs form instant clones before the users log off. Or any other SentinelOne related tasks.


We use SentinelOne on our VDI servers. Its managed by another department. They disabled the tray icon and ability to open the app so we had no way of knowing if something was quarantined without asking them for logs from SentinelOne console. Fortunately they allowed event logs (SentinelOne has ability to disable on client side) so we created a script to search SentinelOne/Operational log for time period of past 30 min for event IDs 31, 32, and 27 which are related to quarantine actions. If found on server, the script generates an event in Application log with info found. Typically it will include the file that was quarantined. We do this so we can use ControlUp to trigger from the event in application log since Controlup cant see the Operational log from SentinelOne. We setup two triggers. One scheduled trigger to run the script on VDI servers in use every 30 minutes. Another event log trigger to that alerts for the application log event on the VDI servers if any quarantine action was found.

Here is the script. It can be used to search any event log by changing the logname and event ids to filter

“`$machineName = $args[0]

$minutesback = $args[1]

[System.Threading.Thread]::CurrentThread.CurrentCulture = New-Object "System.Globalization.CultureInfo" "en-US"

[datetime]$StartTime = (Get-Date).AddMinutes(-$minutesback)

$filter = @{

<# how many minutes in the past we may look #>

starttime = $StartTime;

<# only specific events #>

Id = @(32, 27);

<# search logs #>

logname = "SentinelOne/Operational"

}

[int]$exitCode = 0

try{

[array]$Events = Get-WinEvent -ComputerName $machineName -FilterHashtable $filter -ErrorAction SilentlyContinue | Sort-Object -Property Id | Select-Object machinename,timecreated,logname,id,message

if($null -ne $Events) {

$allfilter = @{

<# how many minutes in the past we may look #>

starttime = $StartTime;

<# only specific events #>

Id = @(31, 32, 27);

<# search logs #>

logname = "SentinelOne/Operational"

}

[array]$AllEvents = Get-WinEvent -ComputerName $machineName -FilterHashtable $allfilter -ErrorAction SilentlyContinue | Sort-Object -Property Id | Select-Object machinename,timecreated,logname,id,message

$Eventmessage = $AllEvents | Format-List -Property message | Out-String

$Eventtime = (($AllEvents | Select-Object -First 1).timecreated).ToLongTimeString()

Write-EventLog -ComputerName $machineName -LogName "Application" -Source "ControlUp Agent" -EventID 5000 -EntryType Warning -Category 0 -Message "Found Sentinel One alert at $Eventtime $($Eventmessage)"

}

}

catch {

Write-Host "Could not find relevant events in the SentinelOne/Operational log. `nThe checks should be run every $($minutesback) mins or less"

Exit 1

}

exit $exitCode“`


where do the logs end up? All I see is a success message


Sure


thx


Event log will be created in Application log on the server only if there are event ids found in the Applications and Services Logs > SentinelOne/Operational

in the specific time frame


ah, i was thinking the output would be to console so I could capture them before the user logs off and event viewer is lost.


Are you trying to capture all the logs from SentinelOne/Operational event log?


was jsut curious what others are doing. we have access to the S1 console as well as having all activity sent to a syslog collector and presented in a Splunk dashboard


Ahh ok. Yea this was implemented because we dont have access to S1 console or any visibility into the activity and we needed to find a proactive way to ensure S1 wasnt killing our companies own in-house developed apps


that makes since

Continue reading and comment on the thread ‘Automation and Monitoring with SentinelOne and ControlUp’.  Not a member? Join Here!


Categories: All Archives, ControlUp Scripts & Triggers
Topics: Automation, Automation & Alerting, ControlUp Agent, Logs, Scripts, Splunk, Triggers, VDI

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn
Did you Know - with Sivan Kroitoru
Practical Perspectives Technical Use Case Training

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp solutions.

Browse here >

Download ControlUp RealTime DX

Start with ControlUp for real-time end-user environment insights, swift troubleshooting, and unprecedented performance optimization. Download now.

Download here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2025 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..