<?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: AppInspect check_all_lookups_are_used too restrictive? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/485493#M193590</link>
    <description>&lt;P&gt;Great news!, I have added @kamlesh_vaghela's comment as an answer. Please accept it and upvote any posts that helped!&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2020 13:38:22 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2020-03-04T13:38:22Z</dc:date>
    <item>
      <title>AppInspect check_all_lookups_are_used too restrictive?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/485488#M193585</link>
      <description>&lt;P&gt;Except from an AppInspect report:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[ Failure Summary ]&lt;BR /&gt;
Failures will block the Cloud Vetting. They must be fixed.&lt;BR /&gt;
&lt;STRONG&gt;check_all_lookups_are_used&lt;/STRONG&gt;&lt;BR /&gt;
Lookup file my_trans.csv is not referenced in transforms.conf. File: default/transforms.conf&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;The report is correct: &lt;CODE&gt;my_trans.csv&lt;/CODE&gt; (not its real name) is &lt;EM&gt;not&lt;/EM&gt; referenced in &lt;CODE&gt;transforms.conf&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;However, &lt;CODE&gt;my_trans.csv&lt;/CODE&gt; &lt;EM&gt;is&lt;/EM&gt; referenced by a macro in the app. From the app's &lt;CODE&gt;macros.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[myapp_exclude_my_trans]
definition = NOT [|inputlookup my_trans.csv]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the description of this check in the AppInspect docs:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Check that all files in the /lookups directory are referenced in transforms.conf.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Why must files in the &lt;CODE&gt;/lookups&lt;/CODE&gt; directory be referenced in &lt;CODE&gt;transforms.conf&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;Do I really need to add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mylookuptable]
filename = my_trans.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;just to satisfy AppInspect?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:27:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/485488#M193585</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2020-09-30T04:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: AppInspect check_all_lookups_are_used too restrictive?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/485489#M193586</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/143243"&gt;@Graham_Hanningt&lt;/a&gt;on &lt;/P&gt;

&lt;P&gt;I think Yes, you should use lookup name instead of a file name in macros.conf.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[mylookuptable]&lt;BR /&gt;
 filename = my_trans.csv&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;macros.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;[myapp_exclude_my_trans]&lt;BR /&gt;
 definition = NOT [|inputlookup mylookuptable ]&lt;/P&gt;

&lt;P&gt;Can you please try it?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/485489#M193586</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2020-09-30T04:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: AppInspect check_all_lookups_are_used too restrictive?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/485490#M193587</link>
      <description>&lt;P&gt;building on @kamlesh_vaghela's answer. Best practice is not to use lookup csv files directly.&lt;BR /&gt;
The reason for this is that you can not define some of the lookup options such as match results or wildcard matching etc without using a definition. &lt;BR /&gt;
It also allows for future expansion to move to KV store without having to reconstruct your knowledge objects. &lt;BR /&gt;
This is why the process encourages you to use a lookup definition, and use that definition name in your searches and macros in place of the csv filename.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 11:41:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/485490#M193587</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-03-04T11:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: AppInspect check_all_lookups_are_used too restrictive?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/485491#M193588</link>
      <description>&lt;P&gt;@kamlesh_vaghela ,&lt;/P&gt;

&lt;P&gt;Thank you! Yes, I've tried it, and it works.&lt;/P&gt;

&lt;P&gt;I had &lt;EM&gt;completely overlooked&lt;/EM&gt; what you describe: that the &lt;CODE&gt;inputlookup&lt;/CODE&gt; command can refer to a &lt;CODE&gt;transforms.conf&lt;/CODE&gt; stanza name instead of the &lt;CODE&gt;.csv&lt;/CODE&gt; file name. That explains a lot! In particular, as @nickhillscpl points out (thank you, too!) why AppInspect checks this. I "get it" now.&lt;/P&gt;

&lt;P&gt;Thanks again to both of you for your advice, much appreciated. I'm now one step closer to that AppInspect badge.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 13:35:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/485491#M193588</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2020-03-04T13:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: AppInspect check_all_lookups_are_used too restrictive?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/485492#M193589</link>
      <description>&lt;P&gt;@kamlesh_vaghela ,&lt;/P&gt;

&lt;P&gt;If you feel like converting your comment into an answer, I'll accept it.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 13:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/485492#M193589</guid>
      <dc:creator>Graham_Hanningt</dc:creator>
      <dc:date>2020-03-04T13:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: AppInspect check_all_lookups_are_used too restrictive?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/485493#M193590</link>
      <description>&lt;P&gt;Great news!, I have added @kamlesh_vaghela's comment as an answer. Please accept it and upvote any posts that helped!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 13:38:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/485493#M193590</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-03-04T13:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: AppInspect check_all_lookups_are_used too restrictive?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/669973#M229718</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/23295"&gt;@nickhills&lt;/a&gt;&amp;nbsp;Just came across your comment, which made me chuckle, that the appinspect process&amp;nbsp;&lt;FONT color="#FF0000"&gt;encourages&amp;nbsp;&lt;FONT color="#000000"&gt;us to use definitions - while I agree with the principle of using definitions, I would say that a hard failure is not exactly an encouragement - it's a pointblank computer say NO&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smirking_face:"&gt;😏&lt;/span&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 07:38:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/AppInspect-check-all-lookups-are-used-too-restrictive/m-p/669973#M229718</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-11-28T07:38:36Z</dc:date>
    </item>
  </channel>
</rss>

