<?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 value using wildcard? (Urgent) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-value-using-wildcard-Urgent/m-p/154173#M43333</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I tried this and cant get it to work, am i assuming the wilidard is * ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Robert&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2017 16:15:08 GMT</pubDate>
    <dc:creator>robertlynch2020</dc:creator>
    <dc:date>2017-11-03T16:15:08Z</dc:date>
    <item>
      <title>How to join value using wildcard? (Urgent)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-value-using-wildcard-Urgent/m-p/154170#M43330</link>
      <description>&lt;P&gt;I want to calculate the sum of count value in a tree form of data&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Count table:&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="http://i60.tinypic.com/2qs1bmf.png" target="_blank"&gt;http://i60.tinypic.com/2qs1bmf.png&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In count table, &lt;BR /&gt;
0.0 is child of 0,&lt;BR /&gt;
0.0.1 is child of 0.0,&lt;BR /&gt;
0.0.1.1 is child of 0.0.1,&lt;BR /&gt;
0.0.2 is child of 0.0,&lt;BR /&gt;
0.0.1.2 is child of 0.0.1,&lt;BR /&gt;
0.0.2.1 is child of 0.0.2,&lt;BR /&gt;
0.0.2.2 is child of 0.0.2&lt;/P&gt;

&lt;P&gt;Total count of the node = "sum of all offspring's count"+ self count &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Expected result:&lt;/STRONG&gt;&lt;BR /&gt;
&lt;A href="http://i58.tinypic.com/vfy3oi.png" target="_blank"&gt;http://i58.tinypic.com/vfy3oi.png&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I think that I may build up the &lt;STRONG&gt;[Relationship] table&lt;/STRONG&gt; first.&lt;BR /&gt;
Like this: &lt;A href="http://i57.tinypic.com/dd83o.png" target="_blank"&gt;http://i57.tinypic.com/dd83o.png&lt;/A&gt;&lt;BR /&gt;
In SQL, I can write: &lt;BR /&gt;
&lt;STRONG&gt;SELECT child.id SEQUENCE_ID,parent.id ELDER_GENERATION_SEQUENCE_ID FROM [count_table] child&lt;BR /&gt;
INNER JOIN [count_table] parent on (child.id like parent.id + '%')&lt;/STRONG&gt;&lt;BR /&gt;
But how about in Splunk??&lt;/P&gt;

&lt;P&gt;After having this table, I will group by the second column of [Relationship] table and sum them up.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;What is the query to do this?&lt;/STRONG&gt;&lt;BR /&gt;
Thank you!!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:48:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-value-using-wildcard-Urgent/m-p/154170#M43330</guid>
      <dc:creator>kelvin56887</dc:creator>
      <dc:date>2020-09-28T17:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to join value using wildcard? (Urgent)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-value-using-wildcard-Urgent/m-p/154171#M43331</link>
      <description>&lt;P&gt;Try this workaround (runanywhere sample with your example data)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|gentimes start=-1 |eval temp="0:1#0.0:0#0.0.1:0#0.0.1.1:1#0.0.2:0#0.0.1.2:1#0.0.2.1:1#0.0.2.2:1" |table temp | makemv delim="#" temp | mvexpand temp | rex field=temp "(?&amp;lt;id&amp;gt;.*):(?&amp;lt;count&amp;gt;.*)" |fields - temp
 | eval sno=mvcount(split(id,".")) | eval t=mvrange(1,sno+1) | mvexpand t |eval tid=substr(id,1,2*t -1)|stats sum(count) as count by tid
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Oct 2014 13:28:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-value-using-wildcard-Urgent/m-p/154171#M43331</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-07T13:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to join value using wildcard? (Urgent)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-value-using-wildcard-Urgent/m-p/154172#M43332</link>
      <description>&lt;P&gt;Yes, it's too late. But this might help someone looking for same now.&lt;/P&gt;

&lt;P&gt;For using wildcard, you can do something like this:&lt;/P&gt;

&lt;P&gt;| join type="join_type"  wildcard("field_name_to_join" ) [inner search here]&lt;/P&gt;

&lt;P&gt;Hope this will help you all.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:36:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-value-using-wildcard-Urgent/m-p/154172#M43332</guid>
      <dc:creator>BansodeSantosh</dc:creator>
      <dc:date>2020-09-29T14:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to join value using wildcard? (Urgent)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-value-using-wildcard-Urgent/m-p/154173#M43333</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;I tried this and cant get it to work, am i assuming the wilidard is * ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Robert&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 16:15:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-value-using-wildcard-Urgent/m-p/154173#M43333</guid>
      <dc:creator>robertlynch2020</dc:creator>
      <dc:date>2017-11-03T16:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to join value using wildcard? (Urgent)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-value-using-wildcard-Urgent/m-p/154174#M43334</link>
      <description>&lt;P&gt;Ditto I too could not get it to work no matter how I tried to set the "field_name_to_join" including with an eval using the same name as the inner search would find. I was so hopeful too!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-value-using-wildcard-Urgent/m-p/154174#M43334</guid>
      <dc:creator>sirpatrick</dc:creator>
      <dc:date>2020-09-30T01:33:56Z</dc:date>
    </item>
  </channel>
</rss>

