<?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: forwarded logs not deleting after processing in Expedition Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352839#M3012</link>
    <description>&lt;P&gt;Even you received the traffic log form Panorama, The ML setting you to need to check is on the FW device not on Panorama, you will make sure the ML setting is set to delete the file after processing.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 20:48:21 GMT</pubDate>
    <dc:creator>lychiang</dc:creator>
    <dc:date>2020-09-29T20:48:21Z</dc:date>
    <item>
      <title>forwarded logs not deleting after processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/350391#M2974</link>
      <description>&lt;P&gt;I have Panorama configured as a device in Expedition. Devices managed by Panorama have been imported/retrieved into the device within Expedition. Some stuff I've done/is configured:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;crontab is set to fix permissions on imported logs daily at midnight. It runs successfully and resulting files look like they have the right permissions:&lt;BR /&gt;-rw-rw---- 1 expedition www-data 184G Sep 17 17:56 PA5220_traffic.....&lt;/LI&gt;
&lt;LI&gt;My daily scheduled log processing is set for 4AM&lt;/LI&gt;
&lt;LI&gt;The M.Learning component in the device (Panorama) is set to "auto process CSV log files" and appears to do this. I've been able to analyze rules in a project using this info.&lt;/LI&gt;
&lt;LI&gt;I have "after process: Delete" configured, but it doesn't appear to work&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I've also got another thread out there regarding the "process Enabled Files" option that is greyed out in this context. The only way I can process these logs is by letting the daily processing schedule catch up to them, or manually changing that schedule to be 2 min from now, for instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In any case, the server quickly fills up with space as logs aren't being deleted after processing. My thinking is that logs are uploaded at 1600, ACL changed at 0000, then auto processing kicking off at 0400. So far it seems to all work except the deleting part. Any tips?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 16:05:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/350391#M2974</guid>
      <dc:creator>BenKnorr2</dc:creator>
      <dc:date>2020-09-18T16:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: forwarded logs not deleting after processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/350404#M2975</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/114413"&gt;@BenKnorr2&lt;/a&gt;&amp;nbsp;, this might be permission issue , due to the www-data is not able to delete the files, assume your log stored in /PALogs folder, please do the following:&lt;/P&gt;
&lt;P&gt;Looks like form your screenshot, it already showing the correct owner and group.&amp;nbsp; If&amp;nbsp; it's not correct , just do the below command to change it:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;sudo chown expedition.www-data /PALogs&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;and later&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;sudo chmod -r 770 /PALogs&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This will make expedition user the owner of the folder, and www-data group (which contains www-data user) the group owner of the folder. After, www-data group will have readwrite rights into the folder, and expedition will have write-read-execute rights. 770 give write rights to www-data, in order to be able to compress the files after processing or delete them (those are options when processing csv files in Expedition)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 16:40:24 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/350404#M2975</guid>
      <dc:creator>lychiang</dc:creator>
      <dc:date>2020-09-18T16:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: forwarded logs not deleting after processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/350418#M2976</link>
      <description>&lt;P&gt;in my case, /PAlogs is where the parquet files are stored. /home/expedition/logs is where I've got my FW exporting logs to. FWIW, I have this exact same setup in my lab and everything is the same except I have a FW configured as a device instead of Panorama.&lt;/P&gt;
&lt;P&gt;I'm not looking to delete parquet files, just the massive exported traffic logs from my FW.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 16:41:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/350418#M2976</guid>
      <dc:creator>BenKnorr2</dc:creator>
      <dc:date>2020-09-18T16:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: forwarded logs not deleting after processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/350432#M2977</link>
      <description>&lt;P&gt;Then you will verify the permission and owner for the folder&amp;nbsp;&lt;SPAN&gt;/home/expedition/logs&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 16:45:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/350432#M2977</guid>
      <dc:creator>lychiang</dc:creator>
      <dc:date>2020-09-18T16:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: forwarded logs not deleting after processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/350462#M2978</link>
      <description>&lt;P&gt;Sorry, wasn't clear earlier. I put the ACL fix script shown in Settings/M.Learning in the "CSV log file rights" section. It lists slightly erroneous (one extra *) but otherwise very helpful line to put into crontab to have a built-in Expedition script fix ACLs on filesystem so logs can be deleted after processing. This part&amp;nbsp;&lt;EM&gt;does work.&lt;/EM&gt; An unprocessed imported log file that has expedition:expedition ownership changes to 660 expedition:www-data after running the script. This part has been consistent.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 16:54:41 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/350462#M2978</guid>
      <dc:creator>BenKnorr2</dc:creator>
      <dc:date>2020-09-18T16:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: forwarded logs not deleting after processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352527#M2998</link>
      <description>&lt;P&gt;Is this a Panorama thing? The permissions on these files look correct, but the auto processing phase never deletes them.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:47:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352527#M2998</guid>
      <dc:creator>BenKnorr2</dc:creator>
      <dc:date>2020-09-28T15:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: forwarded logs not deleting after processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352528#M2999</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/114413"&gt;@BenKnorr2&lt;/a&gt;&amp;nbsp;Have you tried the below commands already?&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;sudo chown expedition.www-data&lt;SPAN&gt;/home/expedition/logs&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;and later&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;sudo chmod -r 770&lt;SPAN&gt;/home/expedition/logs&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:50:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352528#M2999</guid>
      <dc:creator>lychiang</dc:creator>
      <dc:date>2020-09-28T15:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: forwarded logs not deleting after processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352573#M3001</link>
      <description>&lt;P&gt;Have you verified that the device that reported those logs has the After Process action set to delete?&lt;/P&gt;
&lt;P&gt;Maybe you had it for the Panorama, but the device says something else, and we will take action based on what the device states.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:41:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352573#M3001</guid>
      <dc:creator>dgildelaig</dc:creator>
      <dc:date>2020-09-28T16:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: forwarded logs not deleting after processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352797#M3009</link>
      <description>&lt;P&gt;Thanks for the response. Unfortunately, no, permissions have been consistent and what appears to be correct since beginning. In Expedition GUI / Settings /M.Learning, there is a blurb at the bottom for CSV and file rights:&lt;/P&gt;
&lt;PRE&gt;Scheduled Log Export from FW devices may export your log files as expedition owned files.&lt;BR /&gt;In case you want to activate delete after processing the CSV logs, make sure that www-data has write rights over the files.&lt;BR /&gt;You can achieve it by adding the following into your root cron (the following example will verify the file rights every day at 00:05 am):&lt;BR /&gt;00 05 * * * * php /var/www/html/OS/spark/scripts/changeCSVLogRights.php&lt;/PRE&gt;
&lt;P&gt;I entered this in my crontab (syntax shown above looks incorrect though; has an extra *) and it fixes permissions for 660 / chown www-data:expedition for any logs in a project that are set to be autoprocessed but haven't been processed yet. This does work. This step helped in my lab environment to get autoprocessing+deleteafter to succeed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For what it's worth, here are two log files: one with 770 was set immediately after it was uploaded to expedition prior to processing. The other was set using the built-in script that runs at 00:05 nightly via cron. Both files have since been "auto processed" with "delete after processing" checked, but no deletion occurred after processing. Just showing that 770/660 seem to have no impact on problem.&lt;/P&gt;
&lt;PRE&gt;expedition@Expedition:~/logs$ ls -lah&lt;BR /&gt;total 317G&lt;BR /&gt;drwxrwxr-x 2 expedition expedition 4.0K Sep 28 15:56 .&lt;BR /&gt;drwxr-xr-x 5 expedition expedition 4.0K Sep 10 08:41 ..&lt;BR /&gt;-rwxrwx--- 1 expedition www-data 157G Sep 27 17:39 PA5250-PRI_traffic_2020_09_27_last_calendar_day.csv&lt;BR /&gt;-rw-rw---- 1 expedition www-data 161G Sep 28 17:50 PA5250-PRI_traffic_2020_09_28_last_calendar_day.csv&lt;/PRE&gt;
&lt;P&gt;My lab environment has a FW sending logs via SCP to expedition, and the device in expedition is for the firewall itself w/no panorama. "process enabled files" button in device tab works for manual processing (have another thread on this board about this part). Logs weren't getting deleted until I put the php script in crontab, now it works good. &amp;nbsp;My prod environment has FW sending logs via SCP to expedition, but the device is panorama with managed devices/config imported to it. "process enabled files" is greyed out and has never been usable, for what its worth, and deleting logs after auto processing has never worked.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:32:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352797#M3009</guid>
      <dc:creator>BenKnorr2</dc:creator>
      <dc:date>2020-09-29T18:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: forwarded logs not deleting after processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352800#M3010</link>
      <description>&lt;P&gt;For Panorama managed FW, you will need to check the FW ML setting, go to the "Device" tab, click on the "show all devices" icon as on the right upper corner as shown in the below screenshot, and find the FW that's matching your traffic logs, check the ML setting on that firewall.&amp;nbsp;&amp;nbsp;&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="Save.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/27993i169F696D88263CF0/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Save.png" alt="Save.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:47:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352800#M3010</guid>
      <dc:creator>lychiang</dc:creator>
      <dc:date>2020-09-29T18:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: forwarded logs not deleting after processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352838#M3011</link>
      <description>&lt;P&gt;I only have Panorama set in devices, but the managed firewalls have been retrieved within it. Goal is to take rules from panorama device groups and use ML on traffic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no place to set "after processing" action for the firewall themselves in expedition when panorama is the device in question. Am I missing something there and this isn't supported in the first place?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:45:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352838#M3011</guid>
      <dc:creator>BenKnorr2</dc:creator>
      <dc:date>2020-09-29T20:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: forwarded logs not deleting after processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352839#M3012</link>
      <description>&lt;P&gt;Even you received the traffic log form Panorama, The ML setting you to need to check is on the FW device not on Panorama, you will make sure the ML setting is set to delete the file after processing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:48:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/forwarded-logs-not-deleting-after-processing/m-p/352839#M3012</guid>
      <dc:creator>lychiang</dc:creator>
      <dc:date>2020-09-29T20:48:21Z</dc:date>
    </item>
  </channel>
</rss>

