Is it possible to set Log Forwarding profile on ALL existing policies

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Is it possible to set Log Forwarding profile on ALL existing policies

L1 Bithead

So, we have been handed down a new requirement that ALL traffic logs must be forwarded to a new syslog server. I've created the server profile and log forwarding profile on my firewalls. My question is:

 

Is there an easy way to add the log forwarding profile to ALL of my exixting policies? Or, am I going to have to do this one policy at a time? I do use Panorama to manage all of my firewalls if that makes a difference.

 

Image 1.png

 

Thanks for your help!

2 REPLIES 2

L1 Bithead

To answer my own question:

 

It is NOT possible to set the profile on all existing policies at one time. You must add it to each policy individually. However, follow these instructions to set a default profile, and future policies will have the profile added automatically.

 

https://www.paloaltonetworks.com/documentation/61/pan-os/newfeaturesguide/management-features/defaul...

 

Not through web interface but you can export config out.

It is one single xml file.

 

Device > Setup > Operations > Export configuration version

Pick latest one from droppdown and click ok.

 

Then open this xml in your favorite text editor.

 

Find area between:

<rulebase>

<security>

<rules>

and

</rules>

</security>

 

 

 Everywhere you see "</entry>" and log-setting config does not precede:

Then replace this with:

<log-setting>Log-Forwarding-Policy</log-setting>

</entry>

 

 

 

Enterprise Architect, Security @ Cloud Carib Ltd
Palo Alto Networks certified from 2011
  • 1983 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!