Splunk Dev

Unexpected application behavior

DTERM
Contributor

I've developed a custom splunk application and I'm seeing some extremely unexpected behavior with the application.

I've installed this application under three different Splunk instances in my development environment. It works fine with no issues.

Now when installed in the production servers, the application does not work. Specifically, the menu does not show up. The default.xml file exists and is accurate, the views exist and are accurate as well.

I'm seeing the following error in the error logs

WARNING [4ed920a766175a9bd0] view:397 - An unknown view name "View-4" is referenced in the navigation definition for "myapp".

What could be the problem?

TIA.

Tags (1)
0 Karma
1 Solution

Drainy
Champion

In your default.xml you apparently have a reference to View-4. Literally you should just need to remove that reference, alternatively it could be a permissions option on a view.

Most of these sorts of errors are people encountering silly errors on their test setups, they fix them but then completely forget about these small fixes when the app is deployed.

View solution in original post

BobM
Builder

This is most likely because you have created or made a change to a view using the UI and not made it public. This means it is hidden in your etc/users/usernme/appname/local/data/ui/views folder. If you see View-4.xml there, copy it into a view folder in your app directory.

0 Karma

Drainy
Champion

You don't need to award points as well unless you feel its a really really good answer. Basically you want to tick to accept an answer so its identified as helpful. Above the tick you will see two arrows and a zero. If you click on the arrow up it will award the person bonus points, this method doesn't cost you points. If you award points it gives your points to them

0 Karma

DTERM
Contributor

Where does the points awarded come to play? Should I be granting points per answer?

0 Karma

Drainy
Champion

Also, if you have a look through your past questions you have looooaads that haven't got an accepted answer, do the community a favor and accept all the questions that have helped - this improves the quality of search results if someone finds one of your questions 🙂

0 Karma

Drainy
Champion

In your default.xml you apparently have a reference to View-4. Literally you should just need to remove that reference, alternatively it could be a permissions option on a view.

Most of these sorts of errors are people encountering silly errors on their test setups, they fix them but then completely forget about these small fixes when the app is deployed.

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...