<?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: Is there a possibility of like join? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586579#M48105</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Attached below is the data from the first SPL which is generated using a data model.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_pravin_0-1645785244390.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18131i9472DCBD61B21C3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_pravin_0-1645785244390.png" alt="_pravin_0-1645785244390.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Attached below is the second result, which is obtained from a lookup table.&lt;/P&gt;&lt;P&gt;The field FullCommand is a subset of the field Activity from the first result.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_pravin_1-1645785436951.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18132iE96CC73FD6DCF35F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_pravin_1-1645785436951.png" alt="_pravin_1-1645785436951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pravin&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 10:38:34 GMT</pubDate>
    <dc:creator>_pravin</dc:creator>
    <dc:date>2022-02-25T10:38:34Z</dc:date>
    <item>
      <title>Is there a possibility of like join?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586467#M48086</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;I am working on building SPL to combine results from two tables where there is a column field but with a complication.&lt;/P&gt;
&lt;P&gt;One of the tables to be combined has matching values as well as subset values from the other table. Is there a possibility to combine them using a join or other command and get common values?&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Pravin&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 18:42:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586467#M48086</guid>
      <dc:creator>_pravin</dc:creator>
      <dc:date>2022-02-24T18:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: is there a possibility of like join?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586472#M48087</link>
      <description>&lt;P&gt;Probably, but you'll have to tell us more about the use case for us to know for sure.&amp;nbsp; Sample data will be helpful.&lt;/P&gt;&lt;P&gt;In general, one or both sides of the join just needs to normalize a field (or create a new normalized field) to be used for joining events.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 18:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586472#M48087</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-02-24T18:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a possibility of like join?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586548#M48098</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241148"&gt;@_pravin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;at first I hint to use join only if you haven't another choice: all the people that arrive to Splunk from DB hardly use join, but it's a very heavy and slow command!&lt;/P&gt;&lt;P&gt;Anyway, as &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;said, you have to normalize the fields for joining, e.g.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if in indexA you have a complete url (e.g. &lt;A href="https://www.my_url.com/aaaa/bbbb/cccc" target="_blank"&gt;https://www.my_url.com/aaaa/bbbb/cccc&lt;/A&gt;)&lt;/LI&gt;&lt;LI&gt;in the second index a pattern of a single site (e.g. &lt;A href="http://www.my_url.com" target="_blank"&gt;www.my_url.com&lt;/A&gt;)&lt;/LI&gt;&lt;LI&gt;the field in indexA is "url"&lt;/LI&gt;&lt;LI&gt;the field in indexB is "pattern"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;you could try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=indexA OR index=indexB
| rex field=url "^\w+:\/\/(?&amp;lt;pattern_url&amp;gt;[^\/]+)"
| eval pattern_for_search=coalesce(pattern_url,pattern)
| stats dc(index) AS dc_index values(index) AS index BY pattern_for_search
| eval status=if(dc_index=2,"present in both","present in one")
| table pattern_for_search status index&lt;/LI-CODE&gt;&lt;P&gt;Please, see my approach and try to apply to your Use Case.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 07:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586548#M48098</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-25T07:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a possibility of like join?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586579#M48105</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Attached below is the data from the first SPL which is generated using a data model.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_pravin_0-1645785244390.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18131i9472DCBD61B21C3E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_pravin_0-1645785244390.png" alt="_pravin_0-1645785244390.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Attached below is the second result, which is obtained from a lookup table.&lt;/P&gt;&lt;P&gt;The field FullCommand is a subset of the field Activity from the first result.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_pravin_1-1645785436951.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18132iE96CC73FD6DCF35F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_pravin_1-1645785436951.png" alt="_pravin_1-1645785436951.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pravin&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 10:38:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586579#M48105</guid>
      <dc:creator>_pravin</dc:creator>
      <dc:date>2022-02-25T10:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a possibility of like join?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586580#M48106</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response, but I am not sure if I could use your approach as either of the SPL have an index except for the fact that they have common or almost common fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pravin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 10:41:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586580#M48106</guid>
      <dc:creator>_pravin</dc:creator>
      <dc:date>2022-02-25T10:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a possibility of like join?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586582#M48107</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241148"&gt;@_pravin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;start describing the two tables:&amp;nbsp;index and fields&lt;/P&gt;&lt;P&gt;then give us two o three samples for each table&lt;/P&gt;&lt;P&gt;than tell us which are the fields for joining.&lt;/P&gt;&lt;P&gt;at the end what is the result you'd like.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 10:55:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586582#M48107</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-25T10:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a possibility of like join?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586585#M48110</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had responded to &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; 's message, wherein I have added details about the table.&lt;/P&gt;&lt;P&gt;Please let me know if that is sufficient.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pravin&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 11:01:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586585#M48110</guid>
      <dc:creator>_pravin</dc:creator>
      <dc:date>2022-02-25T11:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a possibility of like join?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586587#M48111</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241148"&gt;@_pravin&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;ok, let me summarize information, correct me if I'm wrong:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;you elaborated the data in an index called "your_index" and obtained the columns in first screenshot&lt;/LI&gt;&lt;LI&gt;the fields (after elaboration) in your_index are:&lt;UL&gt;&lt;LI&gt;Activity&lt;/LI&gt;&lt;LI&gt;count&lt;/LI&gt;&lt;LI&gt;Average_minutes&lt;/LI&gt;&lt;LI&gt;GlobalTechnicalStatus&lt;/LI&gt;&lt;LI&gt;Functional_Status&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;then you have a lookup called "your_lookup",&lt;/LI&gt;&lt;LI&gt;the fields are.&lt;UL&gt;&lt;LI&gt;FullCommand&lt;/LI&gt;&lt;LI&gt;Owner&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;the fields for joining are:&lt;UL&gt;&lt;LI&gt;Activity&lt;/LI&gt;&lt;LI&gt;FullCommand&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&amp;nbsp;I don't see anything common but I can suppose from your first request that Activity contains FullCommand&lt;/LI&gt;&lt;LI&gt;I suppose that you want to add the Owner to the first table&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is all of this correct?&lt;/P&gt;&lt;P&gt;If yes, you could try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;your search and elaborations to arrive to first table (probably stats)
| lookup your_lookup.csv FullCommand AS Activity OUTPUT Owner
| table Activity count Average_minutes GlobalTechnicalStatus Functional_Status Owner&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 11:23:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-possibility-of-like-join/m-p/586587#M48111</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-25T11:23:41Z</dc:date>
    </item>
  </channel>
</rss>

