0 votes

Is it possible to "glue" several log files together? I made the mistake of not resetting the retention interval for our activity log during upgrades to more than 30 days. I have the previous log files, but would like to consolidate them into a single log file that can utilize the built in query tool.

Thanks

by (950 points)

1 Answer

0 votes
by (18k points)

Hello,

Unfortunately it is impossible to stitch together two log databases.

0

Hi Eugene, have read the thread and would like to know if you can set the retention time of the log by a script. I restore the previous log every time after upgrade via a script and would like to put this setting into it as well. Best Regards. Leif

0

Hello Leif,

Sure, here it is:

[Reflection.Assembly]::LoadWithPartialName("Softerra.Adaxes.Adsi")

$retentionDays = 30 # TODO: modify me

$admNS = New-Object("Softerra.Adaxes.Adsi.AdmNamespace")
$admService = $admNS.GetServiceDirectly("localhost")

# Bind to the Service Log
$path = $admService.Backend.GetConfigurationContainerPath("ServiceLog")
$serviceLog = $admService.OpenObject($path.ToString(), $NULL, $NULL, 0)

# Set the retention time
$serviceLog.LogHoldTime = $retentionDays
$serviceLog.SetInfo()

I restore the previous log every time after upgrade via a script and would like to put this setting into it as well.

In the latest build of Adaxes the Log Database is included in the Backup/Restore, which means that you no longer need to restore the previous log every time you upgrade.

Related questions

0 votes
1 answer

Hello Everyone I wanted to ask if there is a way to increase the limit for the log file database as it is now 30 days by default or do I need to create a new SQL database? Thank you for the Support

asked Jun 28, 2021 by Sandberg94 (250 points)
0 votes
1 answer

Hello, I'm doing an upgrade to 2013.2. Is there a way to preserve the AdaxesLog.db3 content from the old version to the current version? I tried to replace the file ( ... "failed to load log records". Unable to find assembly 'System.Data.SQLite....' Thanks,

asked Dec 10, 2013 by BradG (950 points)
0 votes
1 answer

A few questions: 1. When do you expect to be able to "publish" the administrative log? Right now, only the administrator can run reports from the console. It would be very ... seems to limit the ability to find approvals that are not in the last 1000. Thanks!

asked Aug 15, 2012 by BradG (950 points)
0 votes
1 answer

I'm looking to audit file Share permissions, in order to find out what groups and individuals have access to what files and folders, whether those permissions are inherited or assigned, etc. Wondering if Adaxes can do this. Thanks in advance,

asked Mar 15 by sysdadmin (20 points)
0 votes
1 answer

Currently we have to create lots of new NTFS shared folders for projects and manage the addition and removal of access for users on an ongoing basis. We would like to delegate ... interested to know if it will meet our needs before I install a demo to test.

asked Dec 21, 2021 by darrenbrown (20 points)
2,740 questions
2,474 answers
6,475 comments
1,372,146 users