<?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: Splunk Date/Time comparison using _time generated through timechart for a Span of 1 Month in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Date-Time-comparison-using-time-generated-through/m-p/523323#M147598</link>
    <description>&lt;P&gt;perfect thanks for the explanation ..appreciate it !!&lt;/P&gt;</description>
    <pubDate>Wed, 07 Oct 2020 01:35:05 GMT</pubDate>
    <dc:creator>promukh</dc:creator>
    <dc:date>2020-10-07T01:35:05Z</dc:date>
    <item>
      <title>Splunk Date/Time comparison using _time generated through timechart for a Span of 1 Month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Date-Time-comparison-using-time-generated-through/m-p/523095#M147543</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;I &amp;nbsp;am having a search as below&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|search | eval _time=new_t | timechart span=1mon sum(alloc) as used | streamstats sum(used) as "Total" | predict "Total" as "Projected" future_timespan=8&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output from the search is as below&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;_time&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Used&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Total&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Projected&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;lower95&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;2019-09&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;2020-03&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;3&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;2020-04&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;7&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;2020-05&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;11&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;2020-09&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;5&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;16&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="25px"&gt;2020-10&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="25px"&gt;2020-11&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="25px"&gt;2020-12&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="25px"&gt;2021-01&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;lt;some numbers&amp;gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i compare the "_time" field with current "month-year" &amp;nbsp;and display only those rows greater than the current Year-Month.&lt;/P&gt;&lt;P&gt;| search _time&amp;gt;strftime(now(),"%Y-%m-%d")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any hep will be appreciated ..Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 02:16:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Date-Time-comparison-using-time-generated-through/m-p/523095#M147543</guid>
      <dc:creator>promukh</dc:creator>
      <dc:date>2020-10-06T02:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Date/Time comparison using _time generated through timechart for a Span of 1 Month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Date-Time-comparison-using-time-generated-through/m-p/523114#M147546</link>
      <description>&lt;P&gt;comparison of two times without convert them to epoch is difficult.&amp;nbsp; converting just year and month to epoch time doesn't happen. I have added 01 as day for each months and compared. add below line to your SPL.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where (strptime(strftime(_time,"%Y-%m-01"),"%Y-%m-%d"))&amp;gt; (strptime(strftime(now(),"%Y-%m-01"),"%Y-%m-%d"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 06:22:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Date-Time-comparison-using-time-generated-through/m-p/523114#M147546</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-10-06T06:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Date/Time comparison using _time generated through timechart for a Span of 1 Month</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Date-Time-comparison-using-time-generated-through/m-p/523323#M147598</link>
      <description>&lt;P&gt;perfect thanks for the explanation ..appreciate it !!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 01:35:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Date-Time-comparison-using-time-generated-through/m-p/523323#M147598</guid>
      <dc:creator>promukh</dc:creator>
      <dc:date>2020-10-07T01:35:05Z</dc:date>
    </item>
  </channel>
</rss>

