Splunk Search

chart over query string

chixor
New Member

Hi guys,

I have an apache log. I want to be able to chart the count of occurances of a particular query string in the uri_path.

eg.

/path/file?q1=v1&q2=v2&q3=v3
/path/file?q1=v3&q2=v1&q3=v2
/path/file?q1=v2&q2=v3&q3=v1

I want to get:

uri_path   count
q2=v1      63
q2=v2      26
q2=v3      82

I've worked out how to regex on the query string, but I can't work out how to chart count over specific q2 values of uri_path and ignore changes in q1 and q3.

0 Karma
1 Solution

Stephen_Sorkin
Splunk Employee
Splunk Employee

I'd assume that you already have the q2 field extracted automatically. You can verify that it is and search:

... | top q2

View solution in original post

0 Karma

Stephen_Sorkin
Splunk Employee
Splunk Employee

I'd assume that you already have the q2 field extracted automatically. You can verify that it is and search:

... | top q2
0 Karma

chixor
New Member

oh, hahaha I was over thinking it. Thanks, Stephen.

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, ...