<?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: Line Chart Time Between Two Searched Fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Line-Chart-Time-Between-Two-Searched-Fields/m-p/165351#M46976</link>
    <description>&lt;P&gt;Thank you very much for the response. I'm going to dig into both suggestions!&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2015 11:27:12 GMT</pubDate>
    <dc:creator>chrisboy68</dc:creator>
    <dc:date>2015-05-14T11:27:12Z</dc:date>
    <item>
      <title>Line Chart Time Between Two Searched Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Line-Chart-Time-Between-Two-Searched-Fields/m-p/165348#M46973</link>
      <description>&lt;P&gt;Hi, This should be easy, but I'm getting confused making it work.  I have the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Time: 01:00 PM Event: STARTED
Time: 01:35 PM Event: STOPPED
TIme: 04:00 PM Event: STARTED
Time: 04:30 PM Event: STOPPED
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Given I have two fields, Time and Event. I want a solid line chart showing the range of time an Event STARTED and an Event STOPPED.  &lt;/P&gt;

&lt;P&gt;Any pointers?&lt;/P&gt;

&lt;P&gt;Thank you,&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 15:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Line-Chart-Time-Between-Two-Searched-Fields/m-p/165348#M46973</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2015-04-24T15:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart Time Between Two Searched Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Line-Chart-Time-Between-Two-Searched-Fields/m-p/165349#M46974</link>
      <description>&lt;P&gt;It's actually not that easy for Splunk. A timechart has a continuous timeline across the x-axis. But what Splunk sees with these 4 events is simply 4 points in time, with nothing in between. So you could do a chart, but how would Splunk know to fill in at 1:01 but not at 1:40? Also, you &lt;EM&gt;really&lt;/EM&gt; need an event identifier - what if events overlap?&lt;/P&gt;

&lt;P&gt;So try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| eval TT=_time 
| transaction startswith="STARTED" endswith="STOPPED"
| streamstats count AS ID
| table _time TT ID
| mvexpand TT
| eval _time=TT
| timechart  values(ID) by ID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will need to use a line chart, and in the options, choose to "connect missing values". This may not work exactly, but hopefully it will get close to what you want.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 16:37:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Line-Chart-Time-Between-Two-Searched-Fields/m-p/165349#M46974</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-04-24T16:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart Time Between Two Searched Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Line-Chart-Time-Between-Two-Searched-Fields/m-p/165350#M46975</link>
      <description>&lt;P&gt;Try to use transaction something like this ...&lt;BR /&gt;
...| eval newfield="newfield"| transaction newfield startswith="STARTED" endswith="stoped" | table duration&lt;BR /&gt;
it will give you autogenerated duration field (range between stopped and started)&lt;/P&gt;

&lt;P&gt;oh, I was late with answer publication for 1 minute&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 16:37:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Line-Chart-Time-Between-Two-Searched-Fields/m-p/165350#M46975</guid>
      <dc:creator>andrey2007</dc:creator>
      <dc:date>2015-04-24T16:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart Time Between Two Searched Fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Line-Chart-Time-Between-Two-Searched-Fields/m-p/165351#M46976</link>
      <description>&lt;P&gt;Thank you very much for the response. I'm going to dig into both suggestions!&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 11:27:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Line-Chart-Time-Between-Two-Searched-Fields/m-p/165351#M46976</guid>
      <dc:creator>chrisboy68</dc:creator>
      <dc:date>2015-05-14T11:27:12Z</dc:date>
    </item>
  </channel>
</rss>

