Splunk Search

How to draw a complex column chart

barryv
Explorer

Hi, Splunk noob question:

I defined and saved 3 searches: a. Users visiting my page. b. Users attempting to do action X on that page. c. Users completing action X on that page.

I would like to see an overlay bar chart (columns) that show in each column (a time period) three colors: total visitors (a), out of which visitors attempting the action (b) out of which the successful attempts (c).

How can I define such a chart/report? (a step by step would really help).

Thanks!

Tags (1)
0 Karma

sideview
SplunkTrust
SplunkTrust

Since the second and third categories add up to the third category, you probably dont want a stacked column chart.

Im also going to make the (quite possibly wrong) assumption that you want time to be the X-axis of such a chart.

1) step 1 -- define the search you need.
You'll need to ultimately get a search that gives you results where the columns are time | # total visitors | # attempting b | # completing b

1a) get a search that has all users doing everything.

1b) if your rows do not each contain all info to determine whether the action was completed or merely initiated, you may have to use stats or transaction to get yourself to that point. (where all rows have complete information)

1c) eval yourself a field called like 'type', just on the rows that match 'action=b'. You'll want to eval one version if the rows have terms indicating it was completed, and other rows where it was not completed (see http://answers.splunk.com/questions/7144/graphing-multiple-data-sources-in-one-chart/7162#7162 for a similar solution)

1d) <your search> | timechart count by type

2) that's it really. Once you get the search language giving you that table it's really just a non-stacked column chart that you probably want. Or if you modify 1c slightly, you can make it so you have 1 category for 'attempted b', one for 'completed b', and one other for 'everyone else'. At that point they would sum up to the total so you could use a stacked column chart and it would make sense.

hth

ftk
Motivator

Sounds like you want to use is a stacked column chart. Here are instructions on defining reports and charts using the report builder: http://www.splunk.com/base/Documentation/latest/User/DefineReportsAndGenerateCharts

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...