Dashboards & Visualizations

XML error defining view

Branden
Builder

I'm receiving the following error when adding a row to my dashboard View:

"Encountered the following error while trying to update: In handler 'views': Not valid XML: Web Serv..."

Here's what I added:

Weblogic message codes in the past 24 hours index=main sourcetype="weblogic" "BEA-\d\d\d\d\d\d)"|top BEA_MSG_NO limit=10000 -25h -1m

As far as I can tell, it looks okay. Am I missing something?

Thanks!

Tags (2)
0 Karma

bbingham
Builder

Can you post the xml? Normally this happens when you don't have a closing tag on a xml field. I'm curious if the \d is be prased out as a closed field that doesn't exist and causing the error.

If you can't post your xml, if you remove the \d's does the error go away?

Weblogic message codes in the past 24 hours index=main sourcetype="weblogic" "BEA-*)"|top BEA_MSG_NO limit=10000 -25h -1m

if so, then you should create a macro for your search above and use the macro name in place of the search.

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

You may have to enclose the string in a set of <[CDATA[...]]> tags, and if you use the code sample button in the editor, it will reformat pasted code so it is literally displayed.

0 Karma

Branden
Builder

I can't seem to post the XML on here. It just shows up blank...
I did double-check the closing tags and everything looks okay there. I also tried removing the \d's, but I still have the problem.
I suspect the problem is with the search string (everything else is a copy/paste from a previous row):
sourcetype="weblogic" "BEA-\d\d\d\d\d\d)"|stats count by BEA_MSG_NO

0 Karma
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, ...