<?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: Using Join to fields with another values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/540069#M152764</link>
    <description>&lt;P&gt;Check this site:&amp;nbsp;&lt;A href="https://splunkonbigdata.com/2020/08/04/handling-wildcard-characters-in-lookup-file/" target="_blank" rel="noopener"&gt;https://splunkonbigdata.com/2020/08/04/handling-wildcard-characters-in-lookup-file/&lt;/A&gt;&amp;nbsp;. This should solve your problem. You should create csv file with field with wildcard values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hostname, field1, field2
server.net1*, abc, xyz
server.net2*,abc,xyz&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 10:30:14 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2021-02-16T10:30:14Z</dc:date>
    <item>
      <title>Using Join to fields with another values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/539925#M152717</link>
      <description>&lt;P&gt;I have lookup with possible sources and i'm comparing them with the real log events to check if any of them don't sending as expected. The hosts in lookup are without domain but the hosts in logs have added domain to the hostname. I want to join&amp;nbsp; both lookup and lists of sending hosts but i need that the command that will join superSide and superSide.computer.level.com as one hostname. I have found answers with the wild card but it seems not working, is there any other nice answer for this problem?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 11:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/539925#M152717</guid>
      <dc:creator>Astorn</dc:creator>
      <dc:date>2021-02-15T11:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using Join to fields with another values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/539929#M152721</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226085"&gt;@Astorn&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;You can strip domain name from &lt;STRONG&gt;host&lt;/STRONG&gt; then do the lookup.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;base_search 
| rex field=host "^(?&amp;lt;host_short&amp;gt;[^\.]+)"
| lookup lookup_name host AS host_short OUTPUT output_field&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 12:06:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/539929#M152721</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-02-15T12:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using Join to fields with another values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/539932#M152723</link>
      <description>&lt;P&gt;You could try stripping the domain from your host name before joining, but if I understand correctly, you just want the hosts which haven't got log entries, so, strip the domain name from your log host names, dedup by hostname, append your lookup data and count by hostname. Anything with a count of 1 will have come from your lookup, count of 2 appears in both your logs and your lookup. Is that what you are after?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 12:06:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/539932#M152723</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-15T12:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using Join to fields with another values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/540051#M152760</link>
      <description>&lt;P&gt;Thanks it is one possible solution, but it seems not very elegant, i'm looking for more modular way to do this. For example in some way it is not working,&amp;nbsp; i have many domains and may be in some case i want to have in register the hostname with some subdomains (part of all domain url). I will prefer modular solution when i can defined my own way to compare values to join.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 06:45:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/540051#M152760</guid>
      <dc:creator>Astorn</dc:creator>
      <dc:date>2021-02-16T06:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using Join to fields with another values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/540052#M152761</link>
      <description>&lt;P&gt;What do you mean by modular?&lt;/P&gt;&lt;P&gt;Also, please confirm that you want to find the hosts from your lookup that don't have recent log entries, or are you looking for something else?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 06:57:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/540052#M152761</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-16T06:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Join to fields with another values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/540053#M152762</link>
      <description>&lt;P&gt;May be not modular but universal solution. My example:&lt;/P&gt;&lt;P&gt;in my logs i have:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;super-website.computer.pl &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;but in the register(excel -&amp;gt;lookup) i have&lt;/P&gt;&lt;P&gt;&lt;EM&gt;super-website 1.2.4.2.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But maybe it will not be enought and i will have&amp;nbsp; two&lt;/P&gt;&lt;P&gt;&lt;EM&gt;super-website.computer.pl&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;super-website.magic.pl&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;so will have to change register to have super-website.computer and another record super-website.magic.&lt;/P&gt;&lt;P&gt;I want to be able to join&amp;nbsp; the records base on the rule&amp;nbsp;&amp;nbsp; &lt;EM&gt;record_from_log.domain="record_from_register*"&lt;/EM&gt;to match based on wild card, i'm quite new in splunk search language so maybe my questions are not very precisly.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 07:17:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/540053#M152762</guid>
      <dc:creator>Astorn</dc:creator>
      <dc:date>2021-02-16T07:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using Join to fields with another values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/540067#M152763</link>
      <description>&lt;P&gt;OK it works but not exactly output as expected. I have sth like this in logs.&lt;/P&gt;&lt;P&gt;server.net1.com&lt;/P&gt;&lt;P&gt;server.net2.com&lt;/P&gt;&lt;P&gt;The hostname are the same the subdomain are other.&lt;/P&gt;&lt;P&gt;So i the register i have&lt;/P&gt;&lt;P&gt;server.net1&lt;/P&gt;&lt;P&gt;server.net2&lt;/P&gt;&lt;P&gt;Then the rex not working.&lt;/P&gt;&lt;P&gt;Is there a way to user regex to change server.net1&amp;nbsp; to be server.net1* and will join with server.net1.com&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 10:16:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/540067#M152763</guid>
      <dc:creator>Astorn</dc:creator>
      <dc:date>2021-02-16T10:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Join to fields with another values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/540069#M152764</link>
      <description>&lt;P&gt;Check this site:&amp;nbsp;&lt;A href="https://splunkonbigdata.com/2020/08/04/handling-wildcard-characters-in-lookup-file/" target="_blank" rel="noopener"&gt;https://splunkonbigdata.com/2020/08/04/handling-wildcard-characters-in-lookup-file/&lt;/A&gt;&amp;nbsp;. This should solve your problem. You should create csv file with field with wildcard values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hostname, field1, field2
server.net1*, abc, xyz
server.net2*,abc,xyz&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 10:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/540069#M152764</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-02-16T10:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Join to fields with another values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/540078#M152765</link>
      <description>&lt;P&gt;Is there a way to add the * character to each host dynamicaly in search?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 12:09:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-Join-to-fields-with-another-values/m-p/540078#M152765</guid>
      <dc:creator>Astorn</dc:creator>
      <dc:date>2021-02-16T12:09:39Z</dc:date>
    </item>
  </channel>
</rss>

