Splunk Search

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

Moogz
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)

sowings
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.

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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...