<?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 How to use INPUTLOOKUP command in splunk in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92212#M23784</link>
    <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I am new to splunk, I want to seach multiple keywords from a list ( .txt ) , I would like to know how it could be done using "inputlookup" command ..&lt;/P&gt;

&lt;P&gt;Please help !!&lt;/P&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Abhay&lt;/P&gt;</description>
    <pubDate>Tue, 16 Oct 2012 17:41:41 GMT</pubDate>
    <dc:creator>abhayneilam</dc:creator>
    <dc:date>2012-10-16T17:41:41Z</dc:date>
    <item>
      <title>How to use INPUTLOOKUP command in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92212#M23784</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;

&lt;P&gt;I am new to splunk, I want to seach multiple keywords from a list ( .txt ) , I would like to know how it could be done using "inputlookup" command ..&lt;/P&gt;

&lt;P&gt;Please help !!&lt;/P&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Abhay&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2012 17:41:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92212#M23784</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2012-10-16T17:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to use INPUTLOOKUP command in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92213#M23785</link>
      <description>&lt;P&gt;Splunk in general will need a .csv or a tarred version of .csv file to be used. So AFAIK it won't read data from .txt file. &lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2012 17:45:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92213#M23785</guid>
      <dc:creator>theouhuios</dc:creator>
      <dc:date>2012-10-16T17:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use INPUTLOOKUP command in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92214#M23786</link>
      <description>&lt;P&gt;ok. even if it reads from .csv , can u please give me one example how it can be used.&lt;/P&gt;

&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2012 18:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92214#M23786</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2012-10-16T18:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use INPUTLOOKUP command in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92215#M23787</link>
      <description>&lt;P&gt;The lookup file must be .csv or .csv.gz. There are some brief examples in the &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3.4/SearchReference/Inputlookup"&gt;Search Reference&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Oct 2012 18:27:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92215#M23787</guid>
      <dc:creator>ChrisG</dc:creator>
      <dc:date>2012-10-16T18:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use INPUTLOOKUP command in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92216#M23788</link>
      <description>&lt;P&gt;Assume you define a lookup table as described here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Addfieldsfromexternaldatasources"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Addfieldsfromexternaldatasources&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Further, assume that the lookup is called &lt;CODE&gt;foo&lt;/CODE&gt; and its associated file looks as such: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;status, category&lt;BR /&gt;
200, good&lt;BR /&gt;
400, bad&lt;BR /&gt;
500, worse&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;1.You can use the following search that utilizes the &lt;CODE&gt;inputlookup&lt;/CODE&gt; command to search on &lt;CODE&gt;status=values&lt;/CODE&gt;: &lt;/P&gt;

&lt;P&gt;"&lt;CODE&gt;index=my_index [| inputlookup foo | return 10 status]&lt;/CODE&gt;" &lt;/P&gt;

&lt;P&gt;which translates to :&lt;BR /&gt;&lt;BR /&gt;
"&lt;CODE&gt;index=my_index (status="200") OR (status="400") OR (status="500")&lt;/CODE&gt;"&lt;/P&gt;

&lt;P&gt;2.To search ONLY on &lt;CODE&gt;status&lt;/CODE&gt; values: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=my_index [| inputlookup foo | return 10 $status]&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;which translates to: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=my_index (200) OR (400) OR (500)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Hope this helps, &lt;/P&gt;

&lt;P&gt;d.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 04:07:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92216#M23788</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2012-10-17T04:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use INPUTLOOKUP command in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92217#M23789</link>
      <description>&lt;P&gt;But if I want to output, the no. of occurence for each Status code : like&lt;/P&gt;

&lt;P&gt;Status_Code  Count&lt;BR /&gt;
200            5&lt;BR /&gt;
300            2&lt;BR /&gt;
400            10&lt;BR /&gt;
500            1&lt;BR /&gt;
600            30&lt;/P&gt;

&lt;P&gt;Please help me regarding this&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2012 08:06:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92217#M23789</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2012-10-17T08:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use INPUTLOOKUP command in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92218#M23790</link>
      <description>&lt;P&gt;Following the example above:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index [| inputlookup foo | return 10 status] | stats count by status
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Should get you what you want.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2012 19:26:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92218#M23790</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2012-11-29T19:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to use INPUTLOOKUP command in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92219#M23791</link>
      <description>&lt;P&gt;where should we copy that file&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 07:36:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92219#M23791</guid>
      <dc:creator>rashid47010</dc:creator>
      <dc:date>2016-05-23T07:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use INPUTLOOKUP command in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92220#M23792</link>
      <description>&lt;P&gt;I have a requirement that is somewhat similar:&lt;BR /&gt;
i have a list of query strings (these are just strings not a field)&lt;BR /&gt;
(eg. Too many open files, CPU Starvation detected, java.sql.SQLException: Cannot obtain connection, thread(s) in total in the server that may be hung, Trust Association Init Error, problems occurred during startup for, OutOfMemoryError)&lt;BR /&gt;
My requirement is to save these strings in a field and then run a query like&lt;BR /&gt;
index=abc sourcetype=xyz "field_name" |stats count by field_name&lt;BR /&gt;
I have already saved these queries in a lookup csv, but unable to reference the lookup file to run the query&lt;/P&gt;

&lt;P&gt;my intention is to create a logic to use the lookup file so that in a rare event if there are any changes/addition/deletion to the query strings, no one touches the actual query, just a change/addition/deletion in the lookup file would be enough. &lt;/P&gt;

&lt;P&gt;when i run |inputlookup search_string.csv | return 15 $search_string&lt;BR /&gt;
i get the output as &lt;BR /&gt;
(Too many open files) OR (CPU Starvation detected) OR (java.sql.SQLException: Cannot obtain connection:) OR (thread(s) in total in the server that may be hung)&lt;BR /&gt;
how do i write a query so that it searches all the strings individually and later when i do a stats gives me a occurance count of each string.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:03:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92220#M23792</guid>
      <dc:creator>soumyasaha25</dc:creator>
      <dc:date>2020-09-29T17:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use INPUTLOOKUP command in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92221#M23793</link>
      <description>&lt;P&gt;Please open a new question for the above, commenting on the existing one is unlikely to obtain an appropriate answer.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2017 07:27:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/92221#M23793</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-12-04T07:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use INPUTLOOKUP command in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/544264#M154169</link>
      <description>&lt;P&gt;Hi, If i want to count the no of responseStatus, how do you achieve that.&lt;/P&gt;&lt;P&gt;For exaple I want to update the file with No of 200, 201, 203, 204, every 10 mins.&lt;/P&gt;&lt;P&gt;I want to use this data in future to plot my Charts&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 22:05:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/544264#M154169</guid>
      <dc:creator>vijaysubramania</dc:creator>
      <dc:date>2021-03-17T22:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use INPUTLOOKUP command in splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/645582#M223518</link>
      <description>&lt;UL&gt;&lt;LI&gt;Hi, I still don't understand the difference between $&amp;lt;field&amp;gt; and &amp;lt;fields&amp;gt;. Can you ELI5?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 02 Jun 2023 16:43:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-INPUTLOOKUP-command-in-splunk/m-p/645582#M223518</guid>
      <dc:creator>SubtotalAMG</dc:creator>
      <dc:date>2023-06-02T16:43:57Z</dc:date>
    </item>
  </channel>
</rss>

