All Apps and Add-ons

Palo Alto for Splunk error.

flanny16
New Member

Here is what I am trying to accomplish. We have our wireless controllers forwarding syslog information to splunk, this works quite well.
I now want Splunk to forward part of the syslog message(user name and IP address) to our Palo Alto panorama virtual machine(10.0.2.10) which in turn will send it off to our Palo Alto firewall.
When I run the following search in the Palo Alto app I get an error

index=main sourcetype=syslog rename "user account" AS addruser | rename "IP address" AS addrip | panupdate device=”10.0.2.10” devicegroup=”PA-grp”

the error I get is --> External search command 'panupdate' returned error code -1.

can someone add any insight.

thanks in advance,
GMF

0 Karma

Valky
Explorer

I got the same and I figured out why (Unfortunatly i still got a problem). You need to manage your fields. First click on field transformation an add respectivly addrip and adduser with the good regex to extract them from your log session. Then go to your field extraction and do the same. Now you can do your search. Be carefull you need to have a unique IP address for each user. If your search is empty with no user or no Ip address you will have the same error.
But When I check on the Panorama, I got IP adress for both name and adress. I am still locking for why but I have realy have no idea cause all configuration is Ok....

0 Karma

monzy
Communicator

hey GMF,

did you configure a user name and password for your panorama when you installed the app ? also, there might be more info about this error in $SPLUNK_HOME/var/log/splunk/python.log.

0 Karma

monzy
Communicator

yes. the rename is required. i would suggest that you ensure that your syslog source events your wireless controller have fields called "user account" and "IP address". if they are called something different, you will have to specify those fields.

0 Karma

flanny16
New Member

your are correct. it was a typo
here is the command
index=main sourcetype=syslog | rename "user account" AS addruser | rename "IP address" AS addrip | panupdate device=”10.0.2.10” devicegroup=”PA-grp”

Our wireless controller detects "user account" and 'IP Address" I was told the rename is required to translate into something the panupdate will understand. Is this correct?

/GMF

0 Karma

monzy
Communicator

i think there is an unintended rename in the search command you posted. snipping up to the first pipe:

index=main sourcetype=syslog rename "user account" AS addruser |

your initial search is essentially looking for the term 'rename' in the log event itself. this is probably an unlikely occurrence in the log event. if so, the search doesn't really return anything. as a result, we don't really pass anything to panupdate.

that said, i agree, that panupdate should emit a better error message.

0 Karma

flanny16
New Member

Yes, I followed instructions on here and have added the username and password, thanks.
The full error is too large to post here but in a nutshell I have added quotes ' at the beginning and the end.

'URLError: '

thanks, great app regardless.

0 Karma