<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic charting customization in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/charting-customization/m-p/56655#M13880</link>
    <description>&lt;P&gt;In our search the values of transaction duration field comes in Milliseconds those could be like 41,42,50,300,500 and goes upto to 10500,12000&lt;/P&gt;

&lt;P&gt;I need to create the chart by allocating bins_array like in excel&lt;/P&gt;

&lt;P&gt;0-50 --I want show transactions took only between 0-50 secs&lt;BR /&gt;
50-100--I want show transactions took only between 50-100 secs&lt;BR /&gt;
until to all 10,000 ,20,000&lt;/P&gt;

&lt;P&gt;Here is search&lt;/P&gt;

&lt;P&gt;index="xyz" | chart count by TRANSACTION_DURATION span=500&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;

&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;TRANSACTION_DURATION&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;searchName&amp;gt;TRANSACTION DURATION&amp;lt;/searchName&amp;gt;
      &amp;lt;title&amp;gt;TRANSACTION DURATION&amp;lt;/title&amp;gt;
      &amp;lt;option name="charting.axisTitleX.text"&amp;gt;DURATION(MS)&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.axisTitleY.text"&amp;gt;TRANSACTIONS&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;bar&amp;lt;/option&amp;gt;
      &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;can some one give suggestions how can i create bar chart to show my results in the span 0-50?&lt;/P&gt;</description>
    <pubDate>Mon, 21 May 2012 15:24:44 GMT</pubDate>
    <dc:creator>splunkatl</dc:creator>
    <dc:date>2012-05-21T15:24:44Z</dc:date>
    <item>
      <title>charting customization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/charting-customization/m-p/56655#M13880</link>
      <description>&lt;P&gt;In our search the values of transaction duration field comes in Milliseconds those could be like 41,42,50,300,500 and goes upto to 10500,12000&lt;/P&gt;

&lt;P&gt;I need to create the chart by allocating bins_array like in excel&lt;/P&gt;

&lt;P&gt;0-50 --I want show transactions took only between 0-50 secs&lt;BR /&gt;
50-100--I want show transactions took only between 50-100 secs&lt;BR /&gt;
until to all 10,000 ,20,000&lt;/P&gt;

&lt;P&gt;Here is search&lt;/P&gt;

&lt;P&gt;index="xyz" | chart count by TRANSACTION_DURATION span=500&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;

&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;TRANSACTION_DURATION&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;searchName&amp;gt;TRANSACTION DURATION&amp;lt;/searchName&amp;gt;
      &amp;lt;title&amp;gt;TRANSACTION DURATION&amp;lt;/title&amp;gt;
      &amp;lt;option name="charting.axisTitleX.text"&amp;gt;DURATION(MS)&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.axisTitleY.text"&amp;gt;TRANSACTIONS&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;bar&amp;lt;/option&amp;gt;
      &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;can some one give suggestions how can i create bar chart to show my results in the span 0-50?&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2012 15:24:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/charting-customization/m-p/56655#M13880</guid>
      <dc:creator>splunkatl</dc:creator>
      <dc:date>2012-05-21T15:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: charting customization</title>
      <link>https://community.splunk.com/t5/Splunk-Search/charting-customization/m-p/56656#M13881</link>
      <description>&lt;P&gt;May I suggest that you re-scale the field, since you are looking for results in seconds?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="xyz" | 
eval duration = round(TRANSACTION_DURATION/1000,0) | 
chart count by duration span=50
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You would also need to update the axisTitleX.text in the XML to DURATION(SEC)&lt;/P&gt;

&lt;P&gt;BTW, if you want to show it in MS, then I think your span needs to be 50000 not 500.&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2012 17:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/charting-customization/m-p/56656#M13881</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-05-21T17:56:21Z</dc:date>
    </item>
  </channel>
</rss>

