[go: nahoru, domu]

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

Add tags to NewerNoncurrentVersions audit event #17110

Merged
merged 1 commit into from
May 2, 2023

Conversation

krisis
Copy link
Member
@krisis krisis commented May 2, 2023

Description

Adds ILM lifecycle event specific information to audit log entries

Sample output:

{
  "version": "1",
  "deploymentid": "a207395b-bdd2-485e-b925-9478f6bd21cb",
  "time": "2023-05-02T16:20:59.331568543Z",
  "event": "ilm:expiry",
  "trigger": "ilm:expiry",
  "api": {
    "name": "ILMExpiry",
    "bucket": "bucket",
    "objects": [
      {
        "objectName": "obj-1",
        "versionId": "b15caacb-a961-483a-864b-7824884744a6"
      }
    ]
  },
  "tags": {
    "ilm-action": "DeleteVersionAction",
    "ilm-newer-noncurrent-versions": 5,
    "ilm-rule-id": "ch8jfmtvvqd5ias20v50"
  }
}

Motivation and Context

Same as #17081

How to test this PR?

Same as #17081

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Unit tests added/updated
  • Internal documentation updated
  • Create a documentation update request here

@krisis krisis requested review from vadmeste and poornas May 2, 2023 16:27
@harshavardhana harshavardhana merged commit 0ec722b into minio:master May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants