diff --git a/docs/reference/migration/migrate_7_0/settings.asciidoc b/docs/reference/migration/migrate_7_0/settings.asciidoc index 7eab006efdc30..d983994b0c517 100644 --- a/docs/reference/migration/migrate_7_0/settings.asciidoc +++ b/docs/reference/migration/migrate_7_0/settings.asciidoc @@ -67,6 +67,26 @@ in the cluster state, or set on dynamic settings updates, we will automatically upgrade the setting from `search.remote.*` to `cluster.remote.*`. The fallback settings will be removed in 8.0.0. +[float] +[[audit-logfile-local-node-info]] +==== Audit logfile local node info + +The following settings have been removed: + +- `xpack.security.audit.logfile.prefix.emit_node_host_address`, instead use + `xpack.security.audit.logfile.emit_node_host_address` +- `xpack.security.audit.logfile.prefix.emit_node_host_name`, instead use + `xpack.security.audit.logfile.emit_node_host_name` +- `xpack.security.audit.logfile.prefix.emit_node_name`, instead use + `xpack.security.audit.logfile.emit_node_name` + +The new settings have the same meaning as the removed ones, but the `prefix` +name component is no longer meaningful as logfile audit entries are structured +JSON documents and are not prefixed by anything. +Moreover, `xpack.security.audit.logfile.emit_node_name` has changed its default +from `true` to `false`. All other settings mentioned before, have kept their +default value of `false`. + [float] [[include-realm-type-in-setting]] ==== Security realms settings @@ -84,7 +104,7 @@ xpack.security.authc.realms: url: "ldaps://ldap.example.com/" -------------------------------------------------- -Must be migrated to: +Must be migrated to: [source,yaml] -------------------------------------------------- xpack.security.authc.realms: diff --git a/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/audit/logfile/LoggingAuditTrail.java b/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/audit/logfile/LoggingAuditTrail.java index 0a3ae1224683e..7532f4ce28fe5 100644 --- a/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/audit/logfile/LoggingAuditTrail.java +++ b/x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/audit/logfile/LoggingAuditTrail.java @@ -108,18 +108,12 @@ public class LoggingAuditTrail implements AuditTrail, ClusterStateListener { public static final String OPAQUE_ID_FIELD_NAME = "opaque_id"; public static final String NAME = "logfile"; - public static final Setting DEPRECATED_EMIT_HOST_ADDRESS_SETTING = Setting.boolSetting( - setting("audit.logfile.prefix.emit_node_host_address"), false, Property.NodeScope, Property.Dynamic, Property.Deprecated); public static final Setting EMIT_HOST_ADDRESS_SETTING = Setting.boolSetting(setting("audit.logfile.emit_node_host_address"), - DEPRECATED_EMIT_HOST_ADDRESS_SETTING, Property.NodeScope, Property.Dynamic); - public static final Setting DEPRECATED_EMIT_HOST_NAME_SETTING = Setting.boolSetting( - setting("audit.logfile.prefix.emit_node_host_name"), false, Property.NodeScope, Property.Dynamic, Property.Deprecated); + false, Property.NodeScope, Property.Dynamic); public static final Setting EMIT_HOST_NAME_SETTING = Setting.boolSetting(setting("audit.logfile.emit_node_host_name"), - DEPRECATED_EMIT_HOST_NAME_SETTING, Property.NodeScope, Property.Dynamic); - public static final Setting DEPRECATED_EMIT_NODE_NAME_SETTING = Setting - .boolSetting(setting("audit.logfile.prefix.emit_node_name"), false, Property.NodeScope, Property.Dynamic, Property.Deprecated); + false, Property.NodeScope, Property.Dynamic); public static final Setting EMIT_NODE_NAME_SETTING = Setting.boolSetting(setting("audit.logfile.emit_node_name"), - DEPRECATED_EMIT_NODE_NAME_SETTING, Property.NodeScope, Property.Dynamic); + false, Property.NodeScope, Property.Dynamic); public static final Setting EMIT_NODE_ID_SETTING = Setting.boolSetting(setting("audit.logfile.emit_node_id"), true, Property.NodeScope, Property.Dynamic); private static final List DEFAULT_EVENT_INCLUDES = Arrays.asList(ACCESS_DENIED.toString(), ACCESS_GRANTED.toString(),