<?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: How to send log files to FTP in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-send-log-files-to-FTP/m-p/179021#M68640</link>
    <description>&lt;P&gt;Hello &lt;A class="" href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670" target="_self"&gt;&lt;SPAN class=""&gt;HeikoAnkenbrand&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for the script I sent. I edited the script I wrote earlier and it worked. He's doing my job now. As you said, the script you sent needs to be edited!&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2023 07:56:35 GMT</pubDate>
    <dc:creator>ikafka</dc:creator>
    <dc:date>2023-04-25T07:56:35Z</dc:date>
    <item>
      <title>How to send log files to FTP</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-send-log-files-to-FTP/m-p/178923#M68638</link>
      <description>&lt;P&gt;Hello;&lt;/P&gt;&lt;P&gt;At the beginning of each new day I want to send the log files of the previous day to the FTP server.&lt;BR /&gt;As you know, as the log files in SMS increase, old logs are deleted. Sometimes it is difficult to retrieve logs with WinSCP. So I want to get logs to my Windows FTP server at the beginning of each new day.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Info: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;log file path:&amp;nbsp;/var/log/opt/CPsuite-R81.10/fw1/log&lt;/P&gt;&lt;P&gt;ftp server: Windows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks CM.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 11:59:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-send-log-files-to-FTP/m-p/178923#M68638</guid>
      <dc:creator>ikafka</dc:creator>
      <dc:date>2023-04-24T11:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to send log files to FTP</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-send-log-files-to-FTP/m-p/178965#M68639</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use this script - you need to modify it a little -&amp;nbsp;and start it via a cronjob.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;#!/bin/bash
FTPSERVER="1.2.3.4";
FTPPW="password";
FTPUSER="username";

echo "
verbose
user \$FTPUSER \$FTPPW
bin
lcd  /var/log/opt/CPsuite-R81.10/fw1/log
put "&amp;lt;name of the logfile&amp;gt;"
bye
" | /usr/bin/ftp -in \$FTPSERVER &amp;gt; /tmp/test 2&amp;gt;&amp;amp;1;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2023 15:22:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-send-log-files-to-FTP/m-p/178965#M68639</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2023-04-24T15:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to send log files to FTP</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-send-log-files-to-FTP/m-p/179021#M68640</link>
      <description>&lt;P&gt;Hello &lt;A class="" href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670" target="_self"&gt;&lt;SPAN class=""&gt;HeikoAnkenbrand&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for the script I sent. I edited the script I wrote earlier and it worked. He's doing my job now. As you said, the script you sent needs to be edited!&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2023 07:56:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/How-to-send-log-files-to-FTP/m-p/179021#M68640</guid>
      <dc:creator>ikafka</dc:creator>
      <dc:date>2023-04-25T07:56:35Z</dc:date>
    </item>
  </channel>
</rss>

