<?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: How to search with a fixed time span timechart everyday? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434605#M124018</link>
    <description>&lt;P&gt;Shoot man, you're totally right. My bad.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Aug 2018 02:32:31 GMT</pubDate>
    <dc:creator>twinspop</dc:creator>
    <dc:date>2018-08-30T02:32:31Z</dc:date>
    <item>
      <title>How to search with a fixed time span timechart everyday?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434599#M124012</link>
      <description>&lt;P&gt;I am trying to find my average response time of everyday events (not avg of all the events of that day , but the events from 10AM to 1PM) only for last 7 days.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="super:access" host=xa20hlf**  | eval headers=split(_raw," ") | eval resp_time=mvindex(headers,10) | eval resptime_time_seconds=resp_time*0.001| timechart span=1d eval(round(avg(resptime_time_seconds),2)) as avgTime
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:05:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434599#M124012</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-08-29T14:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with a fixed time span timechart everyday?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434600#M124013</link>
      <description>&lt;P&gt;Try this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="super:access" host=xa20hlf**  
| eval Hour=strftime(_time,"%H")
| where Hour&amp;gt;=10 AND Hour&amp;lt;13
| eval headers=split(_raw," ") 
| eval resp_time=mvindex(headers,10) 
| eval resptime_time_seconds=resp_time*0.001
| timechart span=1d eval(round(avg(resptime_time_seconds),2)) as avgTim
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:21:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434600#M124013</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-08-29T14:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with a fixed time span timechart everyday?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434601#M124014</link>
      <description>&lt;P&gt;Hi @zacksoft,&lt;/P&gt;

&lt;P&gt;how about this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="super:access" host=xa20hlf** earliest=-7d@d latest=now (date_hour=10 OR date_hour=11 OR date_hour=12 OR date_hour=13) | eval headers=split(_raw," ") | eval resp_time=mvindex(headers,10) | eval resptime_time_seconds=resp_time*0.001| timechart span=1d eval(round(avg(resptime_time_seconds),2)) as avgTime&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:25:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434601#M124014</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2018-08-29T14:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with a fixed time span timechart everyday?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434602#M124015</link>
      <description>&lt;P&gt;I wanna change the latest = now to latest = (a fix time of day/week, that I choose like this wednesday 6pm) . Also can we exclude weekends?&lt;BR /&gt;
When we give span=1d, what exactly is the duration of 1d in clockwise?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:33:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434602#M124015</guid>
      <dc:creator>zacksoft</dc:creator>
      <dc:date>2018-08-29T14:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with a fixed time span timechart everyday?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434603#M124016</link>
      <description>&lt;P&gt;Dal: In my admittedly limited testing, I found it ~ 8% faster to filter on hour after the timechart. Trim the first eval and the first where, and after timechart add: &lt;CODE&gt;| where tonumber(strftime(_time,"%H"))&amp;gt;=10 and tonumber(strftime(_time,"%H"))&amp;lt;13&lt;/CODE&gt;. My test was a simple count on _internal.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:46:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434603#M124016</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2018-08-29T14:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with a fixed time span timechart everyday?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434604#M124017</link>
      <description>&lt;P&gt;@twinspop - you can't filter on hour &lt;EM&gt;after&lt;/EM&gt; the &lt;CODE&gt;timechart&lt;/CODE&gt; aggregates to &lt;CODE&gt;span=1d&lt;/CODE&gt; ... so it would not work unless you change the &lt;CODE&gt;timechart&lt;/CODE&gt; to &lt;CODE&gt;span=1h&lt;/CODE&gt; and then run it again through &lt;CODE&gt;timechart&lt;/CODE&gt; to aggregate it up to the day level... and then you are averaging the averages rather than the actual events.  If you have an idea that you think will work, please go ahead and write it up as an answer.  The more, the merrier!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 02:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434604#M124017</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-08-30T02:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to search with a fixed time span timechart everyday?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434605#M124018</link>
      <description>&lt;P&gt;Shoot man, you're totally right. My bad.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Aug 2018 02:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-with-a-fixed-time-span-timechart-everyday/m-p/434605#M124018</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2018-08-30T02:32:31Z</dc:date>
    </item>
  </channel>
</rss>

