checkpoint export logfiles greater than 2GB

YESTERDAY=`/bin/date -d yesterday +%Y-%m-%d`
cd $FWDIR/log
for i in `ls $YESTERDAY*.log`
do
fwm logexport -i $i -n | gzip -c -f > ${i/log/txt}.gz
done
This entry was posted in Uncategorized and tagged , , , . Bookmark the permalink.

2 Responses to checkpoint export logfiles greater than 2GB

  1. rg443 says:
    # file size limit 2GB
    for i in $(find 2012*.log  -ctime -75); do  if [ ! -f /var/tmp/$i.txt.gz ];then echo $i; fwm logexport -n -p -i $i | gzip -c -f > /var/tmp/${i/log/txt}.gz ;fi done;
  2. rg443 says:
    # download file - compressed and remote timestamp
    curl -O -R --compressed http://10.10.10.10//logfiles/20101010.log

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s