<?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 can I refer to the chosen timescale within my search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-refer-to-the-chosen-timescale-within-my-search/m-p/111452#M29208</link>
    <description>&lt;P&gt;haha - figured the same thing out and was coming back to answer my own question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Many thanks! &lt;/P&gt;

&lt;P&gt;So to solve my problem I have added &lt;CODE&gt;|addinfo | eval totalmins=(info_max_time-info_min_time)/60&lt;/CODE&gt; and have all I need to work around the issue in the linked post &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 May 2015 11:04:08 GMT</pubDate>
    <dc:creator>seanel</dc:creator>
    <dc:date>2015-05-15T11:04:08Z</dc:date>
    <item>
      <title>How can I refer to the chosen timescale within my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-refer-to-the-chosen-timescale-within-my-search/m-p/111450#M29206</link>
      <description>&lt;P&gt;To work around another issue with reporting average counts by time (See &lt;A href="http://answers.splunk.com/answers/235989/averages-skewed-by-empty-time-buckets.html"&gt;here&lt;/A&gt; ) I would like to instead use the chosen timespan of the search in an eval.&lt;/P&gt;

&lt;P&gt;For instance I might have &lt;CODE&gt;earliest=-7d latest=now&lt;/CODE&gt; and then do an eval to calculate that there is 10080 minutes in this particular search (which will enable me to do accurate averages per minute instead of the skewed results I get in the link above.&lt;/P&gt;

&lt;P&gt;I have tried things like &lt;CODE&gt;eval mins=earliest-latest/60&lt;/CODE&gt; and &lt;CODE&gt;eval mins=earliestTime-latestTime/60&lt;/CODE&gt; but nothing seems to work&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 08:48:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-refer-to-the-chosen-timescale-within-my-search/m-p/111450#M29206</guid>
      <dc:creator>seanel</dc:creator>
      <dc:date>2015-05-15T08:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I refer to the chosen timescale within my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-refer-to-the-chosen-timescale-within-my-search/m-p/111451#M29207</link>
      <description>&lt;P&gt;Add the &lt;CODE&gt;addinfo&lt;/CODE&gt; command to your search, it'll give you fields &lt;CODE&gt;info_min_time&lt;/CODE&gt; and &lt;CODE&gt;info_max_time&lt;/CODE&gt; with the epoch timestamps of your time range.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/addinfo"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/SearchReference/addinfo&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 09:35:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-refer-to-the-chosen-timescale-within-my-search/m-p/111451#M29207</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-05-15T09:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I refer to the chosen timescale within my search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-refer-to-the-chosen-timescale-within-my-search/m-p/111452#M29208</link>
      <description>&lt;P&gt;haha - figured the same thing out and was coming back to answer my own question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Many thanks! &lt;/P&gt;

&lt;P&gt;So to solve my problem I have added &lt;CODE&gt;|addinfo | eval totalmins=(info_max_time-info_min_time)/60&lt;/CODE&gt; and have all I need to work around the issue in the linked post &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2015 11:04:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-refer-to-the-chosen-timescale-within-my-search/m-p/111452#M29208</guid>
      <dc:creator>seanel</dc:creator>
      <dc:date>2015-05-15T11:04:08Z</dc:date>
    </item>
  </channel>
</rss>

