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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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