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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...