<?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: How can I filter data in search-time from a generated csv file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-data-in-search-time-from-a-generated-csv-file/m-p/259856#M49869</link>
    <description>&lt;P&gt;The &lt;CODE&gt;inputlookup&lt;/CODE&gt; command is no different than using &lt;CODE&gt;index=myindex sourcetype=mysourcetype&lt;/CODE&gt;; you have all the same filtering options with additional pipelines of commands.  The only difference is that you must do a &lt;CODE&gt;| search&lt;/CODE&gt; first.  So you can do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup | search NOT name="adm*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 25 Jan 2017 16:31:57 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-01-25T16:31:57Z</dc:date>
    <item>
      <title>How can I filter data in search-time from a generated csv file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-data-in-search-time-from-a-generated-csv-file/m-p/259855#M49868</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a csv file, generated each day from a  Powershell script under the Splunk app lookups directory.&lt;BR /&gt;
I use the info in those records with the &lt;CODE&gt;| inputlookup&lt;/CODE&gt; command in many other searches. The columns are name, surname and domain of the internal company network.&lt;/P&gt;

&lt;P&gt;Is there a way to filter (in search time) only some of those records present in the .csv file (maybe in a wildcard fashion - for example: eliminate those which name start with adm*)?&lt;/P&gt;

&lt;P&gt;Thanks for any suggestion,&lt;BR /&gt;
Skender&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 16:17:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-data-in-search-time-from-a-generated-csv-file/m-p/259855#M49868</guid>
      <dc:creator>skender27</dc:creator>
      <dc:date>2017-01-25T16:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I filter data in search-time from a generated csv file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-data-in-search-time-from-a-generated-csv-file/m-p/259856#M49869</link>
      <description>&lt;P&gt;The &lt;CODE&gt;inputlookup&lt;/CODE&gt; command is no different than using &lt;CODE&gt;index=myindex sourcetype=mysourcetype&lt;/CODE&gt;; you have all the same filtering options with additional pipelines of commands.  The only difference is that you must do a &lt;CODE&gt;| search&lt;/CODE&gt; first.  So you can do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup | search NOT name="adm*"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jan 2017 16:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-data-in-search-time-from-a-generated-csv-file/m-p/259856#M49869</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-01-25T16:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can I filter data in search-time from a generated csv file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-data-in-search-time-from-a-generated-csv-file/m-p/259857#M49870</link>
      <description>&lt;P&gt;If I understand your request, is this sort of what you're looking for?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup testlookup1 | search NOT user=adm*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or for just the user field&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|inputlookup testlookup1 | fields + user | search NOT user=adm*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(whatever your field is)&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2384i8FA0955F8CD8C514/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2385iD6DC7367F1E4A4D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 16:32:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-filter-data-in-search-time-from-a-generated-csv-file/m-p/259857#M49870</guid>
      <dc:creator>adayton20</dc:creator>
      <dc:date>2017-01-25T16:32:44Z</dc:date>
    </item>
  </channel>
</rss>

