Refine your search:

1
1

Here is my code:

index="main" sourcetype="AS-CDR"
|where Called_Number="9999" OR Calling_Number="2155551060" OR Called_Number="2155551060" OR Calling_Number="12155551060" OR Called_Number="+12155551060" OR Calling_Number="+12155551060"
|eval Call_Duration = strptime(Release_Time, "%Y%m%d%H%M%S.%q") - strptime(Start_Time, "%Y%m%d%H%M%S.%q")
|eval TimeToAnswer= strptime(Answer_Time, "%Y%m%d%H%M%S.%q") - strptime(Start_Time, "%Y%m%d%H%M%S.%q")
|eval NormTermTest=if((Termination_Cause=="016" OR Termination_Cause=="017"),1,0)
|eval CallDurTest=if((Call_Duration>15),1,0)
|eval TimeToAnswerTest=if((TimeToAnswer<30),1,0)
|eval NotRedUnav=if(Redirecting_Reason=="unavailable",0,1)
|eval CallScore=((NormTermTest+NotRedUnav+CallDurTest+TimeToAnswerTest)/4)*100
|head 5
|table _time CallScore 

What I need to do is convert the two resulting columns into a scatter plot, showing the call score discretely over time. Each individual phone call in the system gets a score, but since we don't know when a particular user will call it doesn't really make sense to use a line chart or a bin (there is no set interval). The management is fiercely against using things like bins because they mask data in the dashboard. Any help would really be appreciated.

Thus far pretty much any other type of chart works except the scatter. Basically i'm looking to see time be the x axis, and the call score at the given time be along the y axis.

asked 26 Jan '11, 17:38

msarro's gravatar image

msarro
5673437
accept rate: 75%

edited 04 May '11, 14:35

jlaw's gravatar image

jlaw ♦
74148


2 Answers:

If scatter is not working, you could try a workaround: set the lines to transparent and show the markers!

  1. save a line-chart report out of your search
  2. create a new dashboard and put the report into it
  3. edit the dashboard xml
  4. then under the <chart> element (simplified xml mode) ...

Insert the following (charting reference in this guide):

<option name="charting.chart.showMarkers">true</option>
<option name="charting.chart.markerSize">3</option>           
<option name="charting.chart.lineStyle.alpha">0</option>

If this is now working, try to go to advanced xml mode (instructions here). Then under the

<module name="HiddenChartFormatter">
<param name="charting.chart">line</param>

put (beware the tags names are different!):

<param name="charting.chart.showMarkers">true</param>
<param name="charting.chart.markerSize">3</param>             
<param name="charting.chart.lineStyle.alpha">0</param>

Save the dashboard, click on the "Splunk" image top-left to reload them, select your dashboard/view from the menu.

Here's a sample result

test

link

answered 24 Feb '11, 10:43

Paolo%20Prigione's gravatar image

Paolo Prigione
2.0k2317
accept rate: 38%

Time cannot be on the x axis, unfortunately. It appears the largest value for X is about 100, and an epoch starts at a number much larger than that.

If you could convert time to some value on the range of 0..100, that could be charted.

It's a serious drawback to the scatterplot; the line chart does 60% of what we want, but connecting the points is often the wrong thing to do. Plotting points against a time axis is what we really need.

link

answered 26 Jan '11, 19:25

tedder's gravatar image

tedder
269119
accept rate: 25%

Sadly that's not possible as we're relying on time to be used to correlate to other sources. I suppose a line graph without the lines connected would really be what we wanted then but I suppose that's not possible. Oi.

(26 Jan '11, 19:42) msarro
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:

×282
×275

Asked: 26 Jan '11, 17:38

Seen: 1,240 times

Last updated: 04 May '11, 14:35

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