Splunk Search

Convert Craig%40gmail.com to craig@gmail.com

craigpbrown
New Member

Hi,

Probably a simple answer, but how do I convert %40 to @. For example craig%40gmail.com to craig@gmail.com

Thanks in advance,
Craig

Tags (1)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

For the specific case, try the replace command

... | replace "%40" with "@" in foo | ...

or the replace function

... | eval foo = replace(foo, "%40", "@") | ...

For the more general case of any URL-encoded character, try the urldecode function

... | foo = urldecode(bar) | ...
---
If this reply helps you, Karma would be appreciated.

somesoni2
Revered Legend

+1 for urldecode function use.

0 Karma
Get Updates on the Splunk Community!

See just what you’ve been missing | Observability tracks at Splunk University

Looking to sharpen your observability skills so you can better understand how to collect and analyze data from ...

Weezer at .conf25? Say it ain’t so!

Hello Splunkers, The countdown to .conf25 is on-and we've just turned up the volume! We're thrilled to ...

How SC4S Makes Suricata Logs Ingestion Simple

Network security monitoring has become increasingly critical for organizations of all sizes. Splunk has ...