Splunk Search

Splunk search to filter mounts on windows machines?

splunker_rmc
Splunk Employee
Splunk Employee

Looking to write a search that filters mount drives. For example, the values for the field "mount" are "C:" "D:" "F" "harddiskvol1" "harddiskvol2" .... etc.

How can I write a search that returns events ONLY where the mount is a letter, i.e. "C:" "D:", etc. and excludes "harddiskvol1" or anything that does not follow "<letter>:"?

 

Thanks in advance.

Tags (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| where match(mount,"^\w:")

or

| where match(mount,"^[A-Z]:")

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| where match(mount,"^\w:")

or

| where match(mount,"^[A-Z]:")
0 Karma
Get Updates on the Splunk Community!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...