Back to Kibana

Kibana audit events

docs/reference/kibana-audit-events.md

9.4.024.5 KB
Original Source

Kibana audit events

Audit logging is a subscription feature that you can enable to keep track of security-related events, such as authorization success and failures. Logging these events enables you to monitor Kibana for suspicious activity and provides evidence in the event of an attack.

Refer to enabling and configuring audit logs for details on activation and tunning.

Kibana audit events [xpack-security-ecs-audit-logging]

This section describes {{kib}} events that can be logged for auditing purposes.

Each event is broken down into category, type, action, and outcome fields to make it easy to filter, query and aggregate the resulting logs. The trace.id field can be used to correlate multiple events that originate from the same request.

Refer to audit schema for a table of fields logged with audit events.

::::{note} To ensure that a record of every operation is persisted even in case of an unexpected error, asynchronous write operations are logged immediately after all authorization checks have passed, but before the response from {{es}} is received. Refer to the corresponding {{es}} logs for potential write errors. ::::

Category: authentication

ActionOutcomeDescription
user_loginsuccessUser has logged in successfully.
failureFailed login attempt (e.g. due to invalid credentials).
user_logoutunknownUser is logging out.
session_cleanupunknownRemoving invalid or expired session.
access_agreement_acknowledgedn/aUser has acknowledged the access agreement.

Category: database

Type: creation

ActionOutcomeDescription
saved_object_createunknownUser is creating a saved object.
failureUser is not authorized to create a saved object.
saved_object_open_point_in_timeunknownUser is creating a Point In Time to use when querying saved objects.
failureUser is not authorized to create a Point In Time for the provided saved object types.
connector_createunknownUser is creating a connector.
failureUser is not authorized to create a connector.
rule_createunknownUser is creating a rule.
failureUser is not authorized to create a rule.
ad_hoc_run_createunknownUser is creating an ad hoc run.
failureUser is not authorized to create an ad hoc run.
space_createunknownUser is creating a space.
failureUser is not authorized to create a space.
case_createunknownUser is creating a case.
failureUser is not authorized to create a case.
case_configuration_createunknownUser is creating a case configuration.
failureUser is not authorized to create a case configuration.
case_comment_createunknownUser is creating a case comment.
failureUser is not authorized to create a case comment.
case_comment_bulk_createunknownUser is creating multiple case comments.
failureUser is not authorized to create multiple case comments.
case_user_action_create_commentsuccessUser has created a case comment.
case_user_action_create_casesuccessUser has created a case.
ml_put_ad_jobsuccessCreating anomaly detection job.
failureFailed to create anomaly detection job.
ml_put_ad_datafeedsuccessCreating anomaly detection datafeed.
failureFailed to create anomaly detection datafeed.
ml_put_calendarsuccessCreating calendar.
failureFailed to create calendar.
ml_post_calendar_eventssuccessAdding events to calendar.
failureFailed to add events to calendar.
ml_forecastsuccessCreating anomaly detection forecast.
failureFailed to create anomaly detection forecast.
ml_put_filtersuccessCreating filter.
failureFailed to create filter.
ml_put_dfa_jobsuccessCreating data frame analytics job.
failureFailed to create data frame analytics job.
ml_put_trained_modelsuccessCreating trained model.
failureFailed to create trained model.
product_documentation_createunknownUser requested to install the product documentation for use in AI Assistants.
knowledge_base_entry_createsuccessUser has created knowledge base entry [id=x]
failureFailed attempt to create a knowledge base entry
knowledge_base_entry_updatesuccessUser has updated knowledge base entry [id=x]
failureFailed attempt to update a knowledge base entry
knowledge_base_entry_deletesuccessUser has deleted knowledge base entry [id=x]
failureFailed attempt to delete a knowledge base entry

Type: change

ActionOutcomeDescription
saved_object_updateunknownUser is updating a saved object.
failureUser is not authorized to update a saved object.
saved_object_update_objects_spacesunknownUser is adding and/or removing a saved object to/from other spaces.
failureUser is not authorized to add or remove a saved object to or from other spaces.
saved_object_remove_referencesunknownUser is removing references to a saved object.
failureUser is not authorized to remove references to a saved object.
saved_object_collect_multinamespace_referencessuccessUser has accessed references to a multi-space saved object.
failureUser is not authorized to access references to a multi-space saved object.
connector_updateunknownUser is updating a connector.
failureUser is not authorized to update a connector.
rule_updateunknownUser is updating a rule.
failureUser is not authorized to update a rule.
rule_update_api_keyunknownUser is updating the API key of a rule.
failureUser is not authorized to update the API key of a rule.
rule_enableunknownUser is enabling a rule.
failureUser is not authorized to enable a rule.
rule_disableunknownUser is disabling a rule.
failureUser is not authorized to disable a rule.
rule_muteunknownUser is muting a rule.
failureUser is not authorized to mute a rule.
rule_unmuteunknownUser is unmuting a rule.
failureUser is not authorized to unmute a rule.
rule_alert_muteunknownUser is muting an alert.
failureUser is not authorized to mute an alert.
rule_alert_unmuteunknownUser is unmuting an alert.
failureUser is not authorized to unmute an alert.
space_updateunknownUser is updating a space.
failureUser is not authorized to update a space.
alert_updateunknownUser is updating an alert.
failureUser is not authorized to update an alert.
rule_snoozeunknownUser is snoozing a rule.
failureUser is not authorized to snooze a rule.
rule_unsnoozeunknownUser is unsnoozing a rule.
failureUser is not authorized to unsnooze a rule.
rule_alert_acknowledge {applies_to}stack: ga 9.4+unknownUser is acknowledging an alert (updating workflow status).
failureUser is not authorized to acknowledge an alert.
rule_alert_unacknowledge {applies_to}stack: ga 9.4+successUser has unacknowledged an alert (reverted workflow status to open).
failureUser is not authorized to unacknowledge an alert.
case_updateunknownUser is updating a case.
failureUser is not authorized to update a case.
case_pushunknownUser is pushing a case to an external service.
failureUser is not authorized to push a case to an external service.
case_configuration_updateunknownUser is updating a case configuration.
failureUser is not authorized to update a case configuration.
case_comment_updateunknownUser is updating a case comment.
failureUser is not authorized to update a case comment.
case_user_action_add_case_assigneessuccessUser has added a case assignee.
case_user_action_update_case_connectorsuccessUser has updated a case connector.
case_user_action_update_case_descriptionsuccessUser has updated a case description.
case_user_action_update_case_settingssuccessUser has updated the case settings.
case_user_action_update_case_severitysuccessUser has updated the case severity.
case_user_action_update_case_statussuccessUser has updated the case status.
case_user_action_pushed_casesuccessUser has pushed a case to an external service.
case_user_action_add_case_tagssuccessUser has added tags to a case.
case_user_action_update_case_titlesuccessUser has updated the case title.
ml_open_ad_jobsuccessOpening anomaly detection job.
failureFailed to open anomaly detection job.
ml_close_ad_jobsuccessClosing anomaly detection job.
failureFailed to close anomaly detection job.
ml_start_ad_datafeedsuccessStarting anomaly detection datafeed.
failureFailed to start anomaly detection datafeed.
ml_stop_ad_datafeedsuccessStopping anomaly detection datafeed.
failureFailed to stop anomaly detection datafeed.
ml_update_ad_jobsuccessUpdating anomaly detection job.
failureFailed to update anomaly detection job.
ml_reset_ad_jobsuccessResetting anomaly detection job.
failureFailed to reset anomaly detection job.
ml_revert_ad_snapshotsuccessReverting anomaly detection snapshot.
failureFailed to revert anomaly detection snapshot.
ml_update_ad_datafeedsuccessUpdating anomaly detection datafeed.
failureFailed to update anomaly detection datafeed.
ml_put_calendar_jobsuccessAdding job to calendar.
failureFailed to add job to calendar.
ml_delete_calendar_jobsuccessRemoving job from calendar.
failureFailed to remove job from calendar.
ml_update_filtersuccessUpdating filter.
failureFailed to update filter.
ml_start_dfa_jobsuccessStarting data frame analytics job.
failureFailed to start data frame analytics job.
ml_stop_dfa_jobsuccessStopping data frame analytics job.
failureFailed to stop data frame analytics job.
ml_update_dfa_jobsuccessUpdating data frame analytics job.
failureFailed to update data frame analytics job.
ml_start_trained_model_deploymentsuccessStarting trained model deployment.
failureFailed to start trained model deployment.
ml_stop_trained_model_deploymentsuccessStopping trained model deployment.
failureFailed to stop trained model deployment.
ml_update_trained_model_deploymentsuccessUpdating trained model deployment.
failureFailed to update trained model deployment.
product_documentation_updateunknownUser requested to update the product documentation for use in AI Assistants.

Type: deletion

ActionOutcomeDescription
saved_object_deleteunknownUser is deleting a saved object.
failureUser is not authorized to delete a saved object.
saved_object_close_point_in_timeunknownUser is deleting a Point In Time that was used to query saved objects.
failureUser is not authorized to delete a Point In Time.
connector_deleteunknownUser is deleting a connector.
failureUser is not authorized to delete a connector.
rule_deleteunknownUser is deleting a rule.
failureUser is not authorized to delete a rule.
ad_hoc_run_deleteunknownUser is deleting an ad hoc run.
failureUser is not authorized to delete an ad hoc run.
space_deleteunknownUser is deleting a space.
failureUser is not authorized to delete a space.
case_deleteunknownUser is deleting a case.
failureUser is not authorized to delete a case.
case_comment_delete_allunknownUser is deleting all comments associated with a case.
failureUser is not authorized to delete all comments associated with a case.
case_comment_deleteunknownUser is deleting a case comment.
failureUser is not authorized to delete a case comment.
case_user_action_delete_case_assigneessuccessUser has removed a case assignee.
case_user_action_delete_commentsuccessUser has deleted a case comment.
case_user_action_delete_casesuccessUser has deleted a case.
case_user_action_delete_case_tagssuccessUser has removed tags from a case.
ml_delete_ad_jobsuccessDeleting anomaly detection job.
failureFailed to delete anomaly detection job.
ml_delete_model_snapshotsuccessDeleting model snapshot.
failureFailed to delete model snapshot.
ml_delete_ad_datafeedsuccessDeleting anomaly detection datafeed.
failureFailed to delete anomaly detection datafeed.
ml_delete_calendarsuccessDeleting calendar.
failureFailed to delete calendar.
ml_delete_calendar_eventsuccessDeleting calendar event.
failureFailed to delete calendar event.
ml_delete_filtersuccessDeleting filter.
failureFailed to delete filter.
ml_delete_forecastsuccessDeleting forecast.
failureFailed to delete forecast.
ml_delete_dfa_jobsuccessDeleting data frame analytics job.
failureFailed to delete data frame analytics job.
ml_delete_trained_modelsuccessDeleting trained model.
failureFailed to delete trained model.
product_documentation_deleteunknownUser requested to delete the product documentation for use in AI Assistants.

Type: access

ActionOutcomeDescription
saved_object_getsuccessUser has accessed a saved object.
failureUser is not authorized to access a saved object.
saved_object_resolvesuccessUser has accessed a saved object.
failureUser is not authorized to access a saved object.
saved_object_findsuccessUser has accessed a saved object as part of a search operation.
failureUser is not authorized to search for saved objects.
connector_getsuccessUser has accessed a connector.
failureUser is not authorized to access a connector.
connector_findsuccessUser has accessed a connector as part of a search operation.
failureUser is not authorized to search for connectors.
rule_getsuccessUser has accessed a rule.
failureUser is not authorized to access a rule.
rule_get_execution_logsuccessUser has accessed execution log for a rule.
failureUser is not authorized to access execution log for a rule.
rule_findsuccessUser has accessed a rule as part of a search operation.
failureUser is not authorized to search for rules.
rule_schedule_backfillsuccessUser has accessed a rule as part of a backfill schedule operation.
failureUser is not authorized to access rule for backfill scheduling.
ad_hoc_run_getsuccessUser has accessed an ad hoc run.
failureUser is not authorized to access ad hoc run.
ad_hoc_run_findsuccessUser has accessed an ad hoc run as part of a search operation.
failureUser is not authorized to search for ad hoc runs.
space_getsuccessUser has accessed a space.
failureUser is not authorized to access a space.
space_findsuccessUser has accessed a space as part of a search operation.
failureUser is not authorized to search for spaces.
alert_getsuccessUser has accessed an alert.
failureUser is not authorized to access an alert.
alert_findsuccessUser has accessed an alert as part of a search operation.
failureUser is not authorized to access alerts.
case_getsuccessUser has accessed a case.
failureUser is not authorized to access a case.
case_bulk_getsuccessUser has accessed multiple cases.
failureUser is not authorized to access multiple cases.
case_resolvesuccessUser has accessed a case.
failureUser is not authorized to access a case.
case_findsuccessUser has accessed a case as part of a search operation.
failureUser is not authorized to search for cases.
case_ids_by_alert_id_getsuccessUser has accessed cases.
failureUser is not authorized to access cases.
case_get_metricssuccessUser has accessed metrics for a case.
failureUser is not authorized to access metrics for a case.
cases_get_metricssuccessUser has accessed metrics for cases.
failureUser is not authorized to access metrics for cases.
case_configuration_findsuccessUser has accessed a case configuration as part of a search operation.
failureUser is not authorized to search for case configurations.
case_comment_get_metricssuccessUser has accessed metrics for case comments.
failureUser is not authorized to access metrics for case comments.
case_comment_alerts_attach_to_casesuccessUser has accessed case alerts.
failureUser is not authorized to access case alerts.
case_comment_getsuccessUser has accessed a case comment.
failureUser is not authorized to access a case comment.
case_comment_bulk_getsuccessUser has accessed multiple case comments.
failureUser is not authorized to access multiple case comments.
case_comment_get_allsuccessUser has accessed case comments.
failureUser is not authorized to access case comments.
case_comment_findsuccessUser has accessed a case comment as part of a search operation.
failureUser is not authorized to search for case comments.
case_categories_getsuccessUser has accessed a case.
failureUser is not authorized to access a case.
case_tags_getsuccessUser has accessed a case.
failureUser is not authorized to access a case.
case_reporters_getsuccessUser has accessed a case.
failureUser is not authorized to access a case.
case_find_statusessuccessUser has accessed a case as part of a search operation.
failureUser is not authorized to search for cases.
case_user_actions_getsuccessUser has accessed the user activity of a case.
failureUser is not authorized to access the user activity of a case.
case_user_actions_findsuccessUser has accessed the user activity of a case as part of a search operation.
failureUser is not authorized to access the user activity of a case.
case_user_action_get_metricssuccessUser has accessed metrics for the user activity of a case.
failureUser is not authorized to access metrics for the user activity of a case.
case_user_action_get_userssuccessUser has accessed the users associated with a case.
failureUser is not authorized to access the users associated with a case.
case_connectors_getsuccessUser has accessed the connectors of a case.
failureUser is not authorized to access the connectors of a case.
ml_infer_trained_modelsuccessInferring using trained model.
failureFailed to infer using trained model.

Category: web

ActionOutcomeDescription
http_requestunknownUser is making an HTTP request.

Audit schema [xpack-security-ecs-audit-schema]

Audit logs are written in JSON using [Elastic Common Schema (ECS)]Elastic Common Schema (ECS)) specification.

Base fields

FieldDescription
@timestampTime when the event was generated.
Example: 2016-05-23T08:05:34.853Z
messageHuman readable description of the event.

Event fields

FieldDescription
event.actionThe action captured by the event.
Refer to Audit events for a table of possible actions.
event.categoryHigh level category associated with the event.
This field is closely related to event.type, which is used as a subcategory.
Possible values:database,web,authentication
event.typeSubcategory associated with the event.
This field can be used along with the event.category field to enable filtering events down to a level appropriate for single visualization.
Possible values:creation,access,change,deletion
event.outcomeDenotes whether the event represents a success or failure:
  • Any actions that the user is not authorized to perform are logged with outcome: failure
  • Authorized read operations are only logged after successfully fetching the data from {{es}} with outcome: success
  • Authorized create, update, or delete operations are logged before attempting the operation in {{es}} with outcome: unknown

Possible values: success, failure, unknown |

User fields

FieldDescription
user.idUnique identifier of the user across sessions (See user profiles).
user.nameLogin name of the user.
Example: jdoe
user.roles[]Set of user roles at the time of the event.
Example: [kibana_admin, reporting_user]

Kibana fields

FieldDescription
kibana.space_idID of the space associated with the event.
Example: default
kibana.session_idID of the user session associated with the event.
Each login attempt results in a unique session id.
kibana.saved_object.typeType of saved object associated with the event.
Example: dashboard
kibana.saved_object.idID of the saved object associated with the event.
kibana.authentication_providerName of the authentication provider associated with the event.
Example: my-saml-provider
kibana.authentication_typeType of the authentication provider associated with the event.
Example: saml
kibana.authentication_realmName of the Elasticsearch realm that has authenticated the user.
Example: native
kibana.lookup_realmName of the Elasticsearch realm where the user details were retrieved from.
Example: native
kibana.add_to_spaces[]Set of space IDs that a saved object is being shared to as part of the event.
Example: [default, marketing]
kibana.delete_from_spaces[]Set of space IDs that a saved object is being removed from as part of the event.
Example: [marketing]

Error fields

FieldDescription
error.codeError code describing the error.
error.messageError message.

HTTP and URL fields

FieldDescription
client.ipClient IP address.
http.request.methodHTTP request method.
Example: get, post, put, delete
http.request.headers.x-forwarded-forX-Forwarded-For request header used to identify the originating client IP address when connecting through proxy servers.
Example: 161.66.20.177, 236.198.214.101
url.domainDomain of the URL.
Example: www.elastic.co
url.pathPath of the request.
Example: /search
url.portPort of the request.
Example: 443
url.queryThe query field describes the query string of the request.
Example: q=elasticsearch
url.schemeScheme of the request.
Example: https

Tracing fields

FieldDescription
trace.idUnique identifier allowing events of the same transaction from {{kib}} and {{es}} to be correlated.