<?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: Imported CSV log files not processing in Expedition Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/expedition-discussions/imported-csv-log-files-not-processing/m-p/443566#M3672</link>
    <description>&lt;P&gt;I ended up just running my own cron job (hourly) to change ownership to www-data expedition.&lt;/P&gt;
&lt;P&gt;This made jobs start running but a day behind.&lt;/P&gt;
&lt;P&gt;i.e. log in every day and there is always a csv to process even through the export completes hours before the log auto processing time.&lt;/P&gt;
&lt;P&gt;Have since upgraded to 1.2.0, rolled back to 1.1.113 due to the install issue and then forward again to 1.2.0.&lt;/P&gt;
&lt;P&gt;Logs are now processing overnight as expected.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 20:33:51 GMT</pubDate>
    <dc:creator>ToddThorne</dc:creator>
    <dc:date>2021-10-26T20:33:51Z</dc:date>
    <item>
      <title>Imported CSV log files not processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/imported-csv-log-files-not-processing/m-p/441809#M3645</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I have been having issues with logs files not showing up or being processed in ML.&lt;/P&gt;
&lt;P&gt;Set up is Expedition on 20.04, connected to panorama to pull in devices.&lt;/P&gt;
&lt;P&gt;Selected firewall set up to copy logs via SCP as my own user, which works fine.&lt;/P&gt;
&lt;P&gt;Added cronjob to update permissions on CSV files.&lt;/P&gt;
&lt;P&gt;sudo crontab -l -u root&lt;BR /&gt;[sudo] password for username:&lt;BR /&gt;# Edit this file to introduce tasks to be run by cron.&lt;BR /&gt;....Excluded....&lt;BR /&gt;# m h dom mon dow command&lt;BR /&gt;25 23 * * * php /var/www/html/OS/spark/scripts/changeCSVLogRights.php&lt;/P&gt;
&lt;P&gt;In expedition expanding the panorama device and editing the firewall, creating API access.&lt;/P&gt;
&lt;P&gt;Can pull config etc.&lt;/P&gt;
&lt;P&gt;Have used ML to create rule sets and pushed back to firewall via API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since 12/10/21 logs stopped processing.&lt;/P&gt;
&lt;P&gt;Two things changed that I can think of, scp user changed from expedition to my own.&lt;/P&gt;
&lt;P&gt;Upgraded from 1.1.111 to 1.1.112 and then 1.1.113 yesterday to see if it was fixed in the newest version..&lt;/P&gt;
&lt;P&gt;In the WebUI you don't see the logs.&lt;/P&gt;
&lt;P&gt;On the CLI can see the logs but they are still owned by my username (user and group).&lt;/P&gt;
&lt;P&gt;So the update permissions script is not working.&lt;/P&gt;
&lt;P&gt;grep chown /var/www/html/OS/spark/scripts/changeCSVLogRights.php&lt;BR /&gt;$command = "chown expedition:www-data ".$newFile."; chmod 660 ".$newFile.";";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Manually updating files to be owned by expedition and have a group of www-data&amp;nbsp; and maks of 660 as per the script doesn't seem to fix it.&lt;/P&gt;
&lt;P&gt;I had a local install running before deploying in prod and that has the file owned by www-data and group of expedition (i.e. backwards compared to the documentation and script).&lt;/P&gt;
&lt;P&gt;Changing this also does not fix it.&lt;/P&gt;
&lt;P&gt;However deleting the files under /data via Settings &amp;gt; M.Learning &amp;gt; Data analysis structures folder: DELETE Connection.parquet FILES, then searching for files under the device brings up all logs files available to be processed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are the file permissions supposed to be?&lt;/P&gt;
&lt;P&gt;Why would I need to delete the /data/ files before the logs are seen by the webui for processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$ ls -ld /PALogs/&lt;BR /&gt;drwxr-xr-x 3 www-data www-data 4096 Oct 19 13:53 /PALogs/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/PALogs$ ls -l&lt;/P&gt;
&lt;P&gt;-rw-rw---- 1 www-data expedition 8365183605 Oct 18 20:17 FW-01_traffic_2021_10_18_last_calendar_day.csv&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 01:41:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/imported-csv-log-files-not-processing/m-p/441809#M3645</guid>
      <dc:creator>ToddThorne</dc:creator>
      <dc:date>2021-10-19T01:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Imported CSV log files not processing</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-discussions/imported-csv-log-files-not-processing/m-p/443566#M3672</link>
      <description>&lt;P&gt;I ended up just running my own cron job (hourly) to change ownership to www-data expedition.&lt;/P&gt;
&lt;P&gt;This made jobs start running but a day behind.&lt;/P&gt;
&lt;P&gt;i.e. log in every day and there is always a csv to process even through the export completes hours before the log auto processing time.&lt;/P&gt;
&lt;P&gt;Have since upgraded to 1.2.0, rolled back to 1.1.113 due to the install issue and then forward again to 1.2.0.&lt;/P&gt;
&lt;P&gt;Logs are now processing overnight as expected.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 20:33:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-discussions/imported-csv-log-files-not-processing/m-p/443566#M3672</guid>
      <dc:creator>ToddThorne</dc:creator>
      <dc:date>2021-10-26T20:33:51Z</dc:date>
    </item>
  </channel>
</rss>

