Splunk Search

How to find Web url length

hartfoml
Motivator

I was told i could find command info in url buy finding the url's that are 2.5 times longer than the average length. I think i know how to do the sub search but i don't know how to find the url length. Can anyone help?

Tags (1)
0 Karma
1 Solution

alacercogitatus
SplunkTrust
SplunkTrust

In your search just do: foo_search | eval url_length = len(url) | more_things.

If you wanted to find the avg over a time period you would do:

sourcetype=access_combined | eval url_length = len(url) | stats avg(url_length)

View solution in original post

alacercogitatus
SplunkTrust
SplunkTrust

In your search just do: foo_search | eval url_length = len(url) | more_things.

If you wanted to find the avg over a time period you would do:

sourcetype=access_combined | eval url_length = len(url) | stats avg(url_length)

Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...