<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article ML/RE- Split /PALogs per serial# of firewall in the case of forwarding logs from Panorama in Expedition Articles</title>
    <link>https://live.paloaltonetworks.com/t5/expedition-articles/ml-re-split-palogs-per-serial-of-firewall-in-the-case-of/ta-p/533003</link>
    <description>&lt;DIV class="lia-message-template-symptoms-zone"&gt;
&lt;H2&gt;UseCase&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the ML or RE case, where Expedition is configured as syslog server , and you are forwarding traffic logs from Panorama to Expedition,&amp;nbsp; by default, the logs will be saved using Panorama_IP . The solution below provides steps on how to&amp;nbsp; split the logs per serial# of the firewall.&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-template-diagnosis-zone"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-template-solution-zone"&gt;
&lt;H2&gt;Solution&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Split the logs per FW/Serial number by following below steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 1.&lt;/STRONG&gt; &lt;STRONG&gt;Edit your rsyslog.conf file&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replace below line:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;$template DynaTrafficLog,"/PALogs/%FROMHOST-IP%/%HOSTNAME%&lt;EM&gt;traffic&lt;/EM&gt;%$YEAR%&lt;EM&gt;%$MONTH%&lt;/EM&gt;%$DAY%_last_calendar_day.csv"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;to below ones:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;set $!SERIAL = field($msg,",",2);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$template DynaTrafficLog,"/PALogs/%FROMHOST-IP%/%$!SERIAL%/%$!SERIAL%&lt;EM&gt;%HOSTNAME%_traffic&lt;/EM&gt;%$YEAR%&lt;EM&gt;%$MONTH%&lt;/EM&gt;%$DAY%_last_calendar_day.csv"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The intention of the above configuration is to create a folder with your Panorama IP and subfolders for each FW/Serial number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 2. Restart the syslog service&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Issue below command:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;service rsyslog restart&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your reference, next Expedition releases will include a set of rsyslog configuration example files on the path /var/www/html/OS/rsyslog folder .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 02 Mar 2023 18:40:29 GMT</pubDate>
    <dc:creator>lychiang</dc:creator>
    <dc:date>2023-03-02T18:40:29Z</dc:date>
    <item>
      <title>ML/RE- Split /PALogs per serial# of firewall in the case of forwarding logs from Panorama</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/ml-re-split-palogs-per-serial-of-firewall-in-the-case-of/ta-p/533003</link>
      <description>&lt;DIV class="lia-message-template-symptoms-zone"&gt;
&lt;H2&gt;UseCase&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the ML or RE case, where Expedition is configured as syslog server , and you are forwarding traffic logs from Panorama to Expedition,&amp;nbsp; by default, the logs will be saved using Panorama_IP . The solution below provides steps on how to&amp;nbsp; split the logs per serial# of the firewall.&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-template-diagnosis-zone"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV class="lia-message-template-solution-zone"&gt;
&lt;H2&gt;Solution&lt;/H2&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Split the logs per FW/Serial number by following below steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 1.&lt;/STRONG&gt; &lt;STRONG&gt;Edit your rsyslog.conf file&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replace below line:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;$template DynaTrafficLog,"/PALogs/%FROMHOST-IP%/%HOSTNAME%&lt;EM&gt;traffic&lt;/EM&gt;%$YEAR%&lt;EM&gt;%$MONTH%&lt;/EM&gt;%$DAY%_last_calendar_day.csv"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;to below ones:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;set $!SERIAL = field($msg,",",2);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;$template DynaTrafficLog,"/PALogs/%FROMHOST-IP%/%$!SERIAL%/%$!SERIAL%&lt;EM&gt;%HOSTNAME%_traffic&lt;/EM&gt;%$YEAR%&lt;EM&gt;%$MONTH%&lt;/EM&gt;%$DAY%_last_calendar_day.csv"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The intention of the above configuration is to create a folder with your Panorama IP and subfolders for each FW/Serial number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Step 2. Restart the syslog service&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Issue below command:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;service rsyslog restart&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your reference, next Expedition releases will include a set of rsyslog configuration example files on the path /var/www/html/OS/rsyslog folder .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Mar 2023 18:40:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/ml-re-split-palogs-per-serial-of-firewall-in-the-case-of/ta-p/533003</guid>
      <dc:creator>lychiang</dc:creator>
      <dc:date>2023-03-02T18:40:29Z</dc:date>
    </item>
  </channel>
</rss>

