This widget could not be displayed.
  • Dashboards & Visualizations

    error in standard setup.xml example

    carasso
    Splunk Employee
    Splunk Employee
    1. Make a new app in 5.0.3.
    2. Put setup.xml in your app's /default directory, using the setup.xml shown in the example: http://docs.splunk.com/Documentation/Splunk/5.0.4/AdvancedDev/SetupExampleCredentials
    3. Restart splunk.
    4. Go to launcher and click on nice notice "1 add-on awaiting set up: myapp"
    5. Click on it:

      500 Internal Server Error
      
      Return to Splunk home page
      KeyError: 'elements'
      
      This page was linked to from http://localhost:8500/en-US/app/launcher/home.
      

    From web_service.log:

    File "/Users/dcarasso/Desktop/5.0.3/splunk/lib/python2.7/site-packages/splunk/appserver/mrsparkle/controllers/admin.py", line 1435, in listEntities
    self.flattenElements(uiHelper['elements'], uiHelper_elements)
    KeyError: 'elements'
    
    1 Solution

    carasso
    Splunk Employee
    Splunk Employee

    Found the problem, after a couple of hours wasted.
    The docs said to "Create a block in setup.xml".
    It failed to mention that the "block" must be wrapped in "<setup> ... </setup>"

    http://docs.splunk.com/Documentation/Splunk/5.0.4/AdvancedDev/SetupExampleCredentials

    View solution in original post

    carasso
    Splunk Employee
    Splunk Employee

    Found the problem, after a couple of hours wasted.
    The docs said to "Create a block in setup.xml".
    It failed to mention that the "block" must be wrapped in "<setup> ... </setup>"

    http://docs.splunk.com/Documentation/Splunk/5.0.4/AdvancedDev/SetupExampleCredentials

    Get Updates on the Splunk Community!

    Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

    WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...

    Industry Solutions for Supply Chain and OT, Amazon Use Cases, Plus More New Articles ...

    Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

    Enterprise Security Content Update (ESCU) | New Releases

    In November, the Splunk Threat Research Team had one release of new security content via the Enterprise ...