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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...