<?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: SPLUNK JOIN FIELDS WITH PARTLY MATCHING in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Join-fields-with-partly-matching/m-p/504464#M140847</link>
    <description>&lt;P&gt;Is the difference always a prefix that ends with a hyphen?&lt;/P&gt;&lt;P&gt;Is the prefix always three characters?&lt;/P&gt;&lt;P&gt;Is the ID always 36 characters long?&lt;/P&gt;&lt;P&gt;If so, then use this-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval matchId=coalesce(id1,id2,id3)
| eval matchId=substr(matchId,len(matchId)-35,36) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jun 2020 16:39:24 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2020-06-15T16:39:24Z</dc:date>
    <item>
      <title>Join fields with partly matching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-fields-with-partly-matching/m-p/504344#M140845</link>
      <description>&lt;P&gt;Hi All, I have query below that needs to modified for sub string matching condition -&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;splunk query:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;sourcetype=source1 id1="*" OR sourcetype=source2 id2="*" OR sourcetype=source3 id2="*"
Id=coalesce(id1,id2,id3)
| stats count by Id sourcetype
| xyseries Id sourcetype count | fillnull source1 source2 source3 value="Not exists"
| table source1 source2 source3&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when&amp;nbsp;&lt;BR /&gt;id1=F80C05F3-19AF-40D3-AC73-19544E928D21&lt;BR /&gt;&lt;SPAN&gt;id2=XOP-&lt;/SPAN&gt;&lt;SPAN&gt;F80C05F3-19AF-40D3-AC73-19544E928D21&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;id3=ABC-&lt;/SPAN&gt;&lt;SPAN&gt;F80C05F3-19AF-40D3-AC73-19544E928D21&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;The query above needs to be modified for substring matching based on id1 existing in id2 or id3 and it needs to return the results, how can this query below be modified?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 19:32:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-fields-with-partly-matching/m-p/504344#M140845</guid>
      <dc:creator>msrama5</dc:creator>
      <dc:date>2020-06-15T19:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: SPLUNK JOIN FIELDS WITH PARTLY MATCHING</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-fields-with-partly-matching/m-p/504462#M140846</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt; any ideas on this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 16:23:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-fields-with-partly-matching/m-p/504462#M140846</guid>
      <dc:creator>msrama5</dc:creator>
      <dc:date>2020-06-15T16:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: SPLUNK JOIN FIELDS WITH PARTLY MATCHING</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-fields-with-partly-matching/m-p/504464#M140847</link>
      <description>&lt;P&gt;Is the difference always a prefix that ends with a hyphen?&lt;/P&gt;&lt;P&gt;Is the prefix always three characters?&lt;/P&gt;&lt;P&gt;Is the ID always 36 characters long?&lt;/P&gt;&lt;P&gt;If so, then use this-&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval matchId=coalesce(id1,id2,id3)
| eval matchId=substr(matchId,len(matchId)-35,36) &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 16:39:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-fields-with-partly-matching/m-p/504464#M140847</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2020-06-15T16:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Join fields with partly matching</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Join-fields-with-partly-matching/m-p/504502#M140854</link>
      <description>&lt;LI-CODE lang="markup"&gt;(sourcetype=source1 id1="*") OR (sourcetype=source2 id2="*") OR (sourcetype=source3 id2="*")
| eval Id=coalesce(id1,id2,id3)
| eval ID=mvindex(split(Id,"-"),-1)
| stats count by ID sourcetype
| xyseries ID sourcetype count |
| fillnull source1 source2 source3 value="Not exists"
| table source1 source2 source3&lt;/LI-CODE&gt;&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/176060"&gt;@msrama5&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;How about this?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jun 2020 21:28:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Join-fields-with-partly-matching/m-p/504502#M140854</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-06-15T21:28:41Z</dc:date>
    </item>
  </channel>
</rss>

