Refine your search:

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.

asked 27 Oct '10, 01:26

chixor's gravatar image

chixor
31
accept rate: 0%

edited 31 May '11, 12:45

jlaw's gravatar image

jlaw ♦
20113


One Answer:

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

... | top q2
link

answered 27 Oct '10, 01:58

Stephen%20Sorkin's gravatar image

Stephen Sorkin ♦
8.1k47
accept rate: 52%

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

(27 Oct '10, 02:10) chixor
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×246
×194
×166
×37
×17

Asked: 27 Oct '10, 01:26

Seen: 648 times

Last updated: 31 May '11, 12:45

Copyright © 2005-2012 Splunk, Inc. All rights reserved.