Skip to main content
SnapCenter 4.9 cmdlets

Set-SmAuditSettings

Contributors

Sets Audit configurations and Syslog configurations

Syntax

Set-SmAuditSettings [-MaxFileSize]  <Int64>  [-MaxSizeRollBackups]  <Int32>  [-AuditLogDirectory]  <String>  [-UniversalTime]  <Boolean>  [-AuditChecksumLogDirectory]  <String>  [-DiskSpaceLimitPercentage]  <Int32>  [-EnableAuditIntegrityCheckSchedule]  <Boolean>  [-EnableSyslogServer]  <Boolean>  [-SyslogServerHost]  <String>  [-SyslogServerPort]  <Int32>  [-SyslogProtocol]  <SyslogProtocols>  [-SyslogFormat]  <SyslogFormats>

Detailed Description

Sets below configurations Audit related configuration - Maximum File Size Maximum files to retain Audit Log file location Audit Log Checksum file location DiskSpaceLimitPercentage Option to Enable Audit Integrity Check Schedule Syslog server related configuration - Option to Enable Syslog Server Syslog Server Host Syslog Server Port Syslog Protocol Syslog Format

Parameters

Name Description Required? Pipeline Input Default Value

MaxFileSize

The maximum size in MB that the log file is allowed to reach before being rolled over to backup files.

true

false

MaxSizeRollBackups

The number of roll over audit files that are retained.

true

false

AuditLogDirectory

The location where audit files are generated.

true

false

UniversalTime

Enables message logging in UTC time for installations in different geographical locations. Use $True to enable UniversalTime or $False to disable UniversalTime.

false

false

AuditChecksumLogDirectory

The location where audit checksum files are generated.

true

false

DiskSpaceLimitPercentage

Disk space usage limit in percentage, after limit is reached alters are raised.

true

false

EnableAuditIntegrityCheckSchedule

To Enable scheduled audit integrity check. Possible values are $True and $False.

true

false

EnableSyslogServer

Switch to Enable forwarding audit logs to syslog server.

true

false

SyslogServerHost

Syslog server IP address or Server name.

false

false

SyslogServerPort

Syslog server Port. Possible values can range between 0 - 65535.

false

false

SyslogProtocol

Syslog server Protocol. Possible values are UDP, TCP and TLS12.

false

false

SyslogFormat

Syslog server messages format. Possible values are Rfc5424 and Rfc3164.

false

false

Examples

Example 1: Setting audit log and syslog server settings

 Set-SmAuditSettings -MaxFileSize 50
-MaxSizeRollBackups 10
-AuditLogDirectory 'C:\Program Files\NetApp\SnapCenter WebApp\audit'
-AuditChecksumLogDirectory 'C:\Program Files\NetApp\SnapCenter WebApp\auditChecksum'
-DiskSpaceLimitPercentage 80
-EnableAuditIntegrityCheckSchedule $False
-EnableSyslogServer
-SyslogServerHost 10.229.39.107
-SyslogServerPort 1468
-SyslogProtocol TCP
-SyslogFormat Rfc5424

This example sets audit log and syslog server settings.

MaxFileSize : 50
MaxSizeRollBackups : 10
UniversalTime : False
AuditLogDirectory : C:\Program Files\NetApp\SnapCenter WebApp\audit
AuditChecksumLogDirectory : C:\Program Files\NetApp\SnapCenter WebApp\auditChecksum
DiskSpaceLimitPercentage : 80
EnableAuditIntegrityCheckSchedule : False
EnableSyslogServer : True
SyslogServerHost : 10.229.39.107
SyslogServerPort : 1468
SyslogProtocol : TCP
SyslogFormat : Rfc5424