Tool to move, compress, delete web logs

Hi,

Does anyone know any good free / open source tools that will move, compress and delete web logs when scheduled to do so?

Thanks.
bcrawley01Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tanujchandnaCommented:
Hi,

There is no as such tool, .vbs scripts are available which you can use for all these activities.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
James MurrellProduct SpecialistCommented:
we use a vbs script and then sftp them to us..

we use the command options in 7z (better compression that winzip) http://www.7-zip.org/

below is batch file to backup and the delete vbs file to delete

(its up to you how you get them back to you)

regards James
--- bat file

@echo off

setlocal


for /F "tokens=2-4 delims=/ " %%f in ('date /t') do (
 set mm=%%f
 set dd=%%g
 set yyyy=%%h
)

REM Substract your 1 day here
set /A dd=1%dd% - 100 - 1
set /A mm=1%mm% - 100 + 0

if /I %dd% GTR 0 goto DONE

set /A mm=%mm% - 1

if /I %mm% GTR 0 goto ADJUSTDAY

set /A mm=12
set /A yyyy=%yyyy% - 1

:ADJUSTDAY

if %mm%==1 goto SET31
if %mm%==2 goto LEAPCHK
if %mm%==3 goto SET31
if %mm%==4 goto SET30
if %mm%==5 goto SET31
if %mm%==6 goto SET30
if %mm%==7 goto SET31
if %mm%==8 goto SET31
if %mm%==9 goto SET30
if %mm%==10 goto SET31
if %mm%==11 goto SET30
if %mm%==12 goto SET31

goto ERROR

:SET31

set /A dd=31 + %dd%

goto DONE

:SET30

set /A dd=30 + %dd%

goto DONE

:LEAPCHK

set /A tt=%yyyy% %% 4

if not %tt%==0 goto SET28

set /A tt=%yyyy% %% 100

if not %tt%==0 goto SET29

set /A tt=%yyyy% %% 400

if %tt%==0 goto SET29

:SET28

set /A dd=28 + %dd%

goto DONE

:SET29

set /A dd=29 + %dd%

:DONE


C:\7z\7za a -mx1 -r -ms=off E:\backuplocationfolder\IIS_log_files_%COMPUTERNAME%_%date:~0,2%-%date:~3,2%-%date:~6,6%_logfiles.7z E:\logfiles\*.*
c:\deletelog.vbs

:EXIT

------new file called deletelog.vbs

Dim fso: Set fso = CreateObject("Scripting.FileSystemObject")
 
Set objFolder = fso.GetFolder("E:\logfiles\")
 
for each file in objFolder.Files
        
        If DateDiff("d", file.DateLastModified, Date) > 1 Then
                fso.DeleteFile(file.Path)
        End If
        
next

Open in new window

0
bcrawley01Author Commented:
Appears to be no tools available
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.