Splunk Search

Replace command -Ignore case

shugup2923
Path Finder

How can we use case insensitive value in Replace command-
| replace "name" with "entity" in description

will it replace name , NAME, Name, NaMe etc with entity ????

If not how can we ignore case with replace command.

0 Karma
1 Solution

renjith_nair
SplunkTrust
SplunkTrust

@shugup2923

Try

| eval description=replace(description,"(?i)name","entity")
Happy Splunking!

View solution in original post

renjith_nair
SplunkTrust
SplunkTrust

@shugup2923

Try

| eval description=replace(description,"(?i)name","entity")
Happy Splunking!
Get Updates on the Splunk Community!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...