Splunk Search

Word Count in a Url

tomlimbu
New Member

Newbie Here ! How can I get a word count in a url? I am trying to count the number of occurrence of a word "organizations" in a url.

Tags (1)
0 Karma

sandeepmakkena
Contributor
YourBasicSearch
| eval url_word = split(("URL_field_Here"),"/")
| search url_word = organizations
| stats count

Replace the URL_firld_Here with your URL field name.

Hope this helps, Thanks!

0 Karma

sandeepmakkena
Contributor

If this is helpful, accept the answer, please.

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

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

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...