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!

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...