<?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: Reconciliation from 3 different sourcetypes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/539018#M152444</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp; is there a way i can implement a condition which says the SMS_RECORD is not available in any one of the sourcetype.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pardon me for the syntax, but some thing like this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;| where NOT SMS_RECORD IN (sourcetype=OVERDRAFT_REC1 OR sourcetype=OVERDRAFT_REC2 OR sourcetype=OVERDRAFT_REC3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2021 16:55:20 GMT</pubDate>
    <dc:creator>ashrafsj</dc:creator>
    <dc:date>2021-02-08T16:55:20Z</dc:date>
    <item>
      <title>Reconciliation from 3 different sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/538964#M152418</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have an issue while trying to reconcile events from 3 different source types, the events from each sourcetype below is from DBConnect, they run every 1 hour. I tried to schedule the alert to look into events last 3 hours, i get all the events instead of just the difference.&amp;nbsp; tried mvexpand as well but didnt help much. the whole idea is to reconcile events from 3 different sourcetypes and get the result od missing SMS_RECORD out to team to look into.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;index=month source=XYZ sourcetype=OVERDRAFT_REC1&lt;BR /&gt;| dedup SMS_RECORD&lt;BR /&gt;| eval TIMESTAMP=strftime(strptime(TIMESTAMP,"%d-%b-%y %H:%M:%S"),"%d-%m-%Y %H:%M")&lt;BR /&gt;| stats values(SMS_RECORD) AS IN_T1 BY TIMESTAMP&lt;BR /&gt;| append&lt;BR /&gt;[ search index=month source=XYZ sourcetype=OVERDRAFT_REC2&lt;BR /&gt;| dedup SMS_RECORD&lt;BR /&gt;| eval TIMESTAMP=strftime(strptime(TIMESTAMP,"%Y-%m-%d %H:%M:%S.%6Q"),"%d-%m-%Y %H:%M")&lt;BR /&gt;| stats values(SMS_RECORD) AS IN_I1 BY TIMESTAMP&lt;BR /&gt;]&lt;BR /&gt;| append&lt;BR /&gt;[ search index=month source=XYZ sourcetype=OVERDRAFT_REC3&lt;BR /&gt;| dedup SMS_RECORD&lt;BR /&gt;| eval TIMESTAMP=strftime(strptime(TIMESTAMP,"%Y-%m-%d %H:%M:%S.%6Q"),"%d-%m-%Y %H:%M")&lt;BR /&gt;| stats values(SMS_RECORD) AS IN_TXT1 BY TIMESTAMP&lt;BR /&gt;]&lt;BR /&gt;| mvexpand IN_T1&amp;nbsp;&lt;BR /&gt;| mvexpand IN_I1&amp;nbsp;&lt;BR /&gt;| mvexpand IN_TXT1&lt;BR /&gt;| stats values(IN_T1) AS T1,values(IN_I1) AS I1,values(IN_TXT1) AS TXT1 BY TIMESTAMP&lt;BR /&gt;| where T1!=I1 OR I1!=TXT1 OR TXT1!=T1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 10:38:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/538964#M152418</guid>
      <dc:creator>ashrafsj</dc:creator>
      <dc:date>2021-02-08T10:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reconciliation from 3 different sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/538969#M152423</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=month source=XYZ (sourcetype=OVERDRAFT_REC1 OR sourcetype=OVERDRAFT_REC2 OR sourcetype=OVERDRAFT_REC3)
| eval TIMESTAMP=strptime(TIMESTAMP,"%d-%b-%y %H:%M:%S")
| bin span=1min TIMESTAMP
| stats values(SMS_RECORD) AS SMS_RECORD BY TIMESTAMP sourcetype
| mvexpand SMS_RECORD
| where your_condition&lt;/LI-CODE&gt;&lt;P&gt;Why not this?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 11:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/538969#M152423</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-02-08T11:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reconciliation from 3 different sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/538986#M152433</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp; - the timestamp of sourcetype1 and&amp;nbsp; 2&amp;amp;3 are different.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sourcetype1 -&amp;nbsp;%d-%b-%y %H:%M:%S&lt;/P&gt;&lt;P&gt;sourcetype2&amp;amp;3 -&amp;nbsp;%Y-%m-%d %H:%M:%S.%6Q&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;once I convert them to same timestamp - %d-%m-%Y %H:%M , it would be easier to reconcile the events. if the entries from each of the sourcetypes are not equal, then it needs to display the SMS_RECORD (difference)&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 12:36:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/538986#M152433</guid>
      <dc:creator>ashrafsj</dc:creator>
      <dc:date>2021-02-08T12:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reconciliation from 3 different sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/538988#M152434</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval TIMESTAMP=coalesce(strptime(TIMESTAMP,"%d-%b-%y %H:%M:%S"),strptime(TIMESTAMP,"%Y-%m-%d %H:%M:%S.%6Q"))&lt;/LI-CODE&gt;&lt;P&gt;This will be OK.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 12:56:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/538988#M152434</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-02-08T12:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reconciliation from 3 different sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/539018#M152444</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp; is there a way i can implement a condition which says the SMS_RECORD is not available in any one of the sourcetype.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pardon me for the syntax, but some thing like this&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;| where NOT SMS_RECORD IN (sourcetype=OVERDRAFT_REC1 OR sourcetype=OVERDRAFT_REC2 OR sourcetype=OVERDRAFT_REC3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 16:55:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/539018#M152444</guid>
      <dc:creator>ashrafsj</dc:creator>
      <dc:date>2021-02-08T16:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reconciliation from 3 different sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/539030#M152450</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/43207"&gt;@ashrafsj&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You can use like below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where isnull(SMS_RECORD) AND (sourcetype="OVERDRAFT_REC1" OR sourcetype="OVERDRAFT_REC2" OR sourcetype="OVERDRAFT_REC3")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 Feb 2021 18:09:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/539030#M152450</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-02-08T18:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Reconciliation from 3 different sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/539039#M152454</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Im trying to add the condition to compare the SMS_RECORD output among 3 different source types and only output SMS_RECORD entry that didnt reconcile between the 3 sourcetypes&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=month source=XYZ (sourcetype=OVERDRAFT_REC1 OR sourcetype=OVERDRAFT_REC2 OR sourcetype=OVERDRAFT_REC3)
| eval TIMESTAMP=coalesce(strptime(TIMESTAMP,"%d-%b-%y %H:%M:%S"),strptime(TIMESTAMP,"%Y-%m-%d %H:%M:%S.%6Q")) 
| bin span=1min TIMESTAMP
| stats values(SMS_RECORD) AS SMS_RECORD BY TIMESTAMP sourcetype
| mvexpand SMS_RECORD
| where &amp;lt;&amp;lt;check SMS_RECORD that doesnt reconcile from the 3 different sourcetypes&amp;gt;&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 18:42:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/539039#M152454</guid>
      <dc:creator>ashrafsj</dc:creator>
      <dc:date>2021-02-08T18:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reconciliation from 3 different sourcetypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/539057#M152461</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/43207"&gt;@ashrafsj&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;My reply was only for your last question, I think now I understood your need. Please try below;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=month source=XYZ (sourcetype=OVERDRAFT_REC1 OR sourcetype=OVERDRAFT_REC2 OR sourcetype=OVERDRAFT_REC3)
| eval TIMESTAMP=coalesce(strptime(TIMESTAMP,"%d-%b-%y %H:%M:%S"),strptime(TIMESTAMP,"%Y-%m-%d %H:%M:%S.%6Q")) 
| bin span=1min TIMESTAMP
| stats dc(sourcetype) AS sourcetype_count values(sourcetype) as sourcetype BY TIMESTAMP SMS_RECORD
| where sourcetype_count&amp;lt;3&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 Feb 2021 21:39:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reconciliation-from-3-different-sourcetypes/m-p/539057#M152461</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-02-08T21:39:25Z</dc:date>
    </item>
  </channel>
</rss>

