<?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 How to co-relate data from multiple sourcetypes? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-co-relate-data-from-multiple-sourcetypes/m-p/473185#M133170</link>
    <description>&lt;P&gt;I have data in three source types to co-relate. Time and a unique identifier number are common for all three sourcetype data. &lt;/P&gt;

&lt;P&gt;Sample data from the first sourcetype: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time         unique_number Name
12/9/2019 9:49  4782     John
12/9/2019 9:52  698   Andrew
12/9/2019 9:56  2487     Marshal
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to check whether John is having a unique number 4782 in the rest of the two tables within the last 20 minutes of 1st sourcetype data time aka John's time (i.e.: 12/9/2019 9:49). &lt;BR /&gt;
If any match found, need to return a comment(matched/not matched) to main search (i.e.: table _time,unique_number,Name,comment.&lt;BR /&gt;
I tried sub search with  &lt;CODE&gt;join&lt;/CODE&gt; but definitely missing some points and not getting the desired output.  &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 03:29:36 GMT</pubDate>
    <dc:creator>ahmadshakir1952</dc:creator>
    <dc:date>2020-09-30T03:29:36Z</dc:date>
    <item>
      <title>How to co-relate data from multiple sourcetypes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-co-relate-data-from-multiple-sourcetypes/m-p/473185#M133170</link>
      <description>&lt;P&gt;I have data in three source types to co-relate. Time and a unique identifier number are common for all three sourcetype data. &lt;/P&gt;

&lt;P&gt;Sample data from the first sourcetype: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time         unique_number Name
12/9/2019 9:49  4782     John
12/9/2019 9:52  698   Andrew
12/9/2019 9:56  2487     Marshal
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to check whether John is having a unique number 4782 in the rest of the two tables within the last 20 minutes of 1st sourcetype data time aka John's time (i.e.: 12/9/2019 9:49). &lt;BR /&gt;
If any match found, need to return a comment(matched/not matched) to main search (i.e.: table _time,unique_number,Name,comment.&lt;BR /&gt;
I tried sub search with  &lt;CODE&gt;join&lt;/CODE&gt; but definitely missing some points and not getting the desired output.  &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-co-relate-data-from-multiple-sourcetypes/m-p/473185#M133170</guid>
      <dc:creator>ahmadshakir1952</dc:creator>
      <dc:date>2020-09-30T03:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to co-relate data from multiple sourcetypes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-co-relate-data-from-multiple-sourcetypes/m-p/473186#M133171</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval _raw="_time,unique_number,Name
12/9/2019 9:49,4782,John
12/9/2019 9:52,698,Andrew
12/9/2019 9:56,2487,Marshal" 
| multikv forceheader=1 
| eval _time=strptime(time,"%m/%d/%Y %H:%M") 
| table _time,unique_number,Name 
| rename COMMENT AS "this is sample you provide"
| rename COMMENT AS "From here, the logic"
| eventstats range(_time) as time_check
| eval comment=if(Name="John" AND unique_number=4782 AND time_check &amp;lt;= 60 * 20,"matched","not matched")
| table _time,unique_number,Name,comment
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hi, @ahmadshakir1952&lt;BR /&gt;
I don't understand subsearch well, but I think we can create a query if you provide us with the conditions.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Dec 2019 22:33:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-co-relate-data-from-multiple-sourcetypes/m-p/473186#M133171</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2019-12-29T22:33:36Z</dc:date>
    </item>
  </channel>
</rss>

