<?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: Charting Transactions in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Charting-Transactions/m-p/102650#M26537</link>
    <description>&lt;P&gt;Ok, so this is a long one, and I'm about to leave work. Drop this into a search, change the visualizations to "Stacked Columns" and let me know how it goes. I'd recommend doing this over small frame and going from there. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;YOUR_SEARCH_FOR_EVENTS |transaction type startswith=active endswith=terminated maxspan=10s |streamstats count as evt_id | eval earliest=min(_time) | eval latest=earliest+duration| convert ctime(earliest) as et timeformat="%m/%d/%Y:%H:%M:%S" | convert ctime(latest) as lt timeformat="%m/%d/%Y:%H:%M:%S" | map search="|gentimes start=$et$ end=$lt$ increment=5s | eval evt_id=$evt_id$ | eval type=$type$ | eval Present=1 |eval _time = starttime |fields - end* start* "|fields _time Present type evt_id |bin _time span=5s | timechart span=30s avg(Present) by type&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2013 19:37:10 GMT</pubDate>
    <dc:creator>alacercogitatus</dc:creator>
    <dc:date>2013-10-17T19:37:10Z</dc:date>
    <item>
      <title>Charting Transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-Transactions/m-p/102649#M26536</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am trying to build a graphical representation of a set of transactions by type. Ideally I am looking for a Gantt representation.&lt;BR /&gt;
Ex Log:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;2013-289-19:00:00 type=1 active&lt;BR /&gt;
2013-289-19:01:00 type=1 terminated&lt;BR /&gt;
2013-289-19:20:00 type=1 active&lt;BR /&gt;
2013-289-19:21:00 type=2 active&lt;BR /&gt;
2013-289-19:23:00 type=2 terminated&lt;BR /&gt;
2013-289-19:30:00 type=1 terminated&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Search So far:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;…|transaction type | eval prestart=_time-1 | eval start=_time | eval stop=_time+duration | eval poststop=stop+1 | … build xyseries with active time = 1 in y series??? … | timechart ??? by type&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Being that there is no Gantt chart I was just planning on building a xyseries and plotting a 1 when the event is occurring and a 0 when it isn’t. I intended on formatting the stacked area chart with missing values set to connect. Unfortunately I am too new to the search language to get things to work like I want them to. Any ideas on how to proceed?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:59:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-Transactions/m-p/102649#M26536</guid>
      <dc:creator>brianjbrady</dc:creator>
      <dc:date>2020-09-28T14:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: Charting Transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-Transactions/m-p/102650#M26537</link>
      <description>&lt;P&gt;Ok, so this is a long one, and I'm about to leave work. Drop this into a search, change the visualizations to "Stacked Columns" and let me know how it goes. I'd recommend doing this over small frame and going from there. &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;YOUR_SEARCH_FOR_EVENTS |transaction type startswith=active endswith=terminated maxspan=10s |streamstats count as evt_id | eval earliest=min(_time) | eval latest=earliest+duration| convert ctime(earliest) as et timeformat="%m/%d/%Y:%H:%M:%S" | convert ctime(latest) as lt timeformat="%m/%d/%Y:%H:%M:%S" | map search="|gentimes start=$et$ end=$lt$ increment=5s | eval evt_id=$evt_id$ | eval type=$type$ | eval Present=1 |eval _time = starttime |fields - end* start* "|fields _time Present type evt_id |bin _time span=5s | timechart span=30s avg(Present) by type&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2013 19:37:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-Transactions/m-p/102650#M26537</guid>
      <dc:creator>alacercogitatus</dc:creator>
      <dc:date>2013-10-17T19:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Charting Transactions</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-Transactions/m-p/102651#M26538</link>
      <description>&lt;P&gt;Try the &lt;A href="https://splunkbase.splunk.com/app/1741/"&gt;gantt visualization app&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2017 14:12:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-Transactions/m-p/102651#M26538</guid>
      <dc:creator>yoho</dc:creator>
      <dc:date>2017-05-13T14:12:09Z</dc:date>
    </item>
  </channel>
</rss>

