- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-25-2022 06:44 AM
I'm trying to export a list of users but I need the data username login and logout can I use more than one parameter with the command?
show global-protect-gateway current-user | match "User Name"
05-25-2022 09:58 AM - edited 05-25-2022 10:00 AM
Yes you can. The PaloAlto regex is a bit non-standard and non-complete, so it gets a bit of getting used to. You need to escape your OR operator:
show global-protect-gateway current-user | match "User Name\|Login Time"
https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000PLkSCAW
05-25-2022 09:58 AM - edited 05-25-2022 10:00 AM
Yes you can. The PaloAlto regex is a bit non-standard and non-complete, so it gets a bit of getting used to. You need to escape your OR operator:
show global-protect-gateway current-user | match "User Name\|Login Time"
https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000PLkSCAW
05-25-2022 10:02 AM
this is exactly what i needed thanks
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!