Monitoring Splunk

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

aaa2324
Engager

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
Legend

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
Legend

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
Engager

Thanks a lot it works 👍

0 Karma

gcusello
Legend

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!

Introducing Ingest Actions: Filter, Mask, Route, Repeat

WATCH NOW Ingest Actions (IA) is the best new way to easily filter, mask and route your data in Splunk® ...

Splunk Forwarders and Forced Time Based Load Balancing

Splunk customers use universal forwarders to collect and send data to Splunk. A universal forwarder can send ...

NEW! Log Views in Splunk Observability Dashboards Gives Context From a Single Page

Today, Splunk Observability releases log views, a new feature for users to add their logs data from Splunk Log ...