<?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: search field for many values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/search-field-for-many-values/m-p/57612#M14049</link>
    <description>&lt;P&gt;Perhaps you can investigate the inputlookup / outputlookup methods of creating and maintaining a lookup file, e.g.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;|inputlookup file | modify stuff | outputlookup file&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Inputlookup"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Inputlookup&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Outputlookup"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Outputlookup&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/"&gt;http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2013 08:46:00 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-09-09T08:46:00Z</dc:date>
    <item>
      <title>search field for many values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-field-for-many-values/m-p/57611#M14048</link>
      <description>&lt;P&gt;I need a search which returns events where a specific field contains any one of many values.  Typically this is done with the "OR" logical operator.  However, I need to search for thousands of values which cannot be expressed using a regular expression.&lt;/P&gt;

&lt;P&gt;I've seen discussions of using "lookups" for this.  However, if I understand correctly, that would require administrative access to the Splunk server (which I don't have) to configure the lookup file and later update it.&lt;/P&gt;

&lt;P&gt;I've also seen suggestions to write a script to generate a massive search string with all the "OR"s in it.  I'd like to investigate other solutions before adopting that idea.&lt;/P&gt;

&lt;P&gt;Ideally, I'd like to provide the list of field values to match in a file.&lt;/P&gt;

&lt;P&gt;Is there a way?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;Larry&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 05:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-field-for-many-values/m-p/57611#M14048</guid>
      <dc:creator>ltruesda</dc:creator>
      <dc:date>2013-09-09T05:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: search field for many values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-field-for-many-values/m-p/57612#M14049</link>
      <description>&lt;P&gt;Perhaps you can investigate the inputlookup / outputlookup methods of creating and maintaining a lookup file, e.g.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;|inputlookup file | modify stuff | outputlookup file&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Inputlookup"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Inputlookup&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Outputlookup"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Outputlookup&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/"&gt;http://blogs.splunk.com/2011/01/11/maintaining-state-of-the-union/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 08:46:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-field-for-many-values/m-p/57612#M14049</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-09-09T08:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: search field for many values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-field-for-many-values/m-p/57613#M14050</link>
      <description>&lt;P&gt;Hello, thanks for your suggestion, but as mentioned in my question I have looked into lookups and I believe it would require administrative access to the Splunk server to configure (e.g. edit .conf file and upload lookup file to appropriate folder) and maintain (e.g. replace lookup file when the search terms change)  the lookup files.  This is something I do not have and cannot get.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2013 13:03:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-field-for-many-values/m-p/57613#M14050</guid>
      <dc:creator>ltruesda</dc:creator>
      <dc:date>2013-09-09T13:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: search field for many values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-field-for-many-values/m-p/57614#M14051</link>
      <description>&lt;P&gt;You don't need administrative access to the Splunk server to create a lookup. You can use the GUI.&lt;BR /&gt;
The instructions are in the Splunk Tutorial &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/Tutorial/Usefieldlookups"&gt;here&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2013 10:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-field-for-many-values/m-p/57614#M14051</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-09-17T10:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: search field for many values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-field-for-many-values/m-p/57615#M14052</link>
      <description>&lt;P&gt;I confirmed that it is true that you can provision the lookup_file via manager. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I ended up using "... | lookup lookup_file.csv user_id_field as user | search tag_field = 1" where the lookup_file has two columns, user_id_field and tag_field".  And each row contains a userid and a '1'.  &lt;/P&gt;

&lt;P&gt;Works great.  Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:49:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-field-for-many-values/m-p/57615#M14052</guid>
      <dc:creator>ltruesda</dc:creator>
      <dc:date>2020-09-28T14:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: search field for many values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/search-field-for-many-values/m-p/57616#M14053</link>
      <description>&lt;P&gt;splunk tutorial link is broken&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 16:11:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/search-field-for-many-values/m-p/57616#M14053</guid>
      <dc:creator>stevenacasey</dc:creator>
      <dc:date>2016-03-31T16:11:30Z</dc:date>
    </item>
  </channel>
</rss>

