Splunk Search

Using regex to filter by file directory

nwalker15
Engager

I have a field in splunk named commandline.  I want to filter this field just by values containing "C:\"

This appears sometimes at the beginning of the filed value and other times in the middle.  Can someone help me with a regex statement or other search filter to narrow my results this way?

Labels (1)
0 Karma
1 Solution

diogofgm
SplunkTrust
SplunkTrust

Use wildcards

commandline=“*C:\*”

------------
Hope I was able to help you. If so, some karma would be appreciated.

View solution in original post

Vardhan
Contributor

Hi @nwalker15 ,

 provide sample logs and highlight the keyword which you want to extract.

0 Karma

diogofgm
SplunkTrust
SplunkTrust

Use wildcards

commandline=“*C:\*”

------------
Hope I was able to help you. If so, some karma would be appreciated.
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...