<?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>topic Re: Log exporting is failing. :( in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/log-exporting-is-failing/m-p/521197#M108017</link>
    <description>&lt;P&gt;Did you get this?&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2022 20:00:33 GMT</pubDate>
    <dc:creator>Nikki_Moss</dc:creator>
    <dc:date>2022-11-14T20:00:33Z</dc:date>
    <item>
      <title>Log exporting is failing. :(</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/log-exporting-is-failing/m-p/64615#M38709</link>
      <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Have export of traffic /threat/url etc set up on log export&lt;BR /&gt;All setup to use SCP.&lt;BR /&gt;Target linux server is setup correctly.&lt;BR /&gt;Test SCP server connection works correctly (see attach word doc)&lt;BR /&gt;Job fails with an error in system log :&lt;BR /&gt;&lt;BR /&gt;Failed exporting data log via ssh (last-calendar-day) to 192.168.252.61. Permission denied, please try again..' )&lt;BR /&gt;&lt;BR /&gt;Also tested everything is OK by running export from command line , this works , see log below:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;****@sd061(active)&amp;gt; scp export log traffic to data-paloalto-prd@192.168.252.61:/home/data-paloalto-prd/sd060logs/sd060-20150914x start-time equal 2015/09/11@00:00:00 end-time equal 2015/09/14@10:09:00&lt;BR /&gt;(container-tag: export container-tag: log container-tag: traffic leaf-tag: to value: data-paloalto-prd@192.168.252.61:/home/data-paloalto-prd/sd060logs/sd060-20150914x container-tag: start-time leaf-tag: equal value: 2015/09/11@00:00:00 pop-tag: container-tag: end-time leaf-tag: equal value: 2015/09/14@10:09:00 pop-tag: pop-tag: pop-tag: pop-tag:)&lt;BR /&gt;((eol-matched: . #t) (cli-handler: . scp-handler) (context-inserted-at-end-p: . #f))&lt;BR /&gt;/usr/local/bin/pan_logquery&amp;nbsp; -L 3600 -b -t traffic -t1 1441926000 -t2 1442221740 2&amp;gt; /dev/null | /usr/bin/ssh 'data-paloalto-prd@192.168.252.61' ' cat &amp;gt; /home/data-paloalto-prd/sd060logs/sd060-20150914x '&lt;BR /&gt;data-paloalto-prd@192.168.252.61's password:&lt;BR /&gt;Marking log as exported successfully...&lt;BR /&gt;/usr/local/bin/pan_slog -t 1 -s 1 -o 'Succeed to export traffic log (2015/09/11@00:00:00 - 2015/09/14@10:09:00)'&lt;BR /&gt;/usr/local/bin/pan_logquery&amp;nbsp; -L 3600 -b -t traffic -t1 1441926000 -t2 1442221740 -m&amp;nbsp; 1&amp;gt; /dev/null&lt;BR /&gt;'cfg.reportd.enable': NO_MATCHES&lt;BR /&gt;2015-09-14 10:41:26.518 +0100 Error:&amp;nbsp; pan_logdb_update_file_construct(pan_logdb.c:474): update file: /opt/panlogs/logdb/traffic/1/20150914/pan.0000000000.log.actionflags.updatefile exists but of wrong size: 800891 expected size: 809485&lt;BR /&gt;/usr/local/bin/pan_slog -t 1 -s 1 -o 'Succeed to mark traffic log as exported'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May you please help?&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 15 Sep 2015 13:27:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/log-exporting-is-failing/m-p/64615#M38709</guid>
      <dc:creator>Rboehme</dc:creator>
      <dc:date>2015-09-15T13:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Log exporting is failing. :(</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/log-exporting-is-failing/m-p/64643#M38725</link>
      <description>&lt;P&gt;Hi...Please contact Support so that we can troubleshoot the SCP issue that you are experiencing. &amp;nbsp;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2015 19:19:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/log-exporting-is-failing/m-p/64643#M38725</guid>
      <dc:creator>rmonvon</dc:creator>
      <dc:date>2015-09-15T19:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Log exporting is failing. :(</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/log-exporting-is-failing/m-p/461123#M102135</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I know this is a very old thread, but did anyone get around to fix the permission issue?&lt;/P&gt;&lt;P&gt;I am trying to run a manual scp export config-bundle from the CLI but it is also giving Permission Denied although I am issuing this command as a superuser.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 11:22:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/log-exporting-is-failing/m-p/461123#M102135</guid>
      <dc:creator>echahine</dc:creator>
      <dc:date>2022-01-26T11:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Log exporting is failing. :(</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/log-exporting-is-failing/m-p/521197#M108017</link>
      <description>&lt;P&gt;Did you get this?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 20:00:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/log-exporting-is-failing/m-p/521197#M108017</guid>
      <dc:creator>Nikki_Moss</dc:creator>
      <dc:date>2022-11-14T20:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Log exporting is failing. :(</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/log-exporting-is-failing/m-p/998796#M122592</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just had the same/similar issue and came across this thread, this was the &lt;STRONG&gt;solution&lt;/STRONG&gt; for me:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Environment&lt;/STRONG&gt;: Panorama managed Highly Available NGFWs. Scheduled Config Export via SCP working from Panorama, Scheduled Log Export not working from managed NGFWs.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Error&lt;/STRONG&gt;: 'Failed exporting traffic log via ssh (last-calendar-day) to &amp;lt;target&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the firewall CLI a manual SCP works fine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;scp export log traffic to &amp;lt;user&amp;gt;@&amp;lt;target&amp;gt;:/home/logman/palogs/&amp;lt;firewall&amp;gt;-20241218x start-time equal 2024/12/18@07:00:00 end-time equal 2024/09/18@09:00:00&lt;/SPAN&gt;&lt;SPAN data-teams="true"&gt;&lt;BR /&gt;&amp;lt;user&amp;gt;@&amp;lt;target&amp;gt;'s password: &amp;lt;password&amp;gt;&lt;BR /&gt;Marking log as exported successfully...&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Solution:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;From TechNote: &lt;A href="https://docs.paloaltonetworks.com/pan-os/10-2/pan-os-web-interface-help/device/device-scheduled-log-export" target="_blank"&gt;https://docs.paloaltonetworks.com/pan-os/10-2/pan-os-web-interface-help/device/device-scheduled-log-export&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"If you use a Panorama template to configure the log export schedule, you must perform this step after committing the template configuration to the firewalls. After the template commit, log in to each firewall, open the log export schedule, and click Test SCP server connection."&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I logged on to each individual firewall which had received the configuration from Panorama and executed the Test SCP server connection, which sure enough &lt;STRONG&gt;I had to accept the RSA key of the target ssh server&lt;/STRONG&gt; &lt;EM&gt;(note: I had already accepted the RSA key using the CLI of each firewall, I didn't realize I also had to do this on the webgui.)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;My SSH logs are now exporting properly again. &lt;EM&gt;Note that if you have HA firewalls, you will need to do the webgui RSA acceptance on each individual device.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Accept RSA Key on Each Firewall Device" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/64768iEDCFC40E1666F7DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2024-12-18_09-42-33.png" alt="Accept RSA Key on Each Firewall Device" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Accept RSA Key on Each Firewall Device&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 15:29:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/log-exporting-is-failing/m-p/998796#M122592</guid>
      <dc:creator>bchaborek</dc:creator>
      <dc:date>2024-12-18T15:29:13Z</dc:date>
    </item>
  </channel>
</rss>

