Splunk Cloud Platform

panuserupdate returned error

Yusuf
Observer

Hello Everyone,

I am just bringing up splunk within our environment, so a lot of functions are still new.

I am trying to use my windows event data to update users ID on panorama, however, running the below query in my es environment returns the error : External search command 'panuserupdate' returned error code 2. Script output = "ERROR Unable to get apikey from firewall: local variable 'username' referenced before assignment ".

The Query

index=wineventlog host=xxxxxx
| mvexpand Security_ID
| mvexpand Source_Network_Address
| dedup Security_ID Source_Network_Address
| search Security_ID!="NULL SID"
| rename Security_ID as user
| rename Source_Network_Address as src_ip
| panuserupdate panorama=x.x.x.x serial=000000000000
| fields user src_ip

Brief overview of my data ingestion: Panorama syslog is ingested to splunk cloud through Heavy forwarder. Palo Alto Add on for Splunk is installed on both HF and Splunk Cloud also, but no data is showing on the app. Every data is 0 0.  Also I do have a user account in Panorama with api permissions.

Labels (1)
0 Karma
Get Updates on the Splunk Community!

Splunk Enterprise Security: Your Command Center for PCI DSS Compliance

Every security professional knows the drill. The PCI DSS audit is approaching, and suddenly everyone's asking ...

Developer Spotlight with Guilhem Marchand

From Splunk Engineer to Founder: The Journey Behind TrackMe    After spending over 12 years working full time ...

Cisco Catalyst Center Meets Splunk ITSI: From 'Payments Are Down' to Root Cause in ...

The Problem: When Networks and Services Don't Talk Payment systems fail at a retail location. Customers are ...