<?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: Fields match between multiple sources and loop through items in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623362#M216694</link>
    <description>&lt;P&gt;Thank you for clarifying.It was helpful and it worked for me.&lt;/P&gt;&lt;P&gt;Just one clarification ,with this query have created dashboard and added drop down filtering options for few fields from both the source types.its working for the common fields name ,but field which is present in any of the source is not having ,though record is present its saying no result found.&lt;/P&gt;&lt;P&gt;filter searching is not working for &lt;SPAN&gt;s1_field3 and &lt;/SPAN&gt;&lt;SPAN&gt;s2_field3 .Is it something filtering works only for common fields across both the sources ?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2022 06:55:27 GMT</pubDate>
    <dc:creator>M28</dc:creator>
    <dc:date>2022-12-06T06:55:27Z</dc:date>
    <item>
      <title>How to format when fields match between multiple sources and loop through items?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/622765#M216505</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Below is the sample data looks like.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;sourcetype_1&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;s1_field1: 123&lt;/P&gt;
&lt;P&gt;s1_field2: {&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;ID: 2&lt;/P&gt;
&lt;P&gt;Name: ABC&lt;/P&gt;
&lt;P&gt;}, {&lt;/P&gt;
&lt;P&gt;ID: 1&lt;/P&gt;
&lt;P&gt;Name: XYZ&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;s1_field3 : Completed&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;sourcetype_2&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;s2_field1: 123&lt;/P&gt;
&lt;P&gt;s2_field2: {&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;CID: 3&lt;/P&gt;
&lt;P&gt;Info: XXX&lt;/P&gt;
&lt;P&gt;},&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;CID: 2&lt;/P&gt;
&lt;P&gt;Info: YYY&lt;/P&gt;
&lt;P&gt;},&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;s2_field3: N&lt;/P&gt;
&lt;P&gt;Here first i need to match s1_field1 of source1 to s2_field1 of source2.If its matching then I need to match the s2_field1 's CID of source2 with s1_field2's ID of source 1.If matches then need to fetch the all other fields of both source 1 and source 1.&lt;/P&gt;
&lt;P&gt;Expecting data like below:&lt;/P&gt;
&lt;P&gt;ID:2&lt;/P&gt;
&lt;P&gt;Name:ABC&lt;/P&gt;
&lt;P&gt;Info: YYY&lt;/P&gt;
&lt;P&gt;Please suggest.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 16:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/622765#M216505</guid>
      <dc:creator>M28</dc:creator>
      <dc:date>2022-12-01T16:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/622799#M216529</link>
      <description>&lt;P&gt;First, thank you for clearly illustrating the data, explain the requirement, and illustrate expected results. This is much clearer than the other thread on the same subject.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;If its matching then I need to match the s2_field1 's CID of source2 with s1_field2's ID of source 1&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I suspect that you meant "s2_field2 's CID of source2" (and s1_field2's ID of source 1). Still, you left a critical piece of the puzzle unsettled: Under what common field would you want to consider these matches. Is it a time period? Or do you just want &lt;EM&gt;values&lt;/EM&gt; of the rest of fields?&lt;/P&gt;&lt;P&gt;If you just want the values, you can do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype IN (sourcetype_1, sourcetype_2)
| rename s1_field1 as field1, s2_field1 as field1, s2_field2.CID as CID, s1_field1.ID as CID
| eventstats dc(sourcetype) by field1 CID
| where 'dc(sourcetype)' &amp;gt; 1
| stats values(*) as * by field1 CID&lt;/LI-CODE&gt;&lt;P&gt;But this is nearly meaningless if you are searching over any extended period of time.&lt;/P&gt;&lt;P&gt;If the match should be considered within a specific time intervals, you need to specify such interval, e.g., 5m.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype IN (sourcetype_1, sourcetype_2)
| rename s1_field1 as field1, s2_field1 as field1, s2_field2.CID as CID, s1_field1.ID as CID
| bin span=5m _time
| eventstats dc(sourcetype) by field1 CID _time
| where 'dc(sourcetype)' &amp;gt; 1
| stats values(*) as * by field1 CID ``` alternatively, timechart ```&lt;/LI-CODE&gt;&lt;P&gt;Alternatively,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype IN (sourcetype_1, sourcetype_2)
| bin span=5m _time
| eventstats values(s1_field1) as s1_field1 values(s2_field1) as s2_field1 values(s2_field2.CID) as CID values(s1_field1.ID) as ID by _time
| where s1_field1 == s2_field1 AND CID == ID
| fields - s2_field1 ID
| stats values(*) as * by s1_field1 CID&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 12:01:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/622799#M216529</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-12-01T12:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/622839#M216549</link>
      <description>&lt;P&gt;Thank you for the detailed information and multiple options.&lt;/P&gt;&lt;P&gt;I will be creating dashboard with this use-case and having filter to select the timerange in dropdown.&lt;/P&gt;&lt;P&gt;so in the query would be fetching based on values matches against 2 sources.&lt;/P&gt;&lt;P&gt;I will try these queries and keep you posted.&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 16:31:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/622839#M216549</guid>
      <dc:creator>M28</dc:creator>
      <dc:date>2022-12-01T16:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/622941#M216568</link>
      <description>&lt;P&gt;Hi Below query is exactly giving the expected output ,But I am using without the time range.(bin span=5m _time)&lt;/P&gt;&lt;P&gt;what I am observing is its giving me duplicate results.Meaning I am expecting only one entry but after while result set is increasing with same duplicate records.&lt;/P&gt;&lt;P&gt;any suggestions ?&lt;/P&gt;&lt;PRE&gt;sourcetype IN (sourcetype_1, sourcetype_2)
| bin span=5m _time
| eventstats values(s1_field1) as s1_field1 values(s2_field1) as s2_field1 values(s2_field2.CID) as CID values(s1_field1.ID) as ID by _time
| where s1_field1 == s2_field1 AND CID == ID
| fields - s2_field1 ID
| stats values(*) as * by s1_field1 CID&lt;/PRE&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 05:14:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/622941#M216568</guid>
      <dc:creator>M28</dc:creator>
      <dc:date>2022-12-02T05:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/622943#M216569</link>
      <description>&lt;P&gt;I meant to account for _time buckets in this one but forgot.&lt;/P&gt;&lt;PRE&gt;sourcetype IN (sourcetype_1, sourcetype_2)
| bin span=5m _time
| eventstats values(s1_field1) as s1_field1 values(s2_field1) as s2_field1 values(s2_field2.CID) as CID values(s1_field1.ID) as ID by _time
| where s1_field1 == s2_field1 AND CID == ID
| fields - s2_field1 ID
| stats values(*) as * by s1_field1 CID _time&lt;/PRE&gt;&lt;P&gt;In every _time bucket, results are unique. Is that what you wanted? As I mentioned, you have to decide what output is required.&lt;/P&gt;&lt;P&gt;Whenever you bucket time, you need to use it one way or another. But other people do not know what your use case is, so they cannot decide for you. Some other possible uses could be earlies, latest, etc. Take latest for example:&lt;/P&gt;&lt;PRE&gt;sourcetype IN (sourcetype_1, sourcetype_2)
| bin span=5m _time
| eventstats values(s1_field1) as s1_field1 values(s2_field1) as s2_field1 values(s2_field2.CID) as CID values(s1_field1.ID) as ID by _time
| where s1_field1 == s2_field1 AND CID == ID
| fields - s2_field1 ID
| stats latest(*) as * by s1_field1 CID _time&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Dec 2022 05:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/622943#M216569</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-12-02T05:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623087#M216615</link>
      <description>&lt;P&gt;Thank you for your response. &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&lt;/P&gt;&lt;P&gt;what I meant to say was I am using below query by giving time range option in splunk option&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="M28_0-1670036896610.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22830iA75122D3A63CDB49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="M28_0-1670036896610.png" alt="M28_0-1670036896610.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;sourcetype IN (sourcetype_1, sourcetype_2)
| eventstats values(s1_field1) as s1_field1 values(s2_field1) as s2_field1 values(s2_field2.CID) as CID values(s1_field1.ID) as ID by _time
| where s1_field1 == s2_field1 AND CID == ID
| fields - s2_field1 ID
| stats values(*) as * by s1_field1 CID&lt;/PRE&gt;&lt;P&gt;I am seeing strange behaviour initially query seems giving expected output.after a while when I again when submit again and its not giving any output at all.It says no results found though there are records (events) available.Query sometimes fetches the results and sometimes it won't.&lt;/P&gt;&lt;P&gt;any suggestions on what I might be missing ?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2022 03:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623087#M216615</guid>
      <dc:creator>M28</dc:creator>
      <dc:date>2022-12-03T03:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623114#M216620</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;I am seeing strange behaviour initially query seems giving expected output.after a while when I again when submit again and its not giving any output at all.It says no results found though there are records (events) available.Query sometimes fetches the results and sometimes it won't.&lt;/BLOCKQUOTE&gt;&lt;P&gt;The problem is &lt;EM&gt;&lt;FONT face="andale mono,times"&gt;by _time&lt;/FONT&gt;&lt;/EM&gt; in eventstats.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats values(s1_field1) as s1_field1 values(s2_field1) as s2_field1
 values(s2_field2.CID) as CID values(s1_field1.ID) as ID by _time
| where s1_field1 == s2_field1 AND CID == ID&lt;/LI-CODE&gt;&lt;P&gt;If you do NOT bucket _time, you only get results when there are matching events (from two independent sources, indexed separately) that accidentally happened during the resolution limit of _time. Depending on resolution of the sources, that could mean an interval of 1s, 1ms, or even 1µs. Such occurrences are extremely rare.&lt;/P&gt;&lt;P&gt;The moral of this story is: even if you do not explicitly bucket _time, any stats by _time is still bucketed; it's just that the bucket is not under your control. As I mentioned in the previous comment, whenever you bucket _time, you must use it in some way. The last command cannot be just &lt;FONT face="andale mono,times"&gt;&lt;EM&gt;| stats values(*) as * by s1_field1 CID&lt;/EM&gt;&lt;/FONT&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2022 00:53:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623114#M216620</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-12-04T00:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623362#M216694</link>
      <description>&lt;P&gt;Thank you for clarifying.It was helpful and it worked for me.&lt;/P&gt;&lt;P&gt;Just one clarification ,with this query have created dashboard and added drop down filtering options for few fields from both the source types.its working for the common fields name ,but field which is present in any of the source is not having ,though record is present its saying no result found.&lt;/P&gt;&lt;P&gt;filter searching is not working for &lt;SPAN&gt;s1_field3 and &lt;/SPAN&gt;&lt;SPAN&gt;s2_field3 .Is it something filtering works only for common fields across both the sources ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 06:55:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623362#M216694</guid>
      <dc:creator>M28</dc:creator>
      <dc:date>2022-12-06T06:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623372#M216698</link>
      <description>&lt;P&gt;Can you explain what do you mean by filter not working with s1_field3 and s2_field3? The prior strategy was to match s1_field1 with s2_field1, s2_field2.CID with s1_field1.ID:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats values(s1_field1) as s1_field1 values(s2_field1) as s2_field1
 values(s2_field2.CID) as CID values(s1_field1.ID) as ID by _time&lt;/LI-CODE&gt;&lt;P&gt;There is no effort to match field3 at all. Am I missing something?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 07:49:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623372#M216698</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-12-06T07:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623376#M216700</link>
      <description>&lt;P&gt;Hi ..&lt;/P&gt;&lt;P&gt;Query and initial ask is same ,No change to it .&lt;/P&gt;&lt;P&gt;what i meant by filtering is that adding dropdown in dashboard as below for field3.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="M28_0-1670314843381.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/22877i8B40C30F91916F1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="M28_0-1670314843381.png" alt="M28_0-1670314843381.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;so in order to have this working value should be present in both the sources ,otherwise it wont work ? is the understanding right ?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 08:22:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623376#M216700</guid>
      <dc:creator>M28</dc:creator>
      <dc:date>2022-12-06T08:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623380#M216702</link>
      <description>&lt;P&gt;Let me step back a bit and establish a common understanding. By "filtering", you are referring to the &lt;U&gt;&lt;FONT face="andale mono,times"&gt;where&lt;/FONT&gt;&lt;/U&gt; command following &lt;U&gt;&lt;FONT face="andale mono,times"&gt;eventstats&lt;/FONT&gt;&lt;/U&gt;, is this correct? Whether there is any return after &lt;U&gt;&lt;FONT face="andale mono,times"&gt;where&lt;/FONT&gt;&lt;/U&gt; really depends on how field3 is being used. Can you explain? I assume that your dropdown sets a token with certain values. What is the token name, how do you populate those values, and how is the token used in the &lt;FONT face="andale mono,times"&gt;where&lt;/FONT&gt; command, for example?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 08:47:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623380#M216702</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-12-06T08:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623387#M216708</link>
      <description>&lt;P&gt;Hi ..&lt;/P&gt;&lt;P&gt;No I am not referring where command and eventstats conditions from the query.&lt;/P&gt;&lt;P&gt;After the query output i am getting all the fields of both the sources(as giving | stats values(*) as ..) .Including field3.&lt;/P&gt;&lt;P&gt;I am giving the token name as field3 and also in the query passing as $field3$.but its not working as its present only in any one of the sources.&lt;/P&gt;&lt;P&gt;what I am assuming is to have this dropdown option in dashboard &lt;STRONG&gt;value&lt;/STRONG&gt; should be present in both the sources and then only it filters from the dashboard .&lt;/P&gt;&lt;P&gt;is the understanding correct ?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 09:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623387#M216708</guid>
      <dc:creator>M28</dc:creator>
      <dc:date>2022-12-06T09:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623389#M216710</link>
      <description>&lt;P&gt;I'm afraid not. If the following&lt;/P&gt;&lt;PRE&gt;| stats values(*) as * by s1_field1 CID&lt;/PRE&gt;&lt;P&gt;includes field3 in the output (equivalent to values(field3) as field3), you can use &lt;EM&gt;where&lt;/EM&gt; or &lt;EM&gt;search&lt;/EM&gt; command to filter according to its values. | stats values(fieldname) as fieldname is often used to produce a field called "fieldname" when its presence is not ubiquitous.&lt;/P&gt;&lt;P&gt;Can you illustrate the actual filter? What is the output? Why the output is not what you wanted? (What is the expected result?) In other words, describe the problem without using "not working".&lt;/P&gt;&lt;P&gt;If the problem is that when you do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where field3 == "some value"&lt;/LI-CODE&gt;&lt;P&gt;only return some combination of {s1_field1, CID}, that is the filter "working" as the command asks.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 09:47:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623389#M216710</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-12-06T09:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623545#M216759</link>
      <description>&lt;P&gt;Thank you for the response.&lt;/P&gt;&lt;P&gt;your all inputs were really helpful.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 08:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/623545#M216759</guid>
      <dc:creator>M28</dc:creator>
      <dc:date>2022-12-07T08:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/624335#M217075</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The query you suggested below working fine in our non prod.But in non prod its taking lot of time to fetch the query or though records are present its giving no result.&lt;/P&gt;&lt;P&gt;Is there performance issue with this query when we are searching across 2 sources types having more traffic in prod .&lt;/P&gt;&lt;P&gt;Any suggestions would be really helpful.&lt;/P&gt;&lt;PRE&gt;sourcetype IN (sourcetype_1, sourcetype_2)
| bin span=5m _time
| eventstats values(s1_field1) as s1_field1 values(s2_field1) as s2_field1 values(s2_field2.CID) as CID values(s1_field1.ID) as ID by _time
| where s1_field1 == s2_field1 AND CID == ID
| fields - s2_field1 ID
| stats latest(*) as * by s1_field1 CID _time&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 10:01:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/624335#M217075</guid>
      <dc:creator>M28</dc:creator>
      <dc:date>2022-12-15T10:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Fields match between multiple sources and loop through items</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/624351#M217081</link>
      <description>&lt;P&gt;Performance bottleneck mainly comes from eventstats, not because of multiple sources. &amp;nbsp;With intimate knowledge of actual data and fields needed, you can construct search strategy using stats instead of eventstats. &amp;nbsp;But this is something outsiders cannot help too much. &amp;nbsp;Another performance hindrance is latest(*) as * if there are too many fields. &amp;nbsp;Again, with knowledge about what you really need, you can spell them out so this is a smaller problem.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 11:01:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-format-when-fields-match-between-multiple-sources-and/m-p/624351#M217081</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-12-15T11:01:01Z</dc:date>
    </item>
  </channel>
</rss>

