<?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: inputlookup(csv) with Distinct_count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-with-Distinct-count/m-p/468008#M131772</link>
    <description>&lt;P&gt;Thanks for your reply, but the above query is not taking the inputs from the file&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 22:21:13 GMT</pubDate>
    <dc:creator>priya777</dc:creator>
    <dc:date>2020-04-08T22:21:13Z</dc:date>
    <item>
      <title>inputlookup(csv) with Distinct_count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-with-Distinct-count/m-p/468005#M131769</link>
      <description>&lt;P&gt;Hi There!&lt;BR /&gt;
I have created a list of 2000 names in a CSV file. I am trying to get the phone numbers of these 2000 people using the below query,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*** event=contact [ | inputlookup names.csv | fields names ] | stats dc(phoneNumber) by names | fillnull value=0 names
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When I do the distinct count I only get the names who are registered, but I need the remaining names - dc(phone_numbers) as 0, when I run the query. &lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 19:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-with-Distinct-count/m-p/468005#M131769</guid>
      <dc:creator>priya777</dc:creator>
      <dc:date>2020-04-07T19:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup(csv) with Distinct_count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-with-Distinct-count/m-p/468006#M131770</link>
      <description>&lt;P&gt;@DalJeanis Please suggest&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 20:02:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-with-Distinct-count/m-p/468006#M131770</guid>
      <dc:creator>priya777</dc:creator>
      <dc:date>2020-04-07T20:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup(csv) with Distinct_count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-with-Distinct-count/m-p/468007#M131771</link>
      <description>&lt;P&gt;Your query filters &lt;CODE&gt;index=*** event=contact&lt;/CODE&gt; with &lt;CODE&gt;names&lt;/CODE&gt; exist in lookup file. Use &lt;CODE&gt;OR&lt;/CODE&gt; in the search like below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=*** event=contact OR [ | inputlookup names.csv | fields names ] | stats dc(phoneNumber) by names | fillnull value=0 names
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Apr 2020 05:11:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-with-Distinct-count/m-p/468007#M131771</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-04-08T05:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup(csv) with Distinct_count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-with-Distinct-count/m-p/468008#M131772</link>
      <description>&lt;P&gt;Thanks for your reply, but the above query is not taking the inputs from the file&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 22:21:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-with-Distinct-count/m-p/468008#M131772</guid>
      <dc:creator>priya777</dc:creator>
      <dc:date>2020-04-08T22:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: inputlookup(csv) with Distinct_count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-with-Distinct-count/m-p/468009#M131773</link>
      <description>&lt;PRE&gt;&lt;CODE&gt; index=yours event=contact 
| inputlookup append=t names.csv 
| stats dc(phoneNumber) by names 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;names.csv:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;names
johndoo
hoobar
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How about this. If your csv is not this format, fix it.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 22:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/inputlookup-csv-with-Distinct-count/m-p/468009#M131773</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-08T22:43:04Z</dc:date>
    </item>
  </channel>
</rss>

