All Apps and Add-ons

Palo Alto Networks App for Splunk - "All Incidents" dashboard bug?

_smp_
Builder

I believe I found a logic flaw in the All Incidents dashboard in the Palo Alto Networks App for Splunk.  The flaw seems to affect two panels:

  • Endpoint Incidents Per Hour
  • Aperture SaaS Incidents Per Hour

I noticed that those two panels continuously refresh, even though I'm not refreshing the page. These two panels both have condition logic:

 

<condition match="'job.resultCount' == 0">
    <set token="results-3">1</set>
</condition>
<condition match="'job.resultCount' != 0 AND 'results-3' == 1">
    <set token="results-3">0</set>
</condition>

 

The first time the panel is loaded and there are no matching events in the data model, then the 'job.resultCount' == 0 condition matches and results-3 is set to 1. When the panel refreshes, | makeresults creates at least one output row, which means the second condition will always match. So the panel refreshes and the cycle starts over.

Instead of 'job.resultCount' != 0, I think the second condition needs to be 'job.resultCount' > 1. If there are matching no events in the data model then | makeresults will still produce a single output row, but the second condition ('job.resultCount' > 1) will no longer match which stops the repeat cycle. If there IS an event in the datamodel, there will be at least two rows of output, which also stops the cycle.

I think there is a problem here, but I'm not sure if I have it exactly right. It seems to stop the cycle after I changed != to >. What do you think?

Labels (1)
0 Karma
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!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...