Splunk Search

Inline REX extraction not working once I move it Field Extraction

ebailey
Communicator

The following gives me exactly what I want

host=****** Failed_Reason minutesago=15 | rex "\>(?<Failed_Reason>.*?)\<"

but when I use the regex to build a field extraction I cannot get a result even after restarting the indexer. The search output is the same.

The field extraction format is

"\>(?<Failed_Reason>.*?)\<"

Any idea why this is not working?

Thanks

Tags (2)
0 Karma
1 Solution

sowings
Splunk Employee
Splunk Employee

1) Sounds like auto key=value extraction may be giving you a helping hand.

2) Your regex mentions > and < as marker characters, yet none are visible in your sample message.

3) When you move a regular expression from the search bar into transforms.conf, you'll want to remove the enclosing double-quotes.

View solution in original post

0 Karma

ebailey
Communicator

thanks - the ifx was of no help at all for this issue

0 Karma

ebailey
Communicator

Thanks - that makes sense. Not sure why but about 40 minutes this started working.

0 Karma

sowings
Splunk Employee
Splunk Employee

1) Sounds like auto key=value extraction may be giving you a helping hand.

2) Your regex mentions > and < as marker characters, yet none are visible in your sample message.

3) When you move a regular expression from the search bar into transforms.conf, you'll want to remove the enclosing double-quotes.

0 Karma

lukejadamec
Super Champion

Have yoy tried the field extractor app? It will generate a regex for you.
It is not clear what you're asking, is this for an index time extraction?

0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.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 ...