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 (18.0k 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

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

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 (340 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)
+1 vote
1 answer

When building a form, is there a way I can request the user to answer questions? I understand there is the adm-customattributes that aren't stored in AD, but I don' ... the reason why, rather than just seeing "What" change is being requested. Thank You!

asked Mar 1, 2023 by Edogstraus00 (470 points)
0 votes
1 answer

Is there anyway we can get an Adaxes administrator to be able to access the security the questions and answers from the “Password Self-Service Policies” portal for our users?

asked Feb 17, 2022 by JoeG (40 points)
3,346 questions
3,047 answers
7,772 comments
544,970 users