<?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: cross files csv as to as rechercheV in excel in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/cross-files-csv-as-to-as-rechercheV-in-excel/m-p/321437#M92917</link>
    <description>&lt;P&gt;Assuming both files use &lt;CODE&gt;host&lt;/CODE&gt; as the field name, search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputcsv AntiVirusResults | eval source="AV"
| appendpipe [| inputcsv ServerList | eval source="SL" ]
| stats dc(source) AS numSources values(source) AS sources BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then add this to show hits:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search numSources=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or add this to show misses:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search sources="SL" AND numSources=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 30 May 2017 17:00:45 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-05-30T17:00:45Z</dc:date>
    <item>
      <title>cross files csv as to as rechercheV in excel</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/cross-files-csv-as-to-as-rechercheV-in-excel/m-p/321435#M92915</link>
      <description>&lt;P&gt;hello every body,&lt;BR /&gt;
my question is:&lt;/P&gt;

&lt;P&gt;If i have 2 csv files in Splunk&lt;BR /&gt;
One with the list of servers&lt;BR /&gt;
The other antivirus coverage of servers&lt;BR /&gt;
Is it possible to cross the files in order to find the servers that have antivirus cover among those of my list&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 08:27:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/cross-files-csv-as-to-as-rechercheV-in-excel/m-p/321435#M92915</guid>
      <dc:creator>jamfal</dc:creator>
      <dc:date>2017-05-30T08:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: cross files csv as to as rechercheV in excel</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/cross-files-csv-as-to-as-rechercheV-in-excel/m-p/321436#M92916</link>
      <description>&lt;P&gt;You can join based on the servername and then check the antivirus coverage -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup serverlist.csv | table servername | lookup server_antivirusdetails.csv servername OUTPUT antivirus_version | fillnull value="NA" antivirus_version
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here servername is common field between 2 lookups. Places where there are no match, the antivirus_version will be set as "NA"&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 08:31:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/cross-files-csv-as-to-as-rechercheV-in-excel/m-p/321436#M92916</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2017-05-30T08:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: cross files csv as to as rechercheV in excel</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/cross-files-csv-as-to-as-rechercheV-in-excel/m-p/321437#M92917</link>
      <description>&lt;P&gt;Assuming both files use &lt;CODE&gt;host&lt;/CODE&gt; as the field name, search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputcsv AntiVirusResults | eval source="AV"
| appendpipe [| inputcsv ServerList | eval source="SL" ]
| stats dc(source) AS numSources values(source) AS sources BY host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then add this to show hits:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search numSources=2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or add this to show misses:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search sources="SL" AND numSources=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 May 2017 17:00:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/cross-files-csv-as-to-as-rechercheV-in-excel/m-p/321437#M92917</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-05-30T17:00:45Z</dc:date>
    </item>
  </channel>
</rss>

