Skip to content

Conversation

@UgnineSirdis
Copy link
Collaborator

@UgnineSirdis UgnineSirdis commented Nov 11, 2024

Changelog entry

Support the configuration setting to wrap log records into a fixed json envelope, based on the log record nature. To be used when a single-stream unified logs delivery system is in place (like stderr in k8s installations), with all logs streamed there (including audit), and which needs to have some environment-specific information in the message to decide which system to forward a particular record to.

As the first application is for audit logs, the first implementation is also for the audit logs only.

The function is agnostic to the audit logs format, as addresses not the audit system requirements, but the logs delivery and routing system ones.

Changelog category

  • New feature

Additional information

...

@github-actions
Copy link

github-actions bot commented Nov 11, 2024

2024-11-11 10:30:27 UTC Pre-commit check linux-x86_64-release-asan for ff9ce74 has started.
2024-11-11 10:30:31 UTC Artifacts will be uploaded here
2024-11-11 10:33:59 UTC ya make is running...
🟡 2024-11-11 12:11:25 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
10411 10328 0 37 11 35

🟢 2024-11-11 12:12:19 UTC Build successful.
🟡 2024-11-11 12:12:51 UTC ydbd size 5.7 GiB changed* by +153.1 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 8c8ed07 merge: ff9ce74 diff diff %
ydbd size 6 165 970 720 Bytes 6 166 127 504 Bytes +153.1 KiB +0.003%
ydbd stripped size 1 537 561 616 Bytes 1 537 585 648 Bytes +23.5 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Nov 11, 2024

2024-11-11 10:45:11 UTC Pre-commit check linux-x86_64-relwithdebinfo for ff9ce74 has started.
2024-11-11 10:45:22 UTC Artifacts will be uploaded here
2024-11-11 10:48:42 UTC ya make is running...
🟡 2024-11-11 12:14:48 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
41782 36106 0 13 5559 104

2024-11-11 12:19:02 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-11-11 12:32:19 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
112 (only retried tests) 15 0 0 1 96

🟢 2024-11-11 12:32:25 UTC Build successful.
🟢 2024-11-11 12:32:45 UTC ydbd size 2.8 GiB changed* by +80.1 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 8c8ed07 merge: ff9ce74 diff diff %
ydbd size 3 046 966 392 Bytes 3 047 048 464 Bytes +80.1 KiB +0.003%
ydbd stripped size 482 241 624 Bytes 482 255 480 Bytes +13.5 KiB +0.003%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Nov 12, 2024

2024-11-12 16:54:42 UTC Pre-commit check linux-x86_64-relwithdebinfo for 1f29540 has started.
2024-11-12 16:54:52 UTC Artifacts will be uploaded here
2024-11-12 16:58:12 UTC ya make is running...
🟡 2024-11-12 18:29:55 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
41814 36131 0 11 5559 113

2024-11-12 18:33:24 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-11-12 18:44:49 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
119 (only retried tests) 12 0 0 0 107

🟢 2024-11-12 18:44:56 UTC Build successful.
🟢 2024-11-12 18:45:16 UTC ydbd size 2.8 GiB changed* by +60.2 KiB, which is < 100.0 KiB vs main: OK

ydbd size dash main: 2ec8c2c merge: 1f29540 diff diff %
ydbd size 3 050 021 944 Bytes 3 050 083 552 Bytes +60.2 KiB +0.002%
ydbd stripped size 482 461 304 Bytes 482 470 008 Bytes +8.5 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Nov 12, 2024

2024-11-12 16:55:31 UTC Pre-commit check linux-x86_64-release-asan for 1f29540 has started.
2024-11-12 16:55:42 UTC Artifacts will be uploaded here
2024-11-12 16:59:09 UTC ya make is running...
🟡 2024-11-12 18:36:42 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
10444 10351 0 43 7 43

🟢 2024-11-12 18:37:36 UTC Build successful.
🟡 2024-11-12 18:38:06 UTC ydbd size 5.7 GiB changed* by +145.7 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: 2ec8c2c merge: 1f29540 diff diff %
ydbd size 6 172 419 952 Bytes 6 172 569 136 Bytes +145.7 KiB +0.002%
ydbd stripped size 1 538 431 024 Bytes 1 538 459 312 Bytes +27.6 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Nov 13, 2024

2024-11-13 12:06:55 UTC Pre-commit check linux-x86_64-relwithdebinfo for c91ea04 has started.
2024-11-13 12:07:39 UTC Artifacts will be uploaded here
2024-11-13 12:11:22 UTC ya make is running...
🟡 2024-11-13 13:36:46 UTC Some tests failed, follow the links below. Going to retry failed tests...

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
41819 36135 0 14 5558 112

2024-11-13 13:40:17 UTC ya make is running... (failed tests rerun, try 2)
🟢 2024-11-13 13:52:19 UTC Tests successful.

Test history | Ya make output | Test bloat | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
118 (only retried tests) 11 0 0 0 107

🟢 2024-11-13 13:52:26 UTC Build successful.
🟡 2024-11-13 13:52:48 UTC ydbd size 2.8 GiB changed* by +107.7 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: ca52826 merge: c91ea04 diff diff %
ydbd size 3 050 061 192 Bytes 3 050 171 464 Bytes +107.7 KiB +0.004%
ydbd stripped size 482 466 520 Bytes 482 485 560 Bytes +18.6 KiB +0.004%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@github-actions
Copy link

github-actions bot commented Nov 13, 2024

2024-11-13 12:07:45 UTC Pre-commit check linux-x86_64-release-asan for c91ea04 has started.
2024-11-13 12:07:56 UTC Artifacts will be uploaded here
2024-11-13 12:11:18 UTC ya make is running...
🟡 2024-11-13 13:52:37 UTC Some tests failed, follow the links below. This fail is not in blocking policy yet

Test history | Ya make output | Test bloat

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
10450 10351 0 41 12 46

🟢 2024-11-13 13:53:31 UTC Build successful.
🟡 2024-11-13 13:54:19 UTC ydbd size 5.7 GiB changed* by +215.7 KiB, which is >= 100.0 KiB vs main: Warning

ydbd size dash main: ca52826 merge: c91ea04 diff diff %
ydbd size 6 172 497 608 Bytes 6 172 718 512 Bytes +215.7 KiB +0.004%
ydbd stripped size 1 538 453 072 Bytes 1 538 490 192 Bytes +36.2 KiB +0.002%

*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation

@UgnineSirdis UgnineSirdis merged commit 0f7cf47 into ydb-platform:main Nov 13, 2024
10 checks passed
@UgnineSirdis UgnineSirdis deleted the audit-log-json-template branch November 13, 2024 14:05
UgnineSirdis added a commit to UgnineSirdis/ydb that referenced this pull request Nov 13, 2024
dcherednik pushed a commit to dcherednik/ydb that referenced this pull request Dec 20, 2024
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.

2 participants