Author |
Message |
nasdweb
Joined: 11 Jul 2012 Posts: 53
|
Posted: Fri Nov 16, 2012 7:33 pm Post subject: Log File Management |
|
|
I recently found out that the max setting for the log file size with ViceVersa is set to 10mb by default. I figured when it reaches the max, it would create a new file and go off the same rule. However, it purges the existing data and starts from scratch.
I would like to know if there is anyway to have ViceVersa start on a new file as soon as it reaches a specific max. I just think there needs to be a bit more in terms of options / features with the logging features.
If there are any other suggestions, please do advise. Often times, we'll need to look up evens that took place 2-3 months ago with timestamps, the logs will allow us to do that, but if it is too large or not separated into multiple files, this will be a huge issue. |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8763
|
Posted: Mon Nov 19, 2012 11:34 am Post subject: |
|
|
Hi, maybe you could use variables in the log, for instance <date> to create a new log each day. See help for other variables. thanks _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
nasdweb
Joined: 11 Jul 2012 Posts: 53
|
Posted: Tue Jul 09, 2013 7:36 pm Post subject: |
|
|
TGRMN Software wrote: | Hi, maybe you could use variables in the log, for instance <date> to create a new log each day. See help for other variables. thanks |
I was thinking maybe I could create a new profile where one day out of the week it takes the log file in the local directory and moves it to a archive folder and appends a date stamp to the file name it archives. After the profile runs successfully, ViceVersa automatically creates the log file in the default directory anyway so I don't think there would be an issue with this. Please let me know if there is a better way to achieve this or if this method would be OK.
I have both VV and VVEngine. |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8763
|
|
Back to top |
|
|
nasdweb
Joined: 11 Jul 2012 Posts: 53
|
Posted: Wed Jul 10, 2013 12:23 pm Post subject: |
|
|
TGRMN Software wrote: | Hi, yes, I think this solution would work too. |
I did not see an option to add a datestamp to the file name during the archival process. Is this possible through ViceVersa or does this have to be done manually? |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8763
|
Posted: Thu Jul 11, 2013 2:01 pm Post subject: |
|
|
Hi , you could have a different target folder (use <date> as variable for target). Or the same target folder with archiving for target enabled (archiving adds timestamps to files when moved to the archive). thanks _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
nasdweb
Joined: 11 Jul 2012 Posts: 53
|
Posted: Mon Oct 14, 2013 8:31 pm Post subject: |
|
|
TGRMN Software wrote: | Hi , you could have a different target folder (use <date> as variable for target). Or the same target folder with archiving for target enabled (archiving adds timestamps to files when moved to the archive). thanks |
The log files get pretty big, about 300 - 400 mbs+ and up if left untouched for a month. How exactly can I set up VV so that all log files in the log directory can be sent to an archive sub-folder on the same parent folder, then compress it? That would be its only purpose is to run the archival once a month, is there a way to setup the profile so that it only does this but no comparison / copies are actually done? |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8763
|
|
Back to top |
|
|
nasdweb
Joined: 11 Jul 2012 Posts: 53
|
Posted: Tue Oct 15, 2013 12:30 pm Post subject: |
|
|
Yes, when the scheduled profile runs once a month it will copy the log file to the archive folder then compress it into a zip file or whatever format it supports.
At the same time, the whole point of this is mainly to also clean up the log files, so is it possible to completely move the files from the log directory --> to the archive directory --> then compress it?
Here is how I envision the entire process working, please feel free to revise how you see fit:
1. Once a month scheduled profile runs on \logs\ directory
2. Moves or Copies (Whatever process that would allow it to be completely purged / removed while VVEngine is still running) to the \logs\archive\ directory
3. Compresses the logged files that are archived from this scheduled run into the \logs\archive\ directory
4. Assuming VVEngine can recreate the log files from scratch without the log files actually being there in the \logs\ directory, it does so and successfully completes the process. A notification is sent that the archive was successful using the email notification feature.
Would VVEngine know to recreate the log files from scratch or will it not work if the files do not exist? |
|
Back to top |
|
|
nasdweb
Joined: 11 Jul 2012 Posts: 53
|
Posted: Wed Oct 16, 2013 1:57 pm Post subject: |
|
|
Hi - Please let me know if further information needs to be posted with what i'm trying to setup. I would really like to get this tested and setup this week!. Thanks! |
|
Back to top |
|
|
TGRMN Software Site Admin
Joined: 10 Jan 2005 Posts: 8763
|
Posted: Thu Oct 17, 2013 12:02 am Post subject: |
|
|
Hi, ViceVersa does not move files (it's a feature we should really be adding!)... but you can still create a profile that copies the log files to a compressed target (see profile settings -> compression) or you could have the files compressed by Windows if you are on NTFS. Then have a script that runs at the end of the profile: if the exit code is 0 delete all log files. ViceVersa will recreate them if not there. the only issue would be that if a log is being written to while the "log copying and deleting" profile runs , then the logs can't be deleted. _________________ --
TGRMN Software Support
http://www.tgrmn.com
http://www.compareandmerge.com |
|
Back to top |
|
|
|