Splunk Search

PARSER: Applying intentions failed This search cannot be parsed when parse_only is set to true

Splunk Employee
Splunk Employee

Hey All,

I have a search that displays a timechart correctly in the search area but not when I'm trying to display it on a form.

The purpose of the search is to display a timechart from two searches. The subsearch is meant to bring back 1 value that is used as a constant value (kind of like an avg line).

sourcetype=source1 VName="$input1$" LKPA="$input2$" OR LKPZ="$input2$" | fields modID | eval tsInServ = [search sourcetype=source2 SRCA=$input2$ OR SRCZ=$input2$ Status="blah" | stats dc(Entity_ID) AS query] | timechart span=1mon dc(modID),max(tsInServ)

Again, works in the search area, but not when i put it in a form/dashboard - I get the following error and the chart shows up blank

PARSER: Applying intentions failed This search cannot be parsed when parse_only is set to true

Any help would be appreciated!

Tags (3)

Splunk Employee
Splunk Employee

I too, suffered from the same issue. I've had an extensive dialog with application developers at Splunk, and I finally have this to report.

The core of the issue is that client-side Javascript in the (simple or advanced XML) page is attempting to validate your search string before token substitution, and that parse is failing. You're not even getting to the point of kicking off the search because the Intention system says "no way".

The workaround I was given was to convert the view to advanced XML (if it was in simple XML), and then convert it to using Sideview utils. Personally, for maintainability and ease of use, I'd prefer to stay in simple XML, but Sideview simplifies working with advanced XML quite a bit, and most notably, doesn't suffer from this parsing issue.

Good luck.

Get Updates on the Splunk Community!

SplunkTrust | Where Are They Now - Michael Uschmann

The Background Five years ago, Splunk published several videos showcasing members of the SplunkTrust to share ...

Admin Your Splunk Cloud, Your Way

Join us to maximize different techniques to best tune Splunk Cloud. In this Tech Enablement, you will get ...

Cloud Platform | Discontinuing support for TLS version 1.0 and 1.1

Overview Transport Layer Security (TLS) is a security communications protocol that lets two computers, ...