All Apps and Add-ons

Why am I receiving 500 error on the dashboard configuring Splunk App for Unix and Linux?

a212830
Champion

hI,

I installed the unix app, and now when I try to configure it, I get a 500 error in the dashboard. Looking at the logs, I see the following:

07-25-2014 22:22:48.724 -0400 ERROR ExecProcessor - message from "python /searchPool/etc/apps/splunk_app_for_nix/bin/scripted_inputs/dependency_manager.py"   File "/se
archPool/etc/apps/splunk_app_for_nix/bin/scripted_inputs/dependency_manager.py", line 44, in <module>
07-25-2014 22:22:48.724 -0400 ERROR ExecProcessor - message from "python /searchPool/etc/apps/splunk_app_for_nix/bin/scripted_inputs/dependency_manager.py"     version
 = en[APP_NAME]['version']
07-25-2014 22:22:48.724 -0400 ERROR ExecProcessor - message from "python /searchPool/etc/apps/splunk_app_for_nix/bin/scripted_inputs/dependency_manager.py"   File "/ap
ps/splunk/lib/python2.7/UserDict.py", line 23, in __getitem__
07-25-2014 22:22:48.724 -0400 ERROR ExecProcessor - message from "python /searchPool/etc/apps/splunk_app_for_nix/bin/scripted_inputs/dependency_manager.py"     raise K
eyError(key)
07-25-2014 22:22:48.724 -0400 ERROR ExecProcessor - message from "python /searchPool/etc/apps/splunk_app_for_nix/bin/scripted_inputs/dependency_manager.py" KeyError: '
splunk_app_for_nix'

Any suggestions?

1 Solution

araitz
Splunk Employee
Splunk Employee

I would be willing to bet that you are using Splunk 6.1.x and that you have more than 30 apps installed (maybe you have Enterprise Security).

You can change the following line in splunk_app_for_nix/bin/scripted_inputs/dependency_manager.py:

     en = splunk.entity.getEntities('/apps/local', sessionKey=token)

To the following:

     en = splunk.entity.getEntities('/apps/local', count=0, sessionKey=token)

And things should work as expected. Alternatively, you can disable the scripted input in question, as long as you make sure that SA-nix and Splunk_TA_nix are copied from the app's install directory to your instance's $SPLUNK_HOME/etc/apps. In either case, you'll neeed to restart Splunk after you are done.

View solution in original post

araitz
Splunk Employee
Splunk Employee

I would be willing to bet that you are using Splunk 6.1.x and that you have more than 30 apps installed (maybe you have Enterprise Security).

You can change the following line in splunk_app_for_nix/bin/scripted_inputs/dependency_manager.py:

     en = splunk.entity.getEntities('/apps/local', sessionKey=token)

To the following:

     en = splunk.entity.getEntities('/apps/local', count=0, sessionKey=token)

And things should work as expected. Alternatively, you can disable the scripted input in question, as long as you make sure that SA-nix and Splunk_TA_nix are copied from the app's install directory to your instance's $SPLUNK_HOME/etc/apps. In either case, you'll neeed to restart Splunk after you are done.

araitz
Splunk Employee
Splunk Employee

It tells Splunk to get all entities (in this case, the list of all apps installed on your system). The *nix app depends on the presence of the *nix TA (technology add-on) and SA (supporting add-on), and the above mentioned script is responsible for making sure they are installed.

0 Karma

a212830
Champion

Thanks. What does that do?

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...