<?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: Convert earliest_time latest_time notation to epoch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Convert-earliest-time-latest-time-notation-to-epoch/m-p/525776#M148391</link>
    <description>&lt;P&gt;Use the &lt;FONT face="courier new,courier"&gt;relative_time&lt;/FONT&gt; function as in this run-anywhere example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval now=now(), interval="-15m@m", ago=relative_time(now, interval) 
| table now, interval, ago&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Oct 2020 13:07:39 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-10-21T13:07:39Z</dc:date>
    <item>
      <title>Convert earliest_time latest_time notation to epoch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-earliest-time-latest-time-notation-to-epoch/m-p/525710#M148380</link>
      <description>&lt;P&gt;Hello there!&lt;/P&gt;&lt;P&gt;Is there a known method (a function, a command, built-in or custom, a search trick) to convert the earliest_time and latest_time notation to epoch for instance?&lt;/P&gt;&lt;P&gt;For instance, I need to convert this:&lt;/P&gt;&lt;P&gt;earliest_time&lt;BR /&gt;-15m@m&lt;/P&gt;&lt;P&gt;latest_time&lt;BR /&gt;-5m@m&lt;/P&gt;&lt;P&gt;into an epoch timestamp so I can calculate the interval between them.&lt;/P&gt;&lt;P&gt;As the notation is flexible, I want to check if there is something available already rather than try to build a dirty search that would try to cover every variation of the notation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any hint!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 08:45:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-earliest-time-latest-time-notation-to-epoch/m-p/525710#M148380</guid>
      <dc:creator>D2SI</dc:creator>
      <dc:date>2020-10-21T08:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert earliest_time latest_time notation to epoch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-earliest-time-latest-time-notation-to-epoch/m-p/525776#M148391</link>
      <description>&lt;P&gt;Use the &lt;FONT face="courier new,courier"&gt;relative_time&lt;/FONT&gt; function as in this run-anywhere example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval now=now(), interval="-15m@m", ago=relative_time(now, interval) 
| table now, interval, ago&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 13:07:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-earliest-time-latest-time-notation-to-epoch/m-p/525776#M148391</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-10-21T13:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Convert earliest_time latest_time notation to epoch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-earliest-time-latest-time-notation-to-epoch/m-p/525821#M148400</link>
      <description>&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Oct 2020 14:35:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-earliest-time-latest-time-notation-to-epoch/m-p/525821#M148400</guid>
      <dc:creator>D2SI</dc:creator>
      <dc:date>2020-10-21T14:35:44Z</dc:date>
    </item>
  </channel>
</rss>

