Splunk Search

How to draw a complex column chart


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


Tags (1)
0 Karma


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.



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
Take the 2021 Splunk Career Survey

Help us learn about how Splunk has
impacted your career by taking the 2021 Splunk Career Survey.

Earn $50 in Amazon cash!