<?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: compare the custom dates with the _time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/compare-the-custom-dates-with-the-time/m-p/248022#M189172</link>
    <description>&lt;P&gt;The original data is in CSV or it's ingested in Splunk? If it's ingested, which column _time field is based on?&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2016 14:53:46 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-03-15T14:53:46Z</dc:date>
    <item>
      <title>compare the custom dates with the _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/compare-the-custom-dates-with-the-time/m-p/248021#M189171</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;

&lt;P&gt;I have ticket data like below &lt;/P&gt;

&lt;P&gt;ID    Open_date     Close_date&lt;BR /&gt;
1     01/01/2016     02/01/2016&lt;BR /&gt;
2     01/01/2016     01/01/2016&lt;BR /&gt;
3     02/01/2016     03/01/2016&lt;BR /&gt;
4     02/01/2016     03/01/2016&lt;BR /&gt;
5     02/01/2016     03/01/2016&lt;BR /&gt;
6     03/01/2016     04/01/2016&lt;/P&gt;

&lt;P&gt;I want to populate the data on the basis of timeline. &lt;/P&gt;

&lt;P&gt;If I choose Jan Month in timeline The open date and closed date should have compared with timeline and counts should be visible &lt;/P&gt;

&lt;P&gt;Like for Jan Selection &lt;BR /&gt;
Date        Open Count     Closed Count &lt;BR /&gt;
1-Jan-16      2                      1 &lt;BR /&gt;
2-Jan-16      3                      1 &lt;BR /&gt;
3-Jan-16      1                      3 &lt;BR /&gt;
4-Jan-16      0                      1 &lt;/P&gt;

&lt;P&gt;Is it any way to do this I am literally searching all options. I have data model however any other approach is also welcomed. &lt;/P&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Praveen&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:06:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/compare-the-custom-dates-with-the-time/m-p/248021#M189171</guid>
      <dc:creator>praveenkpatidar</dc:creator>
      <dc:date>2020-09-29T09:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: compare the custom dates with the _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/compare-the-custom-dates-with-the-time/m-p/248022#M189172</link>
      <description>&lt;P&gt;The original data is in CSV or it's ingested in Splunk? If it's ingested, which column _time field is based on?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 14:53:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/compare-the-custom-dates-with-the-time/m-p/248022#M189172</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-15T14:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: compare the custom dates with the _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/compare-the-custom-dates-with-the-time/m-p/248023#M189173</link>
      <description>&lt;P&gt;Thanks somesoni2&lt;BR /&gt;
Sorry, I missed that to mention. &lt;/P&gt;

&lt;P&gt;So _time is created date. So I guess the Open Count is now resolved. In the same way I have to do Closed Count.&lt;BR /&gt;
All data is ingested in Splunk. &lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2016 23:21:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/compare-the-custom-dates-with-the-time/m-p/248023#M189173</guid>
      <dc:creator>praveenkpatidar</dc:creator>
      <dc:date>2016-03-15T23:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: compare the custom dates with the _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/compare-the-custom-dates-with-the-time/m-p/248024#M189174</link>
      <description>&lt;P&gt;Some more progress on this. &lt;/P&gt;

&lt;P&gt;Below both searches giving me results what I want. The only issue is joining the result into one result. &lt;BR /&gt;
It should join all entities. &lt;/P&gt;

&lt;P&gt;Closed Trend&lt;BR /&gt;
index="idx" host=Incidents | eval _time = strptime ( resolved_at, "%d/%m/%Y %H:%M:%S") | chart count(number) as closed by _time bins=100&lt;/P&gt;

&lt;P&gt;Open Trend&lt;BR /&gt;
index="idx" host=Incidents | eval _time = strptime ( sys_created_on, "%d/%m/%Y %H:%M:%S") | chart count(number) as open  by _time bins=100&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:06:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/compare-the-custom-dates-with-the-time/m-p/248024#M189174</guid>
      <dc:creator>praveenkpatidar</dc:creator>
      <dc:date>2020-09-29T09:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: compare the custom dates with the _time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/compare-the-custom-dates-with-the-time/m-p/248025#M189175</link>
      <description>&lt;P&gt;The key to your success would be the &lt;CODE&gt;streamstats&lt;/CODE&gt; command. I am not sure if it is the most pretty or effective solution, but it gives you the wanted results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; your_base_search
   | streamstats count as opencount by Open_date
   | streamstats count as closecount by Close_date
   | timechart span=1d max(opencount) as "Tickets opened", max(closecount) as "Tickets Closed"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Your data needs to have the event timestamp as the creation day for this search to work, maybe you need to tune this a bit by adding an &lt;CODE&gt;eval _time= ....&lt;/CODE&gt; to your search to achieve this.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2016 08:59:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/compare-the-custom-dates-with-the-time/m-p/248025#M189175</guid>
      <dc:creator>DMohn</dc:creator>
      <dc:date>2016-03-16T08:59:46Z</dc:date>
    </item>
  </channel>
</rss>

