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 (6.6k points)

1 Answer

0 votes
by (19k 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, 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 (6.6k 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 (6.6k points)
0 votes
1 answer

I have a third-party provider that is asking us for the Name,Phone,Email,Job Title, & Office of every new hire we get sent tot hem in a .CSV file at the end of the ... that we could use that would append that file each time we add a new user? Thank you,

asked Mar 10 by hgletifer (6.2k points)
0 votes
0 answers

I am trying to work out a method to create Drop-Down lists to select printers and printer properties. Using PowerShell I can extract a list of printers and printer properties to either ... or CSV file for my drop-down lists. Any ideas on how to do this? Thanks

asked Sep 17, 2019 by Fixxer (250 points)
0 votes
1 answer

We are in the process of upgrading from Adaxes 2014.1 to Adaxes 2018.2. As part of the upgrade we plan on moving from a Windows Server 2012 R2 VM to Windows Server 2016 ... I need to get new key files for the Adaxes 2018.2 deployments? Thank you in advance.

asked Mar 15, 2019 by lgibbens (1.4k points)
2,245 questions
2,007 answers
5,494 comments
19,943 users