<?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: lookup csv file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447195#M126791</link>
    <description>&lt;P&gt;| inputlookup yourlookup.csv&lt;BR /&gt;
| where hostname!=parent&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2019 12:13:35 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2019-07-02T12:13:35Z</dc:date>
    <item>
      <title>lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447194#M126790</link>
      <description>&lt;P&gt;good morning ,&lt;BR /&gt;
i have some issues on splunk now if some one can help me ;&lt;BR /&gt;
the is a discription of my csv :&lt;/P&gt;

&lt;P&gt;|Hostname  |VersionSoftware  | Parent     |&lt;BR /&gt;
|V1                |xxxx                        |c1             |&lt;BR /&gt;
|V2                |xxxx                        |c2             |&lt;BR /&gt;
|V3                |xxxx                        |T3             |&lt;BR /&gt;
|V4                |xxxx                        |V1             |&lt;/P&gt;

&lt;P&gt;so what i want to do is to ignore the line where Hostname == Parent  and only from the side of Hostname what i mean is it can be a lot of values equal to V1 on Parent .but in hostname its apear one time &lt;BR /&gt;
thank all.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 09:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447194#M126790</guid>
      <dc:creator>kacel</dc:creator>
      <dc:date>2019-07-02T09:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447195#M126791</link>
      <description>&lt;P&gt;| inputlookup yourlookup.csv&lt;BR /&gt;
| where hostname!=parent&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 12:13:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447195#M126791</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2019-07-02T12:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447196#M126792</link>
      <description>&lt;P&gt;thank you for answer,&lt;BR /&gt;
but  your proposition doesnt work .&lt;BR /&gt;
i had false result&lt;BR /&gt;
i think that i must use a loop fixing hostname and iterating on parent .&lt;BR /&gt;
thanks if u have something-eles&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 12:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447196#M126792</guid>
      <dc:creator>kacel</dc:creator>
      <dc:date>2019-07-02T12:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447197#M126793</link>
      <description>&lt;P&gt;@kacel,  Please be careful to "Add comment" when replying to a particular answer instead of "Post Your Answer To This Question".    I moved this comment to where it belongs for you.&lt;/P&gt;

&lt;P&gt;Unless of course you found your own answer and are helping everyone else by writing it down here!&lt;/P&gt;

&lt;P&gt;Anyway - no worries, it's not a big deal, just something to be careful of!&lt;/P&gt;

&lt;P&gt;Happy Splunking,&lt;BR /&gt;
Rich&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 12:56:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447197#M126793</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2019-07-02T12:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447198#M126794</link>
      <description>&lt;P&gt;If those are &lt;EM&gt;exactly&lt;/EM&gt; right example, then case matters!&lt;/P&gt;

&lt;P&gt;Working off this more or less perfect answer...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup yourlookup.csv
| where Hostname!=Parent
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;give that a try!&lt;/P&gt;

&lt;P&gt;If it doesn't work, please provide what it DOES give you back, and where it's wrong.  And what you wanted instead.&lt;/P&gt;

&lt;P&gt;Happy Splunking!&lt;BR /&gt;
Rich&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 12:58:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447198#M126794</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2019-07-02T12:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447199#M126795</link>
      <description>&lt;P&gt;i want to compare all values on colum Parent with Hostname values&lt;BR /&gt;
and if there is an equal then ignore the first line and not all lines so in esult &lt;BR /&gt;
|Hostname |VersionSoftware | Parent |&lt;BR /&gt;
|V1 |xxxx |c1 |&lt;BR /&gt;
|V2 |xxxx |c2 |&lt;BR /&gt;
|V3 |xxxx |T3 |&lt;BR /&gt;
|V4 |xxxx |V1 |&lt;BR /&gt;
|V5 |xxxx |V1 |&lt;/P&gt;

&lt;P&gt;target&lt;BR /&gt;
|Hostname |VersionSoftware | Parent |&lt;BR /&gt;
|V2 |xxxx |c2 |&lt;BR /&gt;
|V3 |xxxx |T3 |&lt;BR /&gt;
|V4 |xxxx |V1 |&lt;BR /&gt;
|V5 |xxxx |V1 |&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2019 09:03:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447199#M126795</guid>
      <dc:creator>kacel</dc:creator>
      <dc:date>2019-07-03T09:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447200#M126796</link>
      <description>&lt;P&gt;@kacel,&lt;/P&gt;

&lt;P&gt;Are you looking for something similar ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    | inputlookup your_lookup.csv
    | eventstats values(Parent) as _tmp
    | eval found=if(isnull(mvfind(_tmp,Hostname)),0,1)  | where found!=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Jul 2019 12:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447200#M126796</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-07-03T12:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: lookup csv file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447201#M126797</link>
      <description>&lt;P&gt;| inputlookup my_csv&lt;BR /&gt;
     | eventstats values(Parent) as parent_tmp&lt;BR /&gt;
     | eval found=if(isnull(mvfind(parent_tmp,Host)),0,1)  | where found!=1 &lt;BR /&gt;
| table Host Parent Version&lt;/P&gt;

&lt;P&gt;This gives what you are looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:14:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/lookup-csv-file/m-p/447201#M126797</guid>
      <dc:creator>sandeepmakkena</dc:creator>
      <dc:date>2020-09-30T01:14:08Z</dc:date>
    </item>
  </channel>
</rss>

