Splunk Search

i want to ignore the text before modify and want to text after that. i want to pick from the first modify present and want entire text. it should not start from 2nd modify if present

DataOrg
Builder

Ex : hello how are you. pls modify the request and update. modify request cant be done and failed.

0 Karma
1 Solution

dineshraj9
Builder

You can use rex to update the existing field or create new field -
Example :

| makeresults | eval message="hello how are you. pls modify the request and update. modify request cant be done and failed." | rex field=message "(?<message>modify.+)"

Usage : <your search> | rex field=message "(?<modified_message>modify.+)"

View solution in original post

dineshraj9
Builder

You can use rex to update the existing field or create new field -
Example :

| makeresults | eval message="hello how are you. pls modify the request and update. modify request cant be done and failed." | rex field=message "(?<message>modify.+)"

Usage : <your search> | rex field=message "(?<modified_message>modify.+)"

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...