Monitoring Splunk

How to extract all the fields after a certain string in splunk

aaa2324
Explorer

In below eg I have some random text after the word type and I want to extract all the strings/ numbers that comes after type, can it be done using Rex ? Please suggest the command 

type abc xyz aabbbbc xxxxyyyy bbbbb uuuuuu 12345677

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @aaa2324,

if you want to extract all the text after "type", you have to use a regex like the following:

| rex "type\s+(?<your_field>.*)"

Ciao.

Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @aaa2324,

if you want to extract all the text after "type", you have to use a regex like the following:

| rex "type\s+(?<your_field>.*)"

Ciao.

Giuseppe

0 Karma

aaa2324
Explorer

Thanks a lot it works 👍

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @aaa2324,

Good for you, see next time!

Ciao and happy splunking.

Giuseppe

P.S.: Karma Points are appreciated 😉

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