Splunk Search

URLDECODE

erlindemberg
Explorer

I would like to know how can I use the urldecorder command for all URLs in the reqHdr.referer field (Akamai)

index=akamai
| eval newfield = urldecode("https%3a%2f%2fwww....................%2f")
| table newfield

0 Karma
1 Solution

jkat54
SplunkTrust
SplunkTrust
 ... | eval newField=urldecode('reqHdr.referer') | table newField

View solution in original post

jkat54
SplunkTrust
SplunkTrust
 ... | eval newField=urldecode('reqHdr.referer') | table newField

erlindemberg
Explorer

I've tried and the field doesn't show the URLs, just the name reqHdr.referer

0 Karma

jkat54
SplunkTrust
SplunkTrust

Tried it with single quotes around it?

0 Karma

snallam123
Path Finder

index=c4_akamai
| eval newfield = urldecode('reqHdr.referer')
| table newfield

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Don't use double quotes "around the field name. Try without quotes. If that doesn't work, use single quotes '.

---
If this reply helps you, Karma would be appreciated.

erlindemberg
Explorer

Thanks for the help, with single quotes it worked.

0 Karma

erlindemberg
Explorer

Using this query:

index=c4_akamai
| eval newfield = urldecode("reqHdr.referer")
| table newfield

o resultado é:

newfield
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer

Eu usando apenas uma URL de referencia dentro do campo reqHdr.referer o resultado é:

index=c4_akamai
| eval newfield = urldecode("https%3a%2f%2fwww.*******.com.br%2f")
| table newfield

newfield
https://www.**********.com.br/
https://www.**********.com.br/
https://www.**********.com.br/
https://www.**********.com.br/
https://www.**********.com.br/
https://www.**********.com.br/
https://www.**********.com.br/

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What results do you get and what results do you expect?

---
If this reply helps you, Karma would be appreciated.
0 Karma

erlindemberg
Explorer

Using this query:

index=c4_akamai
| eval newfield = urldecode("reqHdr.referer")
| table newfield

o resultado é:

newfield
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer
reqHdr.referer

Eu usando apenas uma URL de referencia dentro do campo reqHdr.referer o resultado é:

index=c4_akamai
| eval newfield = urldecode("https%3a%2f%2fwww.*******.com.br%2f")
| table newfield

newfield
https://www.**********.com.br/
https://www.**********.com.br/
https://www.**********.com.br/
https://www.**********.com.br/
https://www.**********.com.br/
https://www.**********.com.br/
https://www.**********.com.br/

0 Karma

erlindemberg
Explorer

In this case, if I specify a single URL in this field it will bring me the result of the decoded URL.
However, the field has thousands of other URLs.

The result I hope is that all URLs are shown decrypted.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Can you share some sample data?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

Splunk Enterprise Security 8.x: The Essential Upgrade for Threat Detection, ...

Watch On Demand the Tech Talk on November 6 at 11AM PT, and empower your SOC to reach new heights! Duration: ...

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...