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!

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

[Puzzles] Solve, Learn, Repeat: Nested loops in Event Conversion

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Your Guide to Splunk Digital Experience Monitoring

A flawless digital experience isn't just an advantage, it's key to customer loyalty and business success. But ...