Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Limit on log files

Posted on 2004-11-18
6
Medium Priority
?
174 Views
Last Modified: 2013-12-04
Hi,

Is it possible to put a limit to the size of a log file? I have an application that generates log files, and they get really big after a while to the point where it becomes an issue. I don't want to disable logging as it is a bad idea from a security point of view.

Any suggestions?

Thanks,

Lily.
0
Comment
Question by:ok_lilya
  • 3
  • 3
6 Comments
 
LVL 97

Expert Comment

by:Lee W, MVP
ID: 12617322
Setup a script to move them to a different location and either back them up and remove them or delete them after a period of time.
0
 

Author Comment

by:ok_lilya
ID: 12617425
Do you have an example of a script or any sites? What kind of a script would that be?

Thanks,

Lily.
0
 

Author Comment

by:ok_lilya
ID: 12617440
Also, how would I know when to archive a file - according its size or just schedule an archive at a particular time?
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 97

Expert Comment

by:Lee W, MVP
ID: 12617461
Using the Schedule Tasks control panel to schedule a batch script (other scripts are possible, but that's what I'd use) to run every night - or week - and copy the files elsewhere.  For example, if your log files were created in c:\program files\myapp\logs, then I'd do this:

@echo off
move "c:\program files\myapp\logs\*.log" "d:\log-backup-folder"


You could do more - kick off a backup, zip the files, delete them, whatever.  But this would do.
0
 
LVL 97

Accepted Solution

by:
Lee W, MVP earned 200 total points
ID: 12617472
It also depends on the application - IIS websites create log files and optionally limit their size.  What applications is generating the log?
0
 

Author Comment

by:ok_lilya
ID: 12617726
Oh great - I can see it now.
Yes it is an IIS website. I can see now how to limit log file size.

Thanks!
0

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as high-speed processing of the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In today's information driven age, entrepreneurs have so many great tools and options at their disposal to help turn good ideas into a thriving business. With cloud-based online services, such as Amazon's Web Services (AWS) or Microsoft's Azure, bus…
Security measures require Windows be logged in using Standard User login (not Administrator).  Yet, sometimes an application has to be run “As Administrator” from a Standard User login.  This paper describes how to create a shortcut icon to launch a…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Kernel Data Recovery is a renowned Data Recovery solution provider which offers wide range of softwares for both enterprise and home users with its cost-effective solutions. Let's have a quick overview of the journey and data recovery tools range he…
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question