<?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 searches based on two different formatted fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-based-on-two-different-formatted-fields/m-p/392855#M171970</link>
    <description>&lt;P&gt;hi @sangs8788 &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1 TXN_ID ="24,25" | makemv delim="," TXN_ID |mvexpand TXN_ID|rename TXN_ID  as ID |join ID [search index=index2 ID=25 ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Apr 2019 10:45:21 GMT</pubDate>
    <dc:creator>harishalipaka</dc:creator>
    <dc:date>2019-04-08T10:45:21Z</dc:date>
    <item>
      <title>How to join two searches based on two different formatted fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-based-on-two-different-formatted-fields/m-p/392853#M171968</link>
      <description>&lt;P&gt;I have an index which contains field  - TXN_ID = "24, 25 "&lt;BR /&gt;
index=index1 TXN_ID ="24,25"&lt;/P&gt;

&lt;P&gt;I have another event in different index which has field -  ID = 25&lt;BR /&gt;
index=index2 ID=25&lt;/P&gt;

&lt;P&gt;How do i combine both these two queries to get the other details from Index1 ? I know we have to use join. But since the index1 field value contains comma separated value, i am not very sure on how to form the query. Can someone help me on this.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:58:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-based-on-two-different-formatted-fields/m-p/392853#M171968</guid>
      <dc:creator>sangs8788</dc:creator>
      <dc:date>2020-09-29T23:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches based on two different formatted fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-based-on-two-different-formatted-fields/m-p/392854#M171969</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1 TXN_ID ="24,25" | eval ID = split(TXN_ID,",") | mvexpand ID | join ID [  search index=index2 ID=25 ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Sample:&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval TXN_ID ="24,25" | eval ID = split(TXN_ID,",") | mvexpand ID | join ID [ | makeresults | eval ID = 24 | table _time ID]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Apr 2019 10:36:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-based-on-two-different-formatted-fields/m-p/392854#M171969</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-08T10:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two searches based on two different formatted fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-based-on-two-different-formatted-fields/m-p/392855#M171970</link>
      <description>&lt;P&gt;hi @sangs8788 &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=index1 TXN_ID ="24,25" | makemv delim="," TXN_ID |mvexpand TXN_ID|rename TXN_ID  as ID |join ID [search index=index2 ID=25 ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Apr 2019 10:45:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-two-searches-based-on-two-different-formatted-fields/m-p/392855#M171970</guid>
      <dc:creator>harishalipaka</dc:creator>
      <dc:date>2019-04-08T10:45:21Z</dc:date>
    </item>
  </channel>
</rss>

