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!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

New Release | Splunk Cloud Platform 10.1.2507

Hello Splunk Community!We are thrilled to announce the General Availability of Splunk Cloud Platform 10.1.2507 ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

&#x1f5e3; You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...