Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user accounts manipulation audit example #8158

Merged
merged 6 commits into from
Sep 6, 2024
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions _security/audit-logs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,3 +224,35 @@ plugins.security.audit.config.threadpool.max_queue_len: 100000

To disable audit logs after they've been enabled, remove the `plugins.security.audit.type: internal_opensearch` setting from `opensearch.yml`, or switch off the **Enable audit logging** check box in OpenSearch Dashboards.

## Audit user account manipulation

To enable user account creation/removal audit use similar `audit.yml`:
jazzl0ver marked this conversation as resolved.
Show resolved Hide resolved
```
_meta:
type: "audit"
config_version: 2

config:
# enable/disable audit logging
enabled: true

...


compliance:
# enable/disable compliance
enabled: true

# Log updates to internal security changes
internal_config: true

# Log only metadata of the document for write events
write_metadata_only: false

# Log only diffs for document updates
write_log_diffs: true

# List of indices to watch for write events. Wildcard patterns are supported
# write_watched_indices: ["twitter", "logs-*"]
write_watched_indices: [".opendistro_security"]
```
Loading