<?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: Abstract Lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67211#M16793</link>
    <description>&lt;P&gt;This is from Splunk documents. I have used this to create my lookup files. (&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources&lt;/A&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Here's an example of setting up lookups for HTTP status codes in an access_combined log. In this example, you want to match the status field in your lookup table (http_status.csv) with the field in your events. Then, you add the status description and status type fields into your events.

The following is the http_status.csv file. You can put this into $SPLUNK_HOME/etc/apps/&amp;lt;app_name&amp;gt;/lookups/. If you're using this in the Search App, put the file into $SPLUNK_HOME/etc/apps/search/lookups/:

status,status_description,status_type
100,Continue,Informational
101,Switching Protocols,Informational
200,OK,Successful
201,Created,Successful
202,Accepted,Successful
203,Non-Authoritative Information,Successful
204,No Content,Successful
205,Reset Content,Successful
206,Partial Content,Successful
300,Multiple Choices,Redirection
301,Moved Permanently,Redirection
302,Found,Redirection
303,See Other,Redirection
304,Not Modified,Redirection
305,Use Proxy,Redirection
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 21 Sep 2012 17:11:22 GMT</pubDate>
    <dc:creator>Michael_Schyma1</dc:creator>
    <dc:date>2012-09-21T17:11:22Z</dc:date>
    <item>
      <title>Abstract Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67209#M16791</link>
      <description>&lt;P&gt;We have several applications that we monitor and have written dashboards for. We would like to have one lookup table for each application. The lookup table would contain data such as technical error codes, Business Error Codes and SLA for example. We are having trouble getting this schema to work using an abstract CSV file (see example below).&lt;/P&gt;

&lt;P&gt;Has anyone successfully implemented such a data structure? If so, how do you show both Technical Errors, and SLA data in the same search?&lt;/P&gt;

&lt;P&gt;Name | Value&lt;BR /&gt;&lt;BR /&gt;
TechnicalError | 123&lt;BR /&gt;&lt;BR /&gt;
TechnicalError  | 456&lt;BR /&gt;&lt;BR /&gt;
SLA | 99.9&lt;/P&gt;

&lt;P&gt;We need to search for Technical errors (linked to status code in the data). And put an SLA line on the chart as well. I've seen the post on how to do that, but how do we do both from the same lookup?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 16:40:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67209#M16791</guid>
      <dc:creator>tadb</dc:creator>
      <dc:date>2012-09-21T16:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67210#M16792</link>
      <description>&lt;P&gt;Your CSV file needs to have commas - or is this just how you are showing it here? And are the field names &lt;EM&gt;really&lt;/EM&gt; Name and Value?&lt;/P&gt;

&lt;P&gt;Why must it be only one lookup? It seems reasonable that there would be a lookup table for error codes separate from a table for SLAs.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 16:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67210#M16792</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2012-09-21T16:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67211#M16793</link>
      <description>&lt;P&gt;This is from Splunk documents. I have used this to create my lookup files. (&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Addfieldsfromexternaldatasources&lt;/A&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Here's an example of setting up lookups for HTTP status codes in an access_combined log. In this example, you want to match the status field in your lookup table (http_status.csv) with the field in your events. Then, you add the status description and status type fields into your events.

The following is the http_status.csv file. You can put this into $SPLUNK_HOME/etc/apps/&amp;lt;app_name&amp;gt;/lookups/. If you're using this in the Search App, put the file into $SPLUNK_HOME/etc/apps/search/lookups/:

status,status_description,status_type
100,Continue,Informational
101,Switching Protocols,Informational
200,OK,Successful
201,Created,Successful
202,Accepted,Successful
203,Non-Authoritative Information,Successful
204,No Content,Successful
205,Reset Content,Successful
206,Partial Content,Successful
300,Multiple Choices,Redirection
301,Moved Permanently,Redirection
302,Found,Redirection
303,See Other,Redirection
304,Not Modified,Redirection
305,Use Proxy,Redirection
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Sep 2012 17:11:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67211#M16793</guid>
      <dc:creator>Michael_Schyma1</dc:creator>
      <dc:date>2012-09-21T17:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67212#M16794</link>
      <description>&lt;P&gt;Yes, the files is comma separated. I just put the | in to make it look more like a table.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 17:24:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67212#M16794</guid>
      <dc:creator>tadb</dc:creator>
      <dc:date>2012-09-21T17:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67213#M16795</link>
      <description>&lt;P&gt;I think you are saying the same thing as the previous poster. Make two files. I would like to have a single file for each application. This file would contain both ErrorCodes and SLA information. &lt;/P&gt;

&lt;P&gt;Perhaps that is not possible with Splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Sep 2012 17:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67213#M16795</guid>
      <dc:creator>tadb</dc:creator>
      <dc:date>2012-09-21T17:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67214#M16796</link>
      <description>&lt;P&gt;Is SLA always going to be in a line chart?&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2012 02:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67214#M16796</guid>
      <dc:creator>davecroto</dc:creator>
      <dc:date>2012-09-22T02:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Abstract Lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67215#M16797</link>
      <description>&lt;P&gt;Is SLA always going to be in a line chart?  And will it be static?&lt;/P&gt;</description>
      <pubDate>Sat, 22 Sep 2012 02:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Abstract-Lookup/m-p/67215#M16797</guid>
      <dc:creator>davecroto</dc:creator>
      <dc:date>2012-09-22T02:29:07Z</dc:date>
    </item>
  </channel>
</rss>

