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
Legend

@shugup2923

Try

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

View solution in original post

renjith_nair
Legend

@shugup2923

Try

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

Introducing the 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...