<?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 we perform a lookup substitution at index time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/341083#M101129</link>
    <description>&lt;P&gt;Very kind @mayurr98 - thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Mar 2018 00:33:45 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2018-03-12T00:33:45Z</dc:date>
    <item>
      <title>How can we perform a lookup substitution at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/341078#M101124</link>
      <description>&lt;P&gt;How can we perform a lookup substitution at index time? We have a defined lookup and at index time we would like to replace certain values with the values in the lookup table.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 23:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/341078#M101124</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-03-07T23:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can we perform a lookup substitution at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/341079#M101125</link>
      <description>&lt;P&gt;Hi, by specifying &lt;CODE&gt;OUTPUT&lt;/CODE&gt; as part of your lookup command, it will overwrite fields in your results with the value from the lookup if the  fields match. e.g:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_* | stats count by status | lookup status_desc status OUTPUT description
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this example, any previous &lt;CODE&gt;description&lt;/CODE&gt; field will be overwritten.&lt;/P&gt;

&lt;P&gt;However, if the field in your event is called &lt;CODE&gt;myDescription&lt;/CODE&gt; then you would use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_* | stats count by status | lookup status_desc status OUTPUT description AS myDescription
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 23:42:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/341079#M101125</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2018-03-07T23:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can we perform a lookup substitution at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/341080#M101126</link>
      <description>&lt;P&gt;Great, but we would like to do it at index time ; -)&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 23:44:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/341080#M101126</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-03-07T23:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can we perform a lookup substitution at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/341081#M101127</link>
      <description>&lt;P&gt;Whoops - Should have read more carefully! Sorry but that is a bit trickier. Its not possible to do a traditional lookup. You're best bet would probably be a time-based lookup so your lookup at searchtime is accurate to the time the data was indexed...it depends on your specific case.&lt;BR /&gt;
Sorry I couldnt help further!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 23:51:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/341081#M101127</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2018-03-07T23:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: How can we perform a lookup substitution at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/341082#M101128</link>
      <description>&lt;P&gt;hello @ddrillic&lt;/P&gt;

&lt;P&gt;You probably may have found out by now but just in case .. Lookups cannot be done at index time but only at search time.&lt;BR /&gt;
Refer this answers that I just found out&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/8087/kicking-off-lookup-at-index-time.html"&gt;https://answers.splunk.com/answers/8087/kicking-off-lookup-at-index-time.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/13723/large-table-lookup-at-index-time-vs-search-time-tradeoffs.html"&gt;https://answers.splunk.com/answers/13723/large-table-lookup-at-index-time-vs-search-time-tradeoffs.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Well, you can configure &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.2/Knowledge/DefineanautomaticlookupinSplunkWeb"&gt;automatic lookups&lt;/A&gt;.&lt;BR /&gt;
let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 07:58:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/341082#M101128</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-03-08T07:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can we perform a lookup substitution at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/341083#M101129</link>
      <description>&lt;P&gt;Very kind @mayurr98 - thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 00:33:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/341083#M101129</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2018-03-12T00:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can we perform a lookup substitution at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/549370#M155874</link>
      <description>&lt;P&gt;I was looking to do the same thing, and noticed this doc page was created for 8.1.x.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.3/Data/IngestLookups" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.3/Data/IngestLookups&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Maybe something to look at?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 19:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-we-perform-a-lookup-substitution-at-index-time/m-p/549370#M155874</guid>
      <dc:creator>ejwade</dc:creator>
      <dc:date>2021-04-26T19:59:43Z</dc:date>
    </item>
  </channel>
</rss>

