Splunk Search

Working regex elsewhere does not work in Splunk

mxanareckless
Path Finder

As seen in the first example, the expression I've constructed will capture the field values I want. However in the second example, all of the values are not being captured for the field I wish to extract. Why is it capturing everything in the first example, but not the second?

Capturing between 1-3 digits followed by 1 of any letter.

spkregex2.PNG

 

spkregex3.PNG

Labels (4)
Tags (2)
0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Try a variation of the regex.

(?<size>\d{1,3}\w)
---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Try a variation of the regex.

(?<size>\d{1,3}\w)
---
If this reply helps you, 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 ...