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

ControlUp Community

Connect, Learn, and Grow

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

How to Alert on Added Storage Devices by Drive Letter in ControlUp Using os_disk_configuration Filters

Posted on July 1, 2026

A community member sought assistance with creating a ControlUp trigger or alert to detect when storage devices are added to a physical endpoint and assigned a drive letter or mounted. The data relevant to this event is visible in the ControlUp 4D (CU4D) Performance tab under the Operating System location and stored in the _devices index. Specifically, the data is found in the os_disk_configuration field, which contains a JSON array showing details about mounted drives, including drive letters. The user’s challenge was to configure an alert that could detect any newly mounted drive except the system drive C:\ without having to set multiple alerts for every potential drive letter (e.g., D:\, E:\, etc.). They noted the lack of regex support in the filter queries limited their options.

The issue arises because the os_disk_configuration field holds a JSON array with multiple drive entries, and filtering out drive_letter “C:\” naively removes all entries due to the structure of the array. Attempts to use a “does not contain” filter eliminated all Windows devices, only showing macOS devices, complicating detection on Windows endpoints. The user also tried to narrow the focus to removable media but learned that their security team’s use case requires alerting on any disk, mounted by drive letter, which remains the best indicator available.

Advice provided during the discussion included adding filters for platform or OS to ensure the alert targets only Windows devices (e.g., platform set to 1 or OS equals Windows). This helped reduce irrelevant results but did not completely solve the filtering problem. Suggestions included playing with additional filters such as combining conditions to exclude drive_letter “C:\” while explicitly including removable devices, though this required trial and error. A recommendation was to test filter configurations in the CU4D index view, including setting the platform to 1 to target Windows devices specifically.

Ultimately, the thread highlights the challenge in using ControlUp’s current filtering capabilities on complex JSON arrays like os_disk_configuration for dynamic drive letters without regex support. The workaround involves narrowing the scope by platform/OS filters and experimenting with composite negation filters, although a straightforward out-of-the-box solution for this specific alert scenario is limited. Users needing comprehensive coverage for any drive letter other than C:\ must create a series of alerts or await enhanced filter features. For now, leveraging the detailed disk configuration data in the _devices index with strategic filter layering is the best approach.

For further reading on creating and troubleshooting alerts and filters in ControlUp, users can consult official documentation at https://docs.controlup.com and explore ControlUp Academy resources at https://cuacademy.controlup.com.

Read the entire ‘How to Alert on Added Storage Devices by Drive Letter in ControlUp Using os_disk_configuration Filters’ thread below:

Question – trying to do a trigger/alert for when storage devices are added to a physical endpoint and assigned a drive letter/mounted. Within the CU4D performance tab I can see the data in Operating System location, which I know gets saved to the _devices index. The column I am looking to report on is the os_disk_configuration, which is able to return the same data I see in the Performance Tab dashboard.

The issue I am running into is someone could mount a device with a different letter than D, so I’d want there to be the ability to search for any drive letter other than C. Unfortunately, since this is in the same JSON array, I can’t filter out conditions where “[{“drive_letter”:”C:\\” is found, as it will just remove all of the possible data. I’d also like to avoid creating 25 different alerts where I would change the os_disk_configuration filter to drive_letter”:”D:\\, then drive_letter”:”E:\\, etc. and it doesn’t look like the filter supports a regex query.

Also, I attempted to create a similar alert specifically looking for removable media, but a use case that is important to our information security team is ANY disk and so far, mounted drive letter is the best way I can accomplish that with my current knowledge.

Any ideas?


I hope this makes sense and I’ll also need to try /test in the the morning

But you could look at creating the alert to alert if somthing gets mounted that doesn’t Contain C drive


If I do a “does not contain” filter it wipes all of my windows devices out and only shows mac


You are using _devices I thing there should be a platform or Os
So you can set the platform to 1 for windows or OS to windows

So it must be windows and then the doesn’t contain C


Think *


Looks like it is still excluding it


I’ll play with this in the morning any let you know

Try putting 1 in the max in platform


os_..disk -!![{“drive_letter”:”C:\\
platform – contains – 1 (or of you going to test it in index, then set max to 1 )


I feel that you might need one more filter like `!![{“drive_letter”:”C:\\&&Removable` to get that Storage Device
but you can play around

Continue reading and comment on the thread ‘How to Alert on Added Storage Devices by Drive Letter in ControlUp Using os_disk_configuration Filters’.  Not a member? Join Here!


Categories: All Archives, ControlUp Dashboards, ControlUp for Desktops, ControlUp Scripts & Triggers
Topics: Automation & Alerting, ControlUp Solve, Microsoft Windows, Reporting, Security, Storage, Triggers

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

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 DEX solutions.

Browse 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–2026 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..