Splunk Search

Regex help!!!

splunker9999
Path Finder

Hi,

Can someone please help with formatting IP address or FQDN,we nee to remove [ ] in the below.

These below details are available in field name "Indicator_Value"

221[.]138[.]128[.]116
www[.]cderlearn[.]com

Thanks

Tags (1)
0 Karma

gokadroid
Motivator

Try this using mode=sed

your query to return events
| rex field=Indicator_Value mode=sed "s/\[//g
s/\]//g"

Please ensure to keep the string "s/\[//g and s/\]//g" split over two lines exactly how it appears in the query. Take care of the " (double quotes) to be same as it appears in the query.

0 Karma

twinspop
Influencer
... | eval newfield=replace(Indicator_Value,"[\[\]]","")
Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...