<?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 Errors using Splunk for *NIX in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Errors-using-Splunk-for-NIX/m-p/193569#M19918</link>
    <description>&lt;P&gt;I'm seeing the following red bar UI errors (also in the log files) when launching the Splunk for *NIX app version 5.0.1 with splunk version 5.0.2, &lt;A href="http://splunk/en-US/app/splunk_app_for_nix/home:" target="_blank"&gt;http://splunk/en-US/app/splunk_app_for_nix/home:&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'SearchParser': Could not find macro 'home_cpu_idle' that takes 2 arguments. Expecting stanza name 'home_cpu_idle(2)'.  
Error in 'SearchParser': Could not find macro 'home_disk_used' that takes 2 arguments. Expecting stanza name 'home_disk_used(2)'. 
Error in 'SearchParser': Could not find macro 'unix_noop' that takes 0 arguments. Expecting stanza name 'unix_noop'.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In digging around, I'm confused. I found the three macros, but they are in the SA-nix app, not the splunk_app_for_nix app.  Looking at each of the macros in Manager, they are all owned by the SA-nix app, and not shared with any other app.  I've got permission to view them (I'm logged in as a user in the admin user role), but from everything I know about permissions, this is not going to work.&lt;/P&gt;

&lt;P&gt;How is the Splunk for *NIX app supposed to see the macros in the SA-nix app when they aren't shared?&lt;/P&gt;

&lt;P&gt;The weirdest part about this is that when I installed splunk_app_for_nix and the SA-nix app on my Search Head, this worked for a while, as I remember being very frustrated trying to get data out of the UI, but all of the back end bits worked.&lt;/P&gt;

&lt;P&gt;Any suggestions welcomed.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:10:19 GMT</pubDate>
    <dc:creator>davidpaper</dc:creator>
    <dc:date>2020-09-28T16:10:19Z</dc:date>
    <item>
      <title>Errors using Splunk for *NIX</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Errors-using-Splunk-for-NIX/m-p/193569#M19918</link>
      <description>&lt;P&gt;I'm seeing the following red bar UI errors (also in the log files) when launching the Splunk for *NIX app version 5.0.1 with splunk version 5.0.2, &lt;A href="http://splunk/en-US/app/splunk_app_for_nix/home:" target="_blank"&gt;http://splunk/en-US/app/splunk_app_for_nix/home:&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'SearchParser': Could not find macro 'home_cpu_idle' that takes 2 arguments. Expecting stanza name 'home_cpu_idle(2)'.  
Error in 'SearchParser': Could not find macro 'home_disk_used' that takes 2 arguments. Expecting stanza name 'home_disk_used(2)'. 
Error in 'SearchParser': Could not find macro 'unix_noop' that takes 0 arguments. Expecting stanza name 'unix_noop'.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In digging around, I'm confused. I found the three macros, but they are in the SA-nix app, not the splunk_app_for_nix app.  Looking at each of the macros in Manager, they are all owned by the SA-nix app, and not shared with any other app.  I've got permission to view them (I'm logged in as a user in the admin user role), but from everything I know about permissions, this is not going to work.&lt;/P&gt;

&lt;P&gt;How is the Splunk for *NIX app supposed to see the macros in the SA-nix app when they aren't shared?&lt;/P&gt;

&lt;P&gt;The weirdest part about this is that when I installed splunk_app_for_nix and the SA-nix app on my Search Head, this worked for a while, as I remember being very frustrated trying to get data out of the UI, but all of the back end bits worked.&lt;/P&gt;

&lt;P&gt;Any suggestions welcomed.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:10:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Errors-using-Splunk-for-NIX/m-p/193569#M19918</guid>
      <dc:creator>davidpaper</dc:creator>
      <dc:date>2020-09-28T16:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Errors using Splunk for *NIX</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Errors-using-Splunk-for-NIX/m-p/193570#M19919</link>
      <description>&lt;P&gt;Did you read through the docs on how to configure the app?  &lt;A href="http://docs.splunk.com/Documentation/UnixApp/latest/User/First-timeconfiguration"&gt;http://docs.splunk.com/Documentation/UnixApp/latest/User/First-timeconfiguration&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Once you do this, these errors should go away.  If you are in a distributed environment, which I sense that you are, it may take a minute or two for those messages to go away &lt;/P&gt;

&lt;P&gt;To clarify, the default sharing on SA-nix is global - see metadata/default.meta:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Application-level permissions

[]
access = read : [ * ], write : [ admin ]
export = system
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Perhaps someone has overriden the default?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2014 16:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Errors-using-Splunk-for-NIX/m-p/193570#M19919</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2014-03-19T16:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Errors using Splunk for *NIX</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Errors-using-Splunk-for-NIX/m-p/193571#M19920</link>
      <description>&lt;P&gt;I did go through the first time config.  This is a distributed, clustered, SHP-enabled environment.&lt;/P&gt;

&lt;P&gt;[splunk]:stmocprvsh1:/splunk/etc/apps/SA-nix/metadata$ more default.meta &lt;BR /&gt;
 # Application-level permissions&lt;/P&gt;

&lt;P&gt;[]&lt;BR /&gt;
 access = read : [ * ], write : [ admin ]&lt;BR /&gt;
 export = system&lt;/P&gt;

&lt;P&gt;[lookups]&lt;BR /&gt;
 export = system&lt;/P&gt;

&lt;P&gt;The entries in default.meta look correct.  Nothing has been overwritten as far as I can tell.&lt;/P&gt;

&lt;P&gt;Looking in the manager -&amp;gt; All configurations, I can't find any of the 3 macros that show up in the error messages.  I see them (manually) in the SA-nix/default/macros.conf, but Splunk doesn't can't.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2014 15:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Errors-using-Splunk-for-NIX/m-p/193571#M19920</guid>
      <dc:creator>davidpaper</dc:creator>
      <dc:date>2014-04-18T15:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Errors using Splunk for *NIX</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Errors-using-Splunk-for-NIX/m-p/193572#M19921</link>
      <description>&lt;P&gt;There is something going on here that is unusual, but I don't have enough information to understand what it is.  Can you please open a support case?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Apr 2014 16:08:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Errors-using-Splunk-for-NIX/m-p/193572#M19921</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2014-04-18T16:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Errors using Splunk for *NIX</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Errors-using-Splunk-for-NIX/m-p/193573#M19922</link>
      <description>&lt;P&gt;Already done, and fixed.  Turns out that the install itself appears to be correct in all instances we could audit, but permissions were just not getting picked up.  &lt;/P&gt;

&lt;P&gt;To fix: stopped both SHs, removed all 3 apps (SA-nix, Splunk_TA, Splunk for nix app), and untarred a fresh copy.  Restarted Splunk SH, went through SA-nix first time setup, then Splunk for NIX first time setup, and permissions were correct, and I could see the past 3 months of data in the os index.&lt;/P&gt;

&lt;P&gt;Thanks to BrianO for verifying the original setup looked right, and the suggestion for the "nuke from orbit" and re-install via tar.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2014 13:40:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Errors-using-Splunk-for-NIX/m-p/193573#M19922</guid>
      <dc:creator>davidpaper</dc:creator>
      <dc:date>2014-04-21T13:40:12Z</dc:date>
    </item>
  </channel>
</rss>

