<?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 join two time stamps with different counts? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331991#M98742</link>
    <description>&lt;P&gt;&lt;IMG src="https://scontent-lht6-1.xx.fbcdn.net/v/t1.0-9/30594700_10210916480979033_5980068702081515520_o.png?_nc_cat=0&amp;amp;oh=b88e3da4d495e61a85d12a7d4b5d7d07&amp;amp;oe=5B6E44F3" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Apr 2018 15:47:21 GMT</pubDate>
    <dc:creator>samwatson45</dc:creator>
    <dc:date>2018-04-11T15:47:21Z</dc:date>
    <item>
      <title>How to join two time stamps with different counts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331988#M98739</link>
      <description>&lt;P&gt;I have a single dataset which contains a couple of variables which are time (date) based. The format for all of them is the same. &lt;BR /&gt;
I am interested in having a count of two different date types. &lt;/P&gt;

&lt;P&gt;So, a bit of context, each event is a ticket which has been created in a support ticketing system. Each ticket has an associated date of creation, titled &lt;CODE&gt;CreatedAt&lt;/CODE&gt;. For tickets that have been solved, there is a &lt;CODE&gt;SolvedAt&lt;/CODE&gt;field, otherwise it is blank. I am interested in looking over a period of months and viewing how many were created and how many were completed in a given month, where the created and solved months are usually different.&lt;/P&gt;

&lt;P&gt;Is there a simple way to do this? The closest I have is &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="Tickets" 
|  eval CreatedAt=substr(CreatedAt,1,7 ) 
| rename CreatedAt as time 
|stats count as Open  by time  
| join type=outer time 
[search   source="Tickets"  |  eval SolvedAt=substr(SolvedAt,1, 7)   | rename SolvedAt as time | stats count as Solved by time ]  
| table time Open Solved
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where &lt;CODE&gt;join type=outer&lt;/CODE&gt;will allow me to join on blank solved by dates to months where tickets have been created, but not the other way around. &lt;/P&gt;

&lt;P&gt;Is there any way to do a full join where both sides can contain null values? Am I going about this the wrong way? Is there an easier solution? &lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:07:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331988#M98739</guid>
      <dc:creator>samwatson45</dc:creator>
      <dc:date>2018-04-11T14:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two time stamps with different counts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331989#M98740</link>
      <description>&lt;P&gt;what is the output you got for your query? Could you please share the same &lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 15:37:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331989#M98740</guid>
      <dc:creator>logloganathan</dc:creator>
      <dc:date>2018-04-11T15:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two time stamps with different counts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331990#M98741</link>
      <description>&lt;P&gt;hello there, &lt;BR /&gt;
what is the format of the string you are capturing as time? &lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 15:43:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331990#M98741</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-04-11T15:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two time stamps with different counts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331991#M98742</link>
      <description>&lt;P&gt;&lt;IMG src="https://scontent-lht6-1.xx.fbcdn.net/v/t1.0-9/30594700_10210916480979033_5980068702081515520_o.png?_nc_cat=0&amp;amp;oh=b88e3da4d495e61a85d12a7d4b5d7d07&amp;amp;oe=5B6E44F3" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 15:47:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331991#M98742</guid>
      <dc:creator>samwatson45</dc:creator>
      <dc:date>2018-04-11T15:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two time stamps with different counts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331992#M98743</link>
      <description>&lt;P&gt;So the 31 Open is correct however there should be 26 solved tickets ( As in there is one month in which a ticket was solved, but there was no ticket opened for this month, so nothing for it to join to).&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 15:48:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331992#M98743</guid>
      <dc:creator>samwatson45</dc:creator>
      <dc:date>2018-04-11T15:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two time stamps with different counts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331993#M98744</link>
      <description>&lt;P&gt;This format&lt;BR /&gt;
2018-03-27 09:20:42.0&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 15:48:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331993#M98744</guid>
      <dc:creator>samwatson45</dc:creator>
      <dc:date>2018-04-11T15:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two time stamps with different counts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331994#M98745</link>
      <description>&lt;P&gt;There is no full outer join in SPlunk. Considering joins are anyways expensive, try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="Tickets" 
 |  eval CreatedAt=substr(CreatedAt,1,7 ) 
 | rename CreatedAt as time 
 |stats count as Open  by time  
 | append
 [search   source="Tickets"  |  eval SolvedAt=substr(SolvedAt,1, 7)   | rename SolvedAt as time | stats count as Solved by time ]  
| stats values(*) as * by time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Apr 2018 15:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331994#M98745</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-11T15:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two time stamps with different counts?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331995#M98746</link>
      <description>&lt;P&gt;Solved! &lt;/P&gt;

&lt;P&gt;Thank you very much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 15:54:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-time-stamps-with-different-counts/m-p/331995#M98746</guid>
      <dc:creator>samwatson45</dc:creator>
      <dc:date>2018-04-11T15:54:29Z</dc:date>
    </item>
  </channel>
</rss>

