netapp.storagegrid.na_sg_grid_audit_destination module – Configure audit log destinations on StorageGRID.
Note
This module is part of the netapp.storagegrid collection (version 21.16.0).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install netapp.storagegrid.
To use it in a playbook, specify: netapp.storagegrid.na_sg_grid_audit_destination.
New in netapp.storagegrid 21.15.0
Synopsis
- Configure audit log destinations on NetApp StorageGRID.
Parameters
Parameter | Comments |
|---|---|
api_url string / required | The url to the StorageGRID Admin Node REST API. |
auth_token string / required | The authorization token for the API request |
defaults dictionary | The defaults will be used to configure audit destinations on all nodes which are not in the nodes array. |
|
admin_nodes dictionary |
Configuration for traditional audit log export to admin nodes. |
|
enabled boolean |
If true, traditional audit log export to admin nodes is enabled. Choices:
|
|
remote_syslog_server dictionary |
Configuration for sending audit logs to an external syslog server. |
|
access_logs_facility integer added in netapp.storagegrid 21.16.0 |
Syslog facility to use for access logs sent to external syslog server, or -1 to preserve the local facility. Default: |
|
access_logs_send boolean added in netapp.storagegrid 21.16.0 |
If true, send access logs to the external syslog server. Choices:
|
|
access_logs_severity integer added in netapp.storagegrid 21.16.0 |
Syslog severity to use for access logs sent to external syslog server, or -1 to preserve the local severity. Default: |
|
application_logs_facility integer |
Syslog facility to use for application logs sent to external syslog server, or -1 to preserve the local facility. Default: |
|
application_logs_send boolean |
If true, send application logs to the external syslog server. Choices:
|
|
application_logs_severity integer |
Syslog severity to use for application logs sent to external syslog server, or -1 to preserve the local severity. Default: |
|
audit_logs_facility integer |
Syslog facility to use for audit logs sent to external syslog server, or -1 to preserve the local facility. Default: |
|
audit_logs_send boolean |
If true, send audit logs to the external syslog server. Choices:
|
|
audit_logs_severity integer |
Syslog severity to use for audit logs sent to external syslog server, or -1 to preserve the local severity. Default: |
|
auth_events_facility integer |
Syslog facility to use for security events sent to external syslog server, or -1 to preserve the local facility. Default: |
|
auth_events_send boolean |
If true, send security events to the external syslog server. Choices:
|
|
auth_events_severity integer |
Syslog severity to use for security events sent to external syslog server, or -1 to preserve the local severity. Default: |
|
client_cert string |
Client certificate for authentication to external syslog server (in PEM encoding). |
|
client_key string |
Private key for the client certificate (in PEM encoding). If encrypted, must use traditional format (cannot use PKCS |
|
client_key_passphrase string |
Passphrase for decrypting the client private key; omit the passphrase if the private key is not encrypted. |
|
enabled boolean |
If true, the external syslog server destination is enabled. Choices:
|
|
hostname string / required |
The IP or DNS hostname to send syslog messages to. |
|
insecure_TLS boolean |
Flag to permit insecure Transport Layer Security (TLS) for external syslog server connections. Choices:
|
|
port integer |
The port number to send syslog messages to. Default: |
|
protocol string |
The IP protocol to use for sending to the external syslog server. Choices:
|
|
server_ca_cert string |
One or more trusted CA certificates for verifying the external syslog server (in PEM encoding). If omitted, the operating system CA certificates will be used. |
|
tls_configuration_parameters string |
OpenSSL configuration commands, only used when |
|
remote_syslog_server_test dictionary |
Configuration for sending audit test messages to an external syslog server. |
|
access_logs_facility integer added in netapp.storagegrid 21.16.0 |
Syslog facility to use for access logs sent to external syslog server, or -1 to preserve the local facility. Default: |
|
access_logs_send boolean added in netapp.storagegrid 21.16.0 |
If true, send access logs to the external syslog server. Choices:
|
|
access_logs_severity integer added in netapp.storagegrid 21.16.0 |
Syslog severity to use for access logs sent to external syslog server, or -1 to preserve the local severity. Default: |
|
application_logs_facility integer |
Syslog facility to use for application logs sent to external syslog server, or -1 to preserve the local facility. Default: |
|
application_logs_send boolean |
If true, send application logs to the external syslog server. Choices:
|
|
application_logs_severity integer |
Syslog severity to use for application logs sent to external syslog server, or -1 to preserve the local severity. Default: |
|
audit_logs_facility integer |
Syslog facility to use for audit logs sent to external syslog server, or -1 to preserve the local facility. Default: |
|
audit_logs_send boolean |
If true, send audit logs to the external syslog server. Choices:
|
|
audit_logs_severity integer |
Syslog severity to use for audit logs sent to external syslog server, or -1 to preserve the local severity. Default: |
|
auth_events_facility integer |
Syslog facility to use for security events sent to external syslog server, or -1 to preserve the local facility. Default: |
|
auth_events_send boolean |
If true, send security events to the external syslog server. Choices:
|
|
auth_events_severity integer |
Syslog severity to use for security events sent to external syslog server, or -1 to preserve the local severity. Default: |
|
client_cert string |
Client certificate for authentication to external syslog server (in PEM encoding). |
|
client_key string |
Private key for the client certificate (in PEM encoding). If encrypted, must use traditional format (cannot use PKCS |
|
client_key_passphrase string |
Passphrase for decrypting the client private key; omit the passphrase if the private key is not encrypted. |
|
enabled boolean |
If true, the external syslog server destination is enabled. Choices:
|
|
hostname string / required |
The IP or DNS hostname to send syslog messages to. |
|
insecure_TLS boolean |
Flag to permit insecure Transport Layer Security (TLS) for external syslog server connections. Choices:
|
|
port integer |
The port number to send syslog messages to. Default: |
|
protocol string |
The IP protocol to use for sending to the external syslog server. Choices:
|
|
server_ca_cert string |
One or more trusted CA certificates for verifying the external syslog server (in PEM encoding). If omitted, the operating system CA certificates will be used. |
|
tls_configuration_parameters string |
OpenSSL configuration commands, only used when |
nodes list / elements=dictionary | Optional per-node configuration stanzas in the nodes array override the default configuration. |
|
admin_nodes dictionary |
Configuration for traditional audit log export to admin nodes. |
|
enabled boolean |
If true, traditional audit log export to admin nodes is enabled. Choices:
|
|
node_id string |
An optional map of node UUIDs to their audit log destination configurations. |
|
remote_syslog_server dictionary |
Configuration for sending audit logs to an external syslog server. |
|
access_logs_facility integer added in netapp.storagegrid 21.16.0 |
Syslog facility to use for access logs sent to external syslog server, or -1 to preserve the local facility. Default: |
|
access_logs_send boolean added in netapp.storagegrid 21.16.0 |
If true, send access logs to the external syslog server. Choices:
|
|
access_logs_severity integer added in netapp.storagegrid 21.16.0 |
Syslog severity to use for access logs sent to external syslog server, or -1 to preserve the local severity. Default: |
|
application_logs_facility integer |
Syslog facility to use for application logs sent to external syslog server, or -1 to preserve the local facility. Default: |
|
application_logs_send boolean |
If true, send application logs to the external syslog server. Choices:
|
|
application_logs_severity integer |
Syslog severity to use for application logs sent to external syslog server, or -1 to preserve the local severity. Default: |
|
audit_logs_facility integer |
Syslog facility to use for audit logs sent to external syslog server, or -1 to preserve the local facility. Default: |
|
audit_logs_send boolean |
If true, send audit logs to the external syslog server. Choices:
|
|
audit_logs_severity integer |
Syslog severity to use for audit logs sent to external syslog server, or -1 to preserve the local severity. Default: |
|
auth_events_facility integer |
Syslog facility to use for security events sent to external syslog server, or -1 to preserve the local facility. Default: |
|
auth_events_send boolean |
If true, send security events to the external syslog server. Choices:
|
|
auth_events_severity integer |
Syslog severity to use for security events sent to external syslog server, or -1 to preserve the local severity. Default: |
|
client_cert string |
Client certificate for authentication to external syslog server (in PEM encoding). |
|
client_key string |
Private key for the client certificate (in PEM encoding). If encrypted, must use traditional format (cannot use PKCS |
|
client_key_passphrase string |
Passphrase for decrypting the client private key; omit the passphrase if the private key is not encrypted. |
|
enabled boolean |
If true, the external syslog server destination is enabled. Choices:
|
|
hostname string / required |
The IP or DNS hostname to send syslog messages to. |
|
insecure_TLS boolean |
Flag to permit insecure Transport Layer Security (TLS) for external syslog server connections. Choices:
|
|
port integer |
The port number to send syslog messages to. Default: |
|
protocol string |
The IP protocol to use for sending to the external syslog server. Choices:
|
|
server_ca_cert string |
One or more trusted CA certificates for verifying the external syslog server (in PEM encoding). If omitted, the operating system CA certificates will be used. |
|
tls_configuration_parameters string |
OpenSSL configuration commands, only used when |
|
remote_syslog_server_test dictionary |
Configuration for sending audit test messages to an external syslog server. |
|
access_logs_facility integer added in netapp.storagegrid 21.16.0 |
Syslog facility to use for access logs sent to external syslog server, or -1 to preserve the local facility. Default: |
|
access_logs_send boolean added in netapp.storagegrid 21.16.0 |
If true, send access logs to the external syslog server. Choices:
|
|
access_logs_severity integer added in netapp.storagegrid 21.16.0 |
Syslog severity to use for access logs sent to external syslog server, or -1 to preserve the local severity. Default: |
|
application_logs_facility integer |
Syslog facility to use for application logs sent to external syslog server, or -1 to preserve the local facility. Default: |
|
application_logs_send boolean |
If true, send application logs to the external syslog server. Choices:
|
|
application_logs_severity integer |
Syslog severity to use for application logs sent to external syslog server, or -1 to preserve the local severity. Default: |
|
audit_logs_facility integer |
Syslog facility to use for audit logs sent to external syslog server, or -1 to preserve the local facility. Default: |
|
audit_logs_send boolean |
If true, send audit logs to the external syslog server. Choices:
|
|
audit_logs_severity integer |
Syslog severity to use for audit logs sent to external syslog server, or -1 to preserve the local severity. Default: |
|
auth_events_facility integer |
Syslog facility to use for security events sent to external syslog server, or -1 to preserve the local facility. Default: |
|
auth_events_send boolean |
If true, send security events to the external syslog server. Choices:
|
|
auth_events_severity integer |
Syslog severity to use for security events sent to external syslog server, or -1 to preserve the local severity. Default: |
|
client_cert string |
Client certificate for authentication to external syslog server (in PEM encoding). |
|
client_key string |
Private key for the client certificate (in PEM encoding). If encrypted, must use traditional format (cannot use PKCS |
|
client_key_passphrase string |
Passphrase for decrypting the client private key; omit the passphrase if the private key is not encrypted. |
|
enabled boolean |
If true, the external syslog server destination is enabled. Choices:
|
|
hostname string / required |
The IP or DNS hostname to send syslog messages to. |
|
insecure_TLS boolean |
Flag to permit insecure Transport Layer Security (TLS) for external syslog server connections. Choices:
|
|
port integer |
The port number to send syslog messages to. Default: |
|
protocol string |
The IP protocol to use for sending to the external syslog server. Choices:
|
|
server_ca_cert string |
One or more trusted CA certificates for verifying the external syslog server (in PEM encoding). If omitted, the operating system CA certificates will be used. |
|
tls_configuration_parameters string |
OpenSSL configuration commands, only used when |
state string | The audit destination should be present. Choices:
|
validate_certs boolean | Should https certificates be validated? Choices:
|
Notes
Note
- The modules prefixed with
na_sgare built to manage NetApp StorageGRID.
Examples
- name: Configure audit destination defaults
netapp.storagegrid.na_sg_grid_audit_destination:
state: present
api_url: "https://gmi.example.com"
auth_token: "01234567-5678-9abc-78de-9fgabc123def"
validate_certs: false
defaults:
admin_nodes:
enabled: true
remote_syslog_server:
enabled: true
protocol: udp
hostname: "syslog.example.com"
port: 514
auth_events_send: true
auth_events_facility: -1
auth_events_severity: -1
audit_logs_send: true
audit_logs_facility: 23
audit_logs_severity: 6
application_logs_send: true
application_logs_facility: -1
application_logs_severity: -1
access_logs_send: true
access_logs_facility: -1
access_logs_severity: -1
- name: Configure audit destination for specific nodes
netapp.storagegrid.na_sg_grid_audit_destination:
state: present
api_url: "https://gmi.example.com"
auth_token: "01234567-5678-9abc-78de-9fgabc123def"
validate_certs: false
nodes:
- node_id: "6562d5d8-f218-45ff-a466-5bb39e729288"
admin_nodes:
enabled: true
remote_syslog_server:
enabled: true
protocol: udp
hostname: "syslog.example.com"
port: 514
auth_events_send: true
auth_events_facility: -1
auth_events_severity: -1
audit_logs_send: true
audit_logs_facility: 23
audit_logs_severity: 6
application_logs_send: true
application_logs_facility: -1
application_logs_severity: -1
access_logs_send: true
access_logs_facility: -1
access_logs_severity: -1
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key | Description |
|---|---|
resp dictionary | Returns information about the StorageGRID Audit destination. Returned: If state is ‘present’. Sample: |
Collection links
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/projects/ansible/latest/collections/netapp/storagegrid/na_sg_grid_audit_destination_module.html