I have a video player that logs the following:
Video Starts - When a user clicks play and the first frame of the video is delivered
Video Start Errors - When a user clicks play and the first frame of the video is not delivered (due to an error)
Playback Errors - When a user clicks play, and the first frame of the video is delivered, and an error is thrown any time after
Please note the following two events are NOT logged: user closes the video, or the video naturally completes playback.
I've successfully created a query that shows the total user "attempts" to play a video (presented on a Splunk dashboard), and graphs the results in a pie chart split into two chunks:
A. Successful Video Playback Sessions
B. Errored Out Video Sessions
I have the above accomplished thus far, but I also need a the table of the results (same query, different panel and panel visualization type on the dashboard) to display the % each of the above A and B) represent vs. the total attempts.
I'm calculating A and B via the following query:
sourcetype=videoplaybacklog
| stats count(eval(event="VIDEO_START")) as VS, count(eval(event="PLAYBACK_ERROR")) as PE, count(eval(event="VIDEO_START_ERROR")) as VSE
| eval A=VS-PE
| eval B=VSE+PE
| table A B
| transpose
| rename column as Type
| rename "row 1" as "count"
This query gives me the pie chart I need in the first dashboard chart panel, but not the % in table that I need in the second dashboard table panel.
I've tried the TOP command (instead of table) and adding in the logic to show the % A and B represent of the total attempts, but the top command returns the results in a single row, and doesn't graph nicely in the pie chart.
Any suggestions?
... View more