<?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 Display Input Lookup Data in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Display-Input-Lookup-Data/m-p/363956#M107445</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;How to display lookup fields along with search fields.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;search Query&lt;/STRONG&gt;&lt;BR /&gt;
index=AA* host=&lt;EM&gt;ABC&lt;/EM&gt; source=/tmp/processMonitor* instance=&lt;EM&gt;XYZ&lt;/EM&gt; apphome =***  | lookup boxdata host | search box_live_state="LIVE" | stats latest(state) as Status by host, apphome, instance, appmon | table  host apphome instance appmon box_live_state&lt;/P&gt;

&lt;P&gt;Iam not getting anything under box_live_state, Is thr any way to display ??&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;boxdata&lt;/STRONG&gt;&lt;BR /&gt;
box_env box_live_state box_location box_model box_os box_patch box_rack box_rfb box_ver host&lt;BR /&gt;
QA NOTLIVE ABC-DE HPXYZQ RHAS 1234 324 lxmcp 6.9 hostny01&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Expecting output&lt;/STRONG&gt; &lt;BR /&gt;
host apphome instance appmon Status  box_live_state&lt;BR /&gt;
ABC  /xy/abc   abc  1  down  Live&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Harsha&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 15:19:01 GMT</pubDate>
    <dc:creator>harsush</dc:creator>
    <dc:date>2020-09-29T15:19:01Z</dc:date>
    <item>
      <title>Display Input Lookup Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Input-Lookup-Data/m-p/363956#M107445</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;How to display lookup fields along with search fields.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;search Query&lt;/STRONG&gt;&lt;BR /&gt;
index=AA* host=&lt;EM&gt;ABC&lt;/EM&gt; source=/tmp/processMonitor* instance=&lt;EM&gt;XYZ&lt;/EM&gt; apphome =***  | lookup boxdata host | search box_live_state="LIVE" | stats latest(state) as Status by host, apphome, instance, appmon | table  host apphome instance appmon box_live_state&lt;/P&gt;

&lt;P&gt;Iam not getting anything under box_live_state, Is thr any way to display ??&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;boxdata&lt;/STRONG&gt;&lt;BR /&gt;
box_env box_live_state box_location box_model box_os box_patch box_rack box_rfb box_ver host&lt;BR /&gt;
QA NOTLIVE ABC-DE HPXYZQ RHAS 1234 324 lxmcp 6.9 hostny01&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Expecting output&lt;/STRONG&gt; &lt;BR /&gt;
host apphome instance appmon Status  box_live_state&lt;BR /&gt;
ABC  /xy/abc   abc  1  down  Live&lt;/P&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Harsha&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:19:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Input-Lookup-Data/m-p/363956#M107445</guid>
      <dc:creator>harsush</dc:creator>
      <dc:date>2020-09-29T15:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Display Input Lookup Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Input-Lookup-Data/m-p/363957#M107446</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/212940"&gt;@harsush&lt;/a&gt;, please reverse the lookup pipe which should be after stats command. In your current query the stats command is removing enriched field/s from lookup including box_live_state.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=AA* host=ABC source=/tmp/processMonitor* instance=XYZ apphome =*** 
| stats latest(state) as Status by host, apphome, instance, appmon 
| lookup boxdata host 
| search box_live_state="LIVE"
| table host apphome instance appmon box_live_state
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also as per performance consideration, lookup should be performed after transforming commands ensuring records are reduced prior to correlating with the lookup file: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Lookup#Optimizing_your_lookup_search" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Lookup#Optimizing_your_lookup_search&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:21:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Input-Lookup-Data/m-p/363957#M107446</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T15:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Display Input Lookup Data</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Display-Input-Lookup-Data/m-p/363958#M107447</link>
      <description>&lt;P&gt;@harsush, please confirm whether your issue is resolved.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 09:37:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Display-Input-Lookup-Data/m-p/363958#M107447</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-29T09:37:26Z</dc:date>
    </item>
  </channel>
</rss>

