Palo Alto Networks Knowledgebase: Tips & Tricks: Forward traffic logs to a syslog server
Tips & Tricks: Forward traffic logs to a syslog server
Created On 02/07/19 23:51 PM - Last Updated 02/07/19 23:52 PM
Need to forward traffic logs from the Palo Alto Networks firewall to a syslog server? For reporting, legal, or practical storage reasons, you may need to get these logs off the firewall onto a syslog server. Follow our step-by-step instructions for success. Forwarding traffic logs to a syslog server involves four major steps:
Create a syslog server profile.
Create a log forwarding profile.
Use the log forwarding profile in your security policy.
Commit the changes.
Step 1. Create a syslog server profile
1. Go to Device > Server Profiles > Syslog
2. Name : Enter a name for the syslog profile (up to 31 characters). The name is case-sensitive and must be unique. Use only letters, numbers, spaces, hyphens, and underscores.
3. Name : Click Add and enter a name for the syslog server (up to 31 characters). The name is case-sensitive and must be unique. Use only letters, numbers, spaces, hyphens, and underscores.
Syslog Server: Enter the IP address of the syslog server.
Transport: Select whether to transport the syslog messages over UDP, TCP, or SSL.
Port: Enter the port number of the syslog server (the standard port for UDP is 514; the standard port for SSL is 6514; for TCP you must specify a port number).
Format: Specify the syslog format to use: BSD (the default) or IETF.
Facility: Select one of the Syslog standard values. Select the value that maps to how your Syslog server uses the facility field to manage messages. For details on the facility field, see RFC 3164 (BSD format) or RFC 5424(IETF format).
Your syslog server profile will now be created, as shown in the example below:
To facilitate the integration with external log parsing systems, the firewall allows you to customize the log format; it also allows you to add custom Key: Value attribute pairs. Custom formats can be configured under
Device > Server Profiles > Syslog > Syslog Server Profile > Custom Log Format:
Name: Enter a profile name (up to 31 characters). This name appears in the list of log forwarding profiles when defining security policies. The name is case-sensitive and must be unique. Use only letters, numbers, spaces, hyphens, and underscores.
Syslog: Select the syslog server profile to specify additional destinations where the traffic log entries are sent.
Click 'OK' to confirm your configuration.
Your Log Forwarding Profile is now created, as shown in the following example:
Step 3. Use the log forwarding profile in your security policy
Go to Policies > Security
Select the rule for which the log forwarding needs to be applied (Any Allow) in the following example:
Next, go to the Actions tab, select Log Forwarding Profile from the dropdown, and click OK when you are happy with your configuration:
After clicking OK, you will notice the forwarding icon in the 'Options' column of your security rule:
Step 4. Don't forget to commit your changes when you're finished.