Author Topic: Auto trim log files  (Read 3367 times)

Offline Sean Dendle

  • New
  • *
  • Posts: 6
  • Gender: Male
Auto trim log files
« on: May 01, 2016, 05:43:44 PM »
It would be good to be able to configure either the maximum number of days logging or maximum log size within Process Lasso. I’m generating between 17MB and 25MB of log files for a day.

While this isn’t normally a huge issue for a desktop/laptop we run multiple Terminal Server/Remote Desktop Server/Citrix Farms and for 25 – 30 people logging into a server this can generate quite a lot of log files that then need to be maintained.

I’ve seen that you can change the configuration file so that instead of using %appdata%\Roaming\ProcessLasso\logs this can be moved to a different folder however this is still quite a lot of logging to have to manage.

It would be ideal if Process Lasso could either trim the log file when a maximum value is reached (e.g. no more than 20MB per user - similar to the Windows Event log – image attached) or trim the log file when it reaches a given number of days (e.g. trim any data older than 14 days).

P.S. – Amazing product!




Offline edkiefer

  • Volunteer User Moderator
  • Member#
  • *****
  • Posts: 1675
  • Gender: Male
Re: Auto trim log files
« Reply #1 on: May 01, 2016, 06:35:05 PM »
Hi, thats a good idea.

Right now PL will go to a 4mb per file and then make another log file, there is a pruning involved but its not adjustable.
Bitsum QA Engineer

Offline BenYeeHua

  • Member#
  • *****
  • Posts: 2243
  • Gender: Male
Re: Auto trim log files
« Reply #2 on: May 02, 2016, 03:03:47 PM »
A little off-topic on the filesize. ::)

I also wonder what will happen if apply the NTFS own compression(or new Windows 10 xpress4k compression) on the files/folder, it should having a very good compression rate on the log files too! ;)
---
Back to topic, yup, just maintaining a single file sound like a good idea, maybe just on the servers version. :)

Offline Jeremy Collake

  • Administrator
  • Member#
  • *****
  • Posts: 5243
  • Gender: Male
  • The Lasso
    • Bitsum
Re: Auto trim log files
« Reply #3 on: May 17, 2016, 03:55:53 AM »
Thank you, and I agree entirely with this recommendation. I will see what I can do going forward. The logging subsystem is one where work is definitely going to be done in the future, and there's certainly no reason not to include better pruning based on age, per-user size, or other.
Software Engineer. Bitsum LLC.

Offline Sean Dendle

  • New
  • *
  • Posts: 6
  • Gender: Male
Re: Auto trim log files
« Reply #4 on: August 31, 2016, 11:21:52 PM »
Hi there,

Checking in to see if any progress been made on this request?

Offline Jeremy Collake

  • Administrator
  • Member#
  • *****
  • Posts: 5243
  • Gender: Male
  • The Lasso
    • Bitsum
Re: Auto trim log files
« Reply #5 on: September 19, 2016, 12:51:27 AM »
Sorry I didn't respond sooner, I'm on the Support Ticketing platform these days. I have people who are supposed to tell me when a forum post needs my response.

On this particular issue, no. I've been busy with ProBalance Stand Alone, ParkControl, Process Lasso v9 (where this will show up), and 2 classified projects.

The log does already prune itself, it doesn't grow indefinitely, FWIW.
Software Engineer. Bitsum LLC.