mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-25 16:42:34 +00:00
* fix: adding a -- separator for spi options closes: #39063 Signed-off-by: Steve Hawkins <shawkins@redhat.com> * adding a warning for ambiguous spi options also adding a note about the change Signed-off-by: Steve Hawkins <shawkins@redhat.com> # Conflicts: # docs/documentation/upgrading/topics/changes/changes-26_3_0.adoc * updating docs to the new format Signed-off-by: Steve Hawkins <shawkins@redhat.com> # Conflicts: # docs/guides/high-availability/examples/generated/keycloak-ispn.yaml # docs/guides/high-availability/examples/generated/keycloak.yaml * internally using the new spi options also adding a deprecation notice Signed-off-by: Steve Hawkins <shawkins@redhat.com> * Apply suggestions from code review Co-authored-by: Martin Bartoš <mabartos@redhat.com> Signed-off-by: Steven Hawkins <shawkins@redhat.com> * correcting options output adding + + inlining where needed Signed-off-by: Steve Hawkins <shawkins@redhat.com> * adding test showing the env mapping with __ Signed-off-by: Steve Hawkins <shawkins@redhat.com> --------- Signed-off-by: Steve Hawkins <shawkins@redhat.com> Signed-off-by: Steven Hawkins <shawkins@redhat.com> Co-authored-by: Martin Bartoš <mabartos@redhat.com>
43 lines
1.5 KiB
Plaintext
43 lines
1.5 KiB
Plaintext
|
|
=== Auditing admin events
|
|
|
|
You can record all actions that are performed by an administrator in the Admin Console. The Admin Console performs administrative actions by invoking the {project_name} REST interface and {project_name} audits these REST invocations. You can view the resulting events in the Admin Console.
|
|
|
|
.Procedure
|
|
|
|
Use this procedure to start auditing admin actions.
|
|
|
|
. Click *Realm settings* in the menu.
|
|
. Click the *Events* tab.
|
|
. Click the *Admin events settings* tab.
|
|
. Toggle *Save events* to *ON*.
|
|
+
|
|
{project_name} displays the *Include representation* switch.
|
|
+
|
|
. Toggle *Include representation* to *ON*.
|
|
+
|
|
The `Include Representation` switch includes JSON documents sent through the admin REST API so you can view the administrators actions.
|
|
+
|
|
.Admin events settings
|
|
image:images/admin-events-settings.png[Admin events settings]
|
|
|
|
. Click *Save*.
|
|
|
|
. To clear the database of stored actions, click *Clear admin events*.
|
|
|
|
.Procedure
|
|
|
|
You can now view admin events.
|
|
|
|
. Click *Events* in the menu.
|
|
. Click the *Admin events* tab.
|
|
+
|
|
.Admin events
|
|
image:images/admin-events.png[Admin events]
|
|
|
|
When the `Include Representation` switch is ON, it can lead to storing a lot of information in the database. You can set a maximum length of the representation by using the `--spi-events-store--jpa--max-field-length` argument. This setting is useful if you want to adhere to the underlying storage limitation. For example:
|
|
|
|
[source,bash]
|
|
----
|
|
kc.[sh|bat] --spi-events-store--jpa--max-field-length=2500
|
|
---- |