<?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 Re: Create a stacked bar chart based on transactions in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-a-stacked-bar-chart-based-on-transactions/m-p/196260#M56590</link>
    <description>&lt;P&gt;So... you want each block to be the same length, regardless of duration?&lt;/P&gt;

&lt;P&gt;If so, add an &lt;CODE&gt;eval duration = 1&lt;/CODE&gt; between the &lt;CODE&gt;transaction&lt;/CODE&gt; and the &lt;CODE&gt;timechart&lt;/CODE&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jul 2015 20:18:52 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2015-07-07T20:18:52Z</dc:date>
    <item>
      <title>Create a stacked bar chart based on transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-stacked-bar-chart-based-on-transactions/m-p/196256#M56586</link>
      <description>&lt;P&gt;I have transactions with a start time and end time. I have created a search to get the 10 jobs with the largest durations for each day of the  week over the last seven days. I want to create a stacked bar chart that will display the day on the vertical access with the 10 jobs with the largest average duration stacked on top of each other. The horizontal axis needs to be the duration. Here is my search. Any help is much appreciated!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ko_autosys sourcetype=autosys_applog_scheduler_events host="usatlb98" OR host="usatlb91" System="SAP FILO" JOB_NAME="*" | transaction JOB_NAME startswith="START*" unifyends=true |convert timeformat="%b %d, %Y %I:%M:%S %P" ctime(_time) AS "Start Time" |top 10 avg(duration), JOB_NAME by date_wday
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jul 2015 15:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-stacked-bar-chart-based-on-transactions/m-p/196256#M56586</guid>
      <dc:creator>zd00191</dc:creator>
      <dc:date>2015-07-07T15:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create a stacked bar chart based on transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-stacked-bar-chart-based-on-transactions/m-p/196257#M56587</link>
      <description>&lt;P&gt;There should be a total of seventy bars on the chart. 10 stacked based on duration per day&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 15:33:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-stacked-bar-chart-based-on-transactions/m-p/196257#M56587</guid>
      <dc:creator>zd00191</dc:creator>
      <dc:date>2015-07-07T15:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create a stacked bar chart based on transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-stacked-bar-chart-based-on-transactions/m-p/196258#M56588</link>
      <description>&lt;P&gt;Something along these lines:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...  | transaction JOB_NAME startswith="START*" unifyends=true | timechart limit=10 span=1d useother=f avg(duration) by JOB_NAME
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Based on your description it sounds as if you'll want to display this as a stacked bar chart, making the horizontal X-axis display the duration.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 17:40:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-stacked-bar-chart-based-on-transactions/m-p/196258#M56588</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-07-07T17:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create a stacked bar chart based on transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-stacked-bar-chart-based-on-transactions/m-p/196259#M56589</link>
      <description>&lt;P&gt;I would like to have it where each day has ten stacked blocks. In other words, I want the ten jobs with the longest average duration over the last seven days &lt;/P&gt;

&lt;P&gt;When I use the above, I get the ten jobs with the longest average duration over the last 7 days with each block being how long that job run took. Do you get what I am saying? Thanks by the way. &lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 19:12:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-stacked-bar-chart-based-on-transactions/m-p/196259#M56589</guid>
      <dc:creator>zd00191</dc:creator>
      <dc:date>2015-07-07T19:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create a stacked bar chart based on transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-stacked-bar-chart-based-on-transactions/m-p/196260#M56590</link>
      <description>&lt;P&gt;So... you want each block to be the same length, regardless of duration?&lt;/P&gt;

&lt;P&gt;If so, add an &lt;CODE&gt;eval duration = 1&lt;/CODE&gt; between the &lt;CODE&gt;transaction&lt;/CODE&gt; and the &lt;CODE&gt;timechart&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 20:18:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-stacked-bar-chart-based-on-transactions/m-p/196260#M56590</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-07-07T20:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create a stacked bar chart based on transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-a-stacked-bar-chart-based-on-transactions/m-p/196261#M56591</link>
      <description>&lt;P&gt;Each transaction is a job run.&lt;/P&gt;

&lt;P&gt;In the last seven days,&lt;/P&gt;

&lt;P&gt;For each day, show me the top ten jobs with the longest average duration &lt;/P&gt;

&lt;P&gt;In other words, calculate the top ten jobs withe longest average duration for each day and then display those ten jobs stacked on top of one another for each day based on the duration length.&lt;/P&gt;

&lt;P&gt;The duration length should be on the horizontal axis, and each day ofthe week should be on the vertical axis with 10 sections per bar, one bar per day. Each section of the bar represents one of the top ten jobs with the longest average duration for that day&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 21:30:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-a-stacked-bar-chart-based-on-transactions/m-p/196261#M56591</guid>
      <dc:creator>zd00191</dc:creator>
      <dc:date>2015-07-07T21:30:21Z</dc:date>
    </item>
  </channel>
</rss>

