<?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 CSV file as input to search in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Using-CSV-file-as-input-to-search/m-p/449623#M78116</link>
    <description>&lt;P&gt;Thanks for the help, but I actually figured it out. I had the following query;&lt;/P&gt;

&lt;P&gt;index="wineventlog" Source_Workstation=* [|inputlookup test.csv | fields "Workstation Name" | rename "Workstation Name" as Source_Workstation] | table Source_Workstation, _time, Logon_Account | dedup Source_Workstation&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:27:38 GMT</pubDate>
    <dc:creator>insomniacnerd94</dc:creator>
    <dc:date>2020-09-30T00:27:38Z</dc:date>
    <item>
      <title>Using CSV file as input to search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-CSV-file-as-input-to-search/m-p/449621#M78114</link>
      <description>&lt;P&gt;I am trying to use a list from a CSV file to query results for that list, but I only get a result from the first row. &lt;/P&gt;

&lt;P&gt;The data looks like such;&lt;BR /&gt;
workstation_1&lt;BR /&gt;
workstation_2&lt;BR /&gt;
workstation_3&lt;/P&gt;

&lt;P&gt;The query looks like such;&lt;BR /&gt;
index="wineventlog" Source_Workstation=* [inputlookup test.csv | fields "Workstation Name" | rename "Workstation Name" as search] | table Source_Workstation, _time, Logon_Account | dedup Source_Workstation&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:27:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-CSV-file-as-input-to-search/m-p/449621#M78114</guid>
      <dc:creator>insomniacnerd94</dc:creator>
      <dc:date>2020-09-30T00:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using CSV file as input to search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-CSV-file-as-input-to-search/m-p/449622#M78115</link>
      <description>&lt;P&gt;Few mistakes in your search&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;You need to put a &lt;CODE&gt;|&lt;/CODE&gt; character before &lt;CODE&gt;inputlookup&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;CODE&gt;index="wineventlog" Source_Workstation=* [|inputlookup test.csv | fields "Workstation Name"  ...&lt;/CODE&gt;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;What is the name of the field in WinEventLog where you want WorkStation Name to be compared with? I don't think "Source_Workstation" is the field name. Assuming  hostname is the field you want to compare the search would look like..&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="wineventlog" [|inputlookup test.csv | fields "Workstation Name" | rename "Workstation Name" as Source_Workstation] | stats count by Source_Workstation, _time, Logon_Account
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 May 2019 21:37:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-CSV-file-as-input-to-search/m-p/449622#M78115</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-08T21:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using CSV file as input to search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-CSV-file-as-input-to-search/m-p/449623#M78116</link>
      <description>&lt;P&gt;Thanks for the help, but I actually figured it out. I had the following query;&lt;/P&gt;

&lt;P&gt;index="wineventlog" Source_Workstation=* [|inputlookup test.csv | fields "Workstation Name" | rename "Workstation Name" as Source_Workstation] | table Source_Workstation, _time, Logon_Account | dedup Source_Workstation&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:27:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-CSV-file-as-input-to-search/m-p/449623#M78116</guid>
      <dc:creator>insomniacnerd94</dc:creator>
      <dc:date>2020-09-30T00:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using CSV file as input to search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-CSV-file-as-input-to-search/m-p/449624#M78117</link>
      <description>&lt;P&gt;great. So the above search which I provided above, should also return similar results and would be faster as it directly uses stats count&lt;/P&gt;

&lt;P&gt;Please upvote/accept, if it helped you&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 14:01:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-CSV-file-as-input-to-search/m-p/449624#M78117</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2019-05-09T14:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using CSV file as input to search</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Using-CSV-file-as-input-to-search/m-p/449625#M78118</link>
      <description>&lt;P&gt;Be sure to click &lt;CODE&gt;Accept&lt;/CODE&gt; on this answer or post your own and accept that one.  Do one or the other to close this question.&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2019 04:59:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Using-CSV-file-as-input-to-search/m-p/449625#M78118</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-12T04:59:38Z</dc:date>
    </item>
  </channel>
</rss>

