<?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: match dates between an appencol and inputlookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/match-dates-between-an-appencol-and-inputlookup/m-p/497206#M138494</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;| appendcols  [search index="index1" | stats values(Confirmed) by Date]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;→&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| append [search index="index1" | stats values(Confirmed) as Confirmed by Date | eval _time= strptime(Date."+0000", "%FT%TZ%z") | fields - Date]
| stats values(*) as * by _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 14 May 2020 08:46:39 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-05-14T08:46:39Z</dc:date>
    <item>
      <title>match dates between an appencol and inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/match-dates-between-an-appencol-and-inputlookup/m-p/497205#M138493</link>
      <description>&lt;P&gt;I have a search from an input looup and i have appended search results from an index so i can overlay some results but the dates are not matching up. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup user | where stat1=1 OR stat2=1 AND tonumber(strftime(_time,"%Y")) &amp;gt; 2019
| eval Date = strftime(_time,"%d") 
| timechart span=1d max(Date) as days, count as Registrations 
| eval DayRate = round(Registrations /days, 1) 
| fields - days
| appendcols  [search index="index1" | stats values(Confirmed) by Date]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This shows me results as per the below where the overlay red line should match the dates of the rest of the graph&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8891i69B4794C0F962AC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;As you can see the dates are not aligning as per the below&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8892iCB94177D7B105230/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;if you can advise on how i can correlate the dates to the same row. &lt;/P&gt;

&lt;P&gt;I tried append and join with no luck&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 08:32:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/match-dates-between-an-appencol-and-inputlookup/m-p/497205#M138493</guid>
      <dc:creator>Sfry1981</dc:creator>
      <dc:date>2020-05-14T08:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: match dates between an appencol and inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/match-dates-between-an-appencol-and-inputlookup/m-p/497206#M138494</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| appendcols  [search index="index1" | stats values(Confirmed) by Date]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;→&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| append [search index="index1" | stats values(Confirmed) as Confirmed by Date | eval _time= strptime(Date."+0000", "%FT%TZ%z") | fields - Date]
| stats values(*) as * by _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 May 2020 08:46:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/match-dates-between-an-appencol-and-inputlookup/m-p/497206#M138494</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-14T08:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: match dates between an appencol and inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/match-dates-between-an-appencol-and-inputlookup/m-p/497207#M138495</link>
      <description>&lt;P&gt;Thanks but this still hasnt worked and date still stops at 12th april. &lt;/P&gt;

&lt;P&gt;With my _time field in index=index1 this is data imported via HEC so each field has the same _time and i can only go by the Date field&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 08:54:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/match-dates-between-an-appencol-and-inputlookup/m-p/497207#M138495</guid>
      <dc:creator>Sfry1981</dc:creator>
      <dc:date>2020-05-14T08:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: match dates between an appencol and inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/match-dates-between-an-appencol-and-inputlookup/m-p/497208#M138496</link>
      <description>&lt;P&gt;Sorry, my mistake as i still had appendcols, your answer is correct and will convert&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 10:04:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/match-dates-between-an-appencol-and-inputlookup/m-p/497208#M138496</guid>
      <dc:creator>Sfry1981</dc:creator>
      <dc:date>2020-05-14T10:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: match dates between an appencol and inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/match-dates-between-an-appencol-and-inputlookup/m-p/497209#M138497</link>
      <description>&lt;P&gt;@to4kawa &lt;/P&gt;

&lt;P&gt;I cant seem to convert your comment to an answer. Can you post as an answer again and ill accept&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 10:15:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/match-dates-between-an-appencol-and-inputlookup/m-p/497209#M138497</guid>
      <dc:creator>Sfry1981</dc:creator>
      <dc:date>2020-05-14T10:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: match dates between an appencol and inputlookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/match-dates-between-an-appencol-and-inputlookup/m-p/497210#M138498</link>
      <description>&lt;P&gt;I see, &lt;BR /&gt;
It was nice to run.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 10:53:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/match-dates-between-an-appencol-and-inputlookup/m-p/497210#M138498</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-05-14T10:53:26Z</dc:date>
    </item>
  </channel>
</rss>

