<?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 Lookup error in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-error/m-p/130435#M35546</link>
    <description>&lt;P&gt;We are collecting log files from various components servers. &lt;BR /&gt;
Eg. Collecting logs from 3 hosts application A [ This is the lookup I have used]&lt;BR /&gt;
Host1 /app/sdf ; /app/cdf ; /app/ghf &lt;BR /&gt;
Host2 /app/sdf ; /app/cdf ; /app/ghf &lt;BR /&gt;
Host3 /app/sdf ; /app/cdf ; /app/ghf ; /app/wer/* [ie. /app/wer/1.log,/app/wer/2.log, /app/wer/2.log, so on]&lt;/P&gt;

&lt;P&gt;For unique logs I have no problem I got the query through this,&lt;/P&gt;

&lt;P&gt;index=* appid=$appid$ host=$host$ |rename comment as $earliest$ | stats count by host,source | eval type="current" | table host,source,type | append [|inputlookup source.csv | search appid=$appid$ | search host=$host$ | makemv delim=";" source | eval type="existing" | table appid,host,source,type] | stats values(type) as type by host,source | where mvcount(type) =1 | eval reason=if(type="current","Newlogfile","Missingfile") | table host,reason | search reason="Missingfile"&lt;/P&gt;

&lt;P&gt;I am having two dropdowns for inputs appid and host. It goes fine while dealing with unique files &lt;BR /&gt;
i.e For (/app/sdf ; /app/cdf ; /app/ghf ) it matches correctly and return the results.&lt;BR /&gt;
But for logs using wildcard, Im confused &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; [/app/wer/&lt;EM&gt;]&lt;BR /&gt;
How to match (/app/wer/&lt;/EM&gt;) with lookup values?&lt;/P&gt;

&lt;P&gt;Kindly suggest some solutions&lt;/P&gt;</description>
    <pubDate>Thu, 18 Sep 2014 14:03:16 GMT</pubDate>
    <dc:creator>splunkn</dc:creator>
    <dc:date>2014-09-18T14:03:16Z</dc:date>
    <item>
      <title>Lookup error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-error/m-p/130435#M35546</link>
      <description>&lt;P&gt;We are collecting log files from various components servers. &lt;BR /&gt;
Eg. Collecting logs from 3 hosts application A [ This is the lookup I have used]&lt;BR /&gt;
Host1 /app/sdf ; /app/cdf ; /app/ghf &lt;BR /&gt;
Host2 /app/sdf ; /app/cdf ; /app/ghf &lt;BR /&gt;
Host3 /app/sdf ; /app/cdf ; /app/ghf ; /app/wer/* [ie. /app/wer/1.log,/app/wer/2.log, /app/wer/2.log, so on]&lt;/P&gt;

&lt;P&gt;For unique logs I have no problem I got the query through this,&lt;/P&gt;

&lt;P&gt;index=* appid=$appid$ host=$host$ |rename comment as $earliest$ | stats count by host,source | eval type="current" | table host,source,type | append [|inputlookup source.csv | search appid=$appid$ | search host=$host$ | makemv delim=";" source | eval type="existing" | table appid,host,source,type] | stats values(type) as type by host,source | where mvcount(type) =1 | eval reason=if(type="current","Newlogfile","Missingfile") | table host,reason | search reason="Missingfile"&lt;/P&gt;

&lt;P&gt;I am having two dropdowns for inputs appid and host. It goes fine while dealing with unique files &lt;BR /&gt;
i.e For (/app/sdf ; /app/cdf ; /app/ghf ) it matches correctly and return the results.&lt;BR /&gt;
But for logs using wildcard, Im confused &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; [/app/wer/&lt;EM&gt;]&lt;BR /&gt;
How to match (/app/wer/&lt;/EM&gt;) with lookup values?&lt;/P&gt;

&lt;P&gt;Kindly suggest some solutions&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2014 14:03:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-error/m-p/130435#M35546</guid>
      <dc:creator>splunkn</dc:creator>
      <dc:date>2014-09-18T14:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-error/m-p/130436#M35547</link>
      <description>&lt;P&gt;The error suggests your lookup is all input fields and no output fields, so there'd be nothing for Splunk to do. Make sure you use &lt;CODE&gt;OUTPUT&lt;/CODE&gt; or &lt;CODE&gt;OUTPUTNEW&lt;/CODE&gt; to split the input fields from the output fields in your &lt;CODE&gt;LOOKUP-foo&lt;/CODE&gt; definition.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Knowledge/Addfieldsfromexternaldatasources#Set_up_a_fields_lookup_based_on_a_static_file"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Knowledge/Addfieldsfromexternaldatasources#Set_up_a_fields_lookup_based_on_a_static_file&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2014 14:15:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-error/m-p/130436#M35547</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-09-18T14:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup error</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-error/m-p/130437#M35548</link>
      <description>&lt;P&gt;Martin, thanks for your response. Still am not getting what I want. I have edited the question now&lt;BR /&gt;
Could you please suggest? Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 19 Sep 2014 08:04:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-error/m-p/130437#M35548</guid>
      <dc:creator>splunkn</dc:creator>
      <dc:date>2014-09-19T08:04:46Z</dc:date>
    </item>
  </channel>
</rss>

