<?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: Why is my timechart search WHERE duration &amp;gt; 8 not returning any data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159118#M44877</link>
    <description>&lt;P&gt;Okay, how about a different approach? This is un-tested, but why not try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=uv GUID="*" NOT "ERROR" | stats earliest(_time) AS earliest_time latest(_time) AS latest_time by GUID, _time | eval Duration=latest_time-earliest_time | where Duration &amp;gt; 8 | stats count by GUID, Duration, _time TOP GUID | fields - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 24 Feb 2015 20:58:30 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2015-02-24T20:58:30Z</dc:date>
    <item>
      <title>Why is my timechart search WHERE duration &gt; 8 not returning any data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159111#M44870</link>
      <description>&lt;P&gt;I have a lot of SOAP req/resp pairs and I was able to match them up and find the time between them (duration). I then input this searchand was returned back all of the unique identifiers (GUIDs) with a duration longer than 8 seconds. Now I want to chart this using Timechart, every time I try to do this, nothing will come up, even though a list of 100+ GUID's was present when I didn't have the Timechart command in there.&lt;/P&gt;

&lt;P&gt;My original search which returned back rows of expected data in the 'Statistics' tab:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=uv GUID="*" NOT "ERROR" | transaction GUID startswith="CalculateTaxRequest" endswith="CalculatetaxResponse"| TOP GUID by duration | WHERE duration&amp;gt;8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My unsuccessful Timechart search which returns back NO data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=uv GUID="*" NOT "ERROR" | transaction GUID startswith="CalculateTaxRequest" endswith="CalculatetaxResponse"| TOP GUID by duration | timechart list(duration) | WHERE duration&amp;gt;8
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Feb 2015 19:06:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159111#M44870</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-02-24T19:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timechart search WHERE duration &gt; 8 not returning any data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159112#M44871</link>
      <description>&lt;P&gt;Hi skoelpin, have you tried to use the &lt;CODE&gt;where&lt;/CODE&gt; clause directly with the &lt;CODE&gt;timechart&lt;/CODE&gt; command like written in the docs &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Timechart#Using_where_clauses"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Timechart#Using_where_clauses&lt;/A&gt; ? Also, be aware that using the &lt;CODE&gt;list()&lt;/CODE&gt; function creates a multi value field, whereas in the first search you're using single value fields for duration.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2015 19:27:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159112#M44871</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-02-24T19:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timechart search WHERE duration &gt; 8 not returning any data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159113#M44872</link>
      <description>&lt;P&gt;Thanks for the response! I took out there where clause and still have the same problem. My original search (the first one listed in my question) will return back exactly what I'm looking for. But when I add timechart, nothing will appear so I'm not sure if it has anything to do with WHERE. Any other suggestions? &lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2015 19:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159113#M44872</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-02-24T19:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timechart search WHERE duration &gt; 8 not returning any data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159114#M44873</link>
      <description>&lt;P&gt;Also I think you may be correct with the list() function.. maybe I should be using a different function, any suggestions? &lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2015 19:32:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159114#M44873</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-02-24T19:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timechart search WHERE duration &gt; 8 not returning any data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159115#M44874</link>
      <description>&lt;P&gt;what is your intention using &lt;CODE&gt;list&lt;/CODE&gt; maybe it helps if you tell us what you expect as result&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2015 19:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159115#M44874</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-02-24T19:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timechart search WHERE duration &gt; 8 not returning any data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159116#M44875</link>
      <description>&lt;P&gt;The unique identifier (GUID) is tied to BOTH the request and response. So when a SOAP request is sent, it has a timestamp and on the response it also has a timestamp. The Transaction command groups these together so I have an output in the 'Statistics' tab which shows the GUID and total duration (time for each SOAP request to respond). &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Duration                GUID

9.3387                  dsf234-sdf-234-dsf-344
11.234                  jhhbj-767-sdfds-sdfds
10.333                  dfds3-h33-hbh3-23jjkk
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I currently have this output with my first query, but now I want to make a timechart visually showing the duration. I've tried using count(duration), list(duration), and values(duration) with no luck&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2015 19:56:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159116#M44875</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-02-24T19:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timechart search WHERE duration &gt; 8 not returning any data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159117#M44876</link>
      <description>&lt;P&gt;Have you tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=uv GUID="*" NOT "ERROR" | transaction GUID startswith="CalculateTaxRequest" endswith="CalculatetaxResponse"| table GUID  duration | WHERE duration &amp;gt; 8 | sort duration desc
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, switch the tab to visualization and select "column" or "line"&lt;/P&gt;

&lt;P&gt;(I know. Kind of tacky.)&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2015 20:49:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159117#M44876</guid>
      <dc:creator>sk314</dc:creator>
      <dc:date>2015-02-24T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timechart search WHERE duration &gt; 8 not returning any data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159118#M44877</link>
      <description>&lt;P&gt;Okay, how about a different approach? This is un-tested, but why not try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=uv GUID="*" NOT "ERROR" | stats earliest(_time) AS earliest_time latest(_time) AS latest_time by GUID, _time | eval Duration=latest_time-earliest_time | where Duration &amp;gt; 8 | stats count by GUID, Duration, _time TOP GUID | fields - count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Feb 2015 20:58:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159118#M44877</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-02-24T20:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timechart search WHERE duration &gt; 8 not returning any data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159119#M44878</link>
      <description>&lt;P&gt;I see what you did there but unfortunately did not work, I was finally able to get it and will post my solution below. Thanks for your help and time! &lt;BR /&gt;
I appreciate it &lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2015 21:02:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159119#M44878</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-02-24T21:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timechart search WHERE duration &gt; 8 not returning any data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159120#M44879</link>
      <description>&lt;P&gt;This kind of worked but not exactly what I was looking for. Thanks for taking the time to help though! &lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2015 21:03:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159120#M44879</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-02-24T21:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my timechart search WHERE duration &gt; 8 not returning any data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159121#M44880</link>
      <description>&lt;P&gt;I was finally able to get it with this query. i was unaware that Splunk has a built in Visualization editor which helped a lot &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=uv GUID1="*" NOT "ERROR"  | transaction GUID1 startswith="CalculateTaxRequest" endswith="CalculatetaxResponse" | where duration&amp;gt;8| timechart count by duration
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 Feb 2015 21:05:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-timechart-search-WHERE-duration-gt-8-not-returning-any/m-p/159121#M44880</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2015-02-24T21:05:28Z</dc:date>
    </item>
  </channel>
</rss>

