Log File Questions

General discussion of using Adaxes for Active Directory management and administration

Log File Questions

Postby BradG » Wed Jun 27, 2012 5:47 am

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
BradG
 
Posts: 63
Joined: Mon Jan 16, 2012 12:51 pm

Re: Log File Questions

Postby Eugene Pavlov » Wed Jun 27, 2012 6:13 am

Hello,

Unfortunately it is impossible to stitch together two log databases.
Active Directory Identity Management

Follow Adaxes in social networks
Image Image Image Image
User avatar
Eugene Pavlov
 
Posts: 401
Joined: Wed Apr 29, 2009 11:10 pm

Re: Log File Questions

Postby GeerLei » Tue Aug 07, 2012 2:41 pm

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
GeerLei
 
Posts: 1
Joined: Mon Jan 09, 2012 2:35 pm

Re: Log File Questions

Postby Eugene Pavlov » Tue Aug 07, 2012 11:40 pm

Hello Leif,

Sure, here it is:
Code: Select all
[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()


GeerLei wrote: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.
Active Directory Identity Management

Follow Adaxes in social networks
Image Image Image Image
User avatar
Eugene Pavlov
 
Posts: 401
Joined: Wed Apr 29, 2009 11:10 pm


Return to Active Directory Management with Adaxes

Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron