View the audit log of a Management of Change (MoC) package
- Last UpdatedApr 24, 2025
- 1 minute read
You can use the Management of Change (MoC) Package tool (dnapackage) to view the audit log of either a published or unpublished MoC package by printing the audit trail of a package to a .CSV file. The auditlog option allows you to view all logs in the table throughout the life of a package.
To view the package audit log
-
On the desktop, double-click the Windows PowerShell for DNA shortcut.
Windows PowerShell for DNA opens.
-
Execute the following commands:
set-silo RealTime
dnapackage auditlog --title <package title> --path <full path of CSV file>
Where:
-
--title <package title> is the title of a valid package.
-
--path <full path of CSV file> is the full path to the file to which you want to write the package audit log.
Notes: The parameters are mandatory for each command.
Only full paths are accepted: you can not use relative paths.
If the specified file already exists, it will be overwritten.
-
Example of .CSV File Contents
LogId TimeStamp EventType PackageId SystemName Zone User CommandLine Payload
3 11/28/2018 19:58 RegisterPackageEvent 7a8bcd19-2878-43f7-9443-6dec18d38274 es Dev Server1\MocUser1 dnapackage create --package C:\tmp\MydnaPackage --title Title1 --description Title1Desc {"$type":"OASySDNA.MoC.Common.Auditing.PackageStore.MessageTypes.RegisterPackageEvent