Splunk Search

Count of Value Pairs in URI Query String

chca
Path Finder

Assuming my URL_Query field contains the following data:


cdata=153&orgid=0012
orgid=3924&cdata=129
cdata=153&orgid=3924

How can I display a table containing a unique count of value pairs cdata?


cdata count
153 2
129 1

Tags (1)
0 Karma

gkanapathy
Splunk Employee
Splunk Employee
... | extract auto=true | stats count by cdata

Actually, unless you've done something to turn it off, the fields will usually have been auto extracted by Splunk without you having to call the extract command.

0 Karma

chca
Path Finder

I also found this answer:
http://splunk-base.splunk.com/answers/8404/chart-over-query-string

However, I don't have the value pairs pre-parsed. I need to do it during the search.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...