<?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: help on subsearch in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/510879#M143069</link>
    <description>&lt;P&gt;sample:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=100
| eval host="host".mvindex(split("ABCDEFGHIJKLMNOPQRSTUVWXYZ",""),random() % 26)
| dedup host
| join host [ | makeresults
| eval _raw="HOSTNAME SITE STATUS
hostZ test good"
| multikv 
| rename HOSTNAME as host]
| stats values(SITE) as SITE values(STATUS) as STATUS by host&lt;/LI-CODE&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp; 's query is good. you should display both csv details and the result.&lt;/P&gt;&lt;P&gt;&amp;gt; it doesn't work&lt;BR /&gt;What does it display? Have you check the result before &lt;STRONG&gt;stats&lt;/STRONG&gt;?&lt;BR /&gt;&lt;BR /&gt;No one can see your screen but you.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 18:48:33 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-07-24T18:48:33Z</dc:date>
    <item>
      <title>How to match the host in host.csv with the field in test.csv?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/510829#M143046</link>
      <description>&lt;P&gt;hi&lt;/P&gt;
&lt;P&gt;I need tio match the host there is in host.csv with the field there is in test.csv but i dont succeed&lt;/P&gt;
&lt;P&gt;could you help me please?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[| inputlookup host.csv 
    | table host ]
 | lookup test.csv HOSTNAME as host output SITE STATUS 
 | stats values(SITE) as SITE, values(STATUS) as STATUS by host&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 22:42:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/510829#M143046</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-07-24T22:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: help on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/510831#M143047</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried something like this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup host.csv 
| lookup test.csv HOSTNAME as host output SITE STATUS 
| stats values(SITE) as SITE values(STATUS) as STATUS by host&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 11:49:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/510831#M143047</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-07-24T11:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: help on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/510875#M143066</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Yes but it doesnt work....&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 18:31:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/510875#M143066</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-07-24T18:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: help on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/510879#M143069</link>
      <description>&lt;P&gt;sample:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults count=100
| eval host="host".mvindex(split("ABCDEFGHIJKLMNOPQRSTUVWXYZ",""),random() % 26)
| dedup host
| join host [ | makeresults
| eval _raw="HOSTNAME SITE STATUS
hostZ test good"
| multikv 
| rename HOSTNAME as host]
| stats values(SITE) as SITE values(STATUS) as STATUS by host&lt;/LI-CODE&gt;&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp; 's query is good. you should display both csv details and the result.&lt;/P&gt;&lt;P&gt;&amp;gt; it doesn't work&lt;BR /&gt;What does it display? Have you check the result before &lt;STRONG&gt;stats&lt;/STRONG&gt;?&lt;BR /&gt;&lt;BR /&gt;No one can see your screen but you.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 18:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/510879#M143069</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-07-24T18:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: help on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/510927#M143088</link>
      <description>&lt;P&gt;Hi to4kawa&lt;/P&gt;&lt;P&gt;Yes the query works but.....&lt;/P&gt;&lt;P&gt;Du to the fact that there is no subsearch with | inputlookup host.csv, the host displayed in my table dont match the host with the host there is in host.csv.....&lt;/P&gt;&lt;P&gt;I need to display the results only for the host in host.csv.......&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 03:05:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/510927#M143088</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-07-25T03:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: help on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/511034#M143127</link>
      <description>&lt;P&gt;I have done this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup host.csv 
| join host 
    [| inputlookup test.csv 
    | rename HOSTNAME as host] 
| stats last(DNS_NAME) as DNS, last(CLIENT_USER) as Client, last(STATUS) as Status, last(DESCRIPTION_MODEL) as Model, last(OS) as OS, last(OS_VERSION) as "OS Version" last(SITE) as Site last(BUILDING_CODE) as Building by host&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 27 Jul 2020 04:15:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/511034#M143127</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-07-27T04:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: help on subsearch</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/511163#M143172</link>
      <description>&lt;P&gt;While joining 2 queries... try to use join type as inner.&lt;/P&gt;&lt;P&gt;"| join type=inner"&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 15:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-match-the-host-in-host-csv-with-the-field-in-test-csv/m-p/511163#M143172</guid>
      <dc:creator>spitchika</dc:creator>
      <dc:date>2020-07-27T15:43:44Z</dc:date>
    </item>
  </channel>
</rss>

