Skip to content

[minor] Update DB2 Audit logs to S3 buckets using CRON Job - #571

Open
sumitjain-1901 wants to merge 11 commits into
mainfrom
MASCORE-16109
Open

[minor] Update DB2 Audit logs to S3 buckets using CRON Job#571
sumitjain-1901 wants to merge 11 commits into
mainfrom
MASCORE-16109

Conversation

@sumitjain-1901

Copy link
Copy Markdown
Contributor

Issue:

https://jsw.ibm.com/browse/MASCORE-16109

Summary:

  1. Added CRON JOB 120-ibm-db2u-database/templates/04-db2u-Audit_Cron.yaml top execute at 01:00 AM daily.
  2. Above CRON JOB executes db2AuditExtract.sh
    Archives and extracts DB2 audit logs (flush → archive database/instance → extract delasc → copy historical logs from /mnt/blumeta0/audit) into /tmp/auditarchive, uploads all files to S3, then cleans up the work directory and historical .log.0.20 source files.

Testing

  1. CRON JOB LOGS
image
  1. LOGS to S3 buckets
image

@amitpandey0217

Copy link
Copy Markdown
Contributor

Uses sync-wave 125, which is between DB2 setup (120) and audit policy (130). This seems appropriate but should be verified.

@amitpandey0217

Copy link
Copy Markdown
Contributor

instead of hardcoding BLUDB get it dynamically from log path

@sumitjain-1901

Copy link
Copy Markdown
Contributor Author

instead of hardcoding BLUDB get it dynamically from log path

Updated

@sumitjain-1901

Copy link
Copy Markdown
Contributor Author

Uses sync-wave 125, which is between DB2 setup (120) and audit policy (130). This seems appropriate but should be verified.

Updated sync-wave to 132 after audit policy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants