diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-data-elasticsearch/pom.xml b/spring-boot-project/spring-boot-starters/spring-boot-starter-data-elasticsearch/pom.xml
index 31a9d47182a..8d9fb105291 100644
--- a/spring-boot-project/spring-boot-starters/spring-boot-starter-data-elasticsearch/pom.xml
+++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-data-elasticsearch/pom.xml
@@ -27,6 +27,10 @@
org.slf4j
jcl-over-slf4j
+
+ org.apache.logging.log4j
+ log4j-core
+
diff --git a/spring-boot-project/spring-boot-starters/spring-boot-starter-logging/pom.xml b/spring-boot-project/spring-boot-starters/spring-boot-starter-logging/pom.xml
index 6328e9a8342..362eaed3f01 100644
--- a/spring-boot-project/spring-boot-starters/spring-boot-starter-logging/pom.xml
+++ b/spring-boot-project/spring-boot-starters/spring-boot-starter-logging/pom.xml
@@ -18,6 +18,10 @@
ch.qos.logback
logback-classic
+
+ org.apache.logging.log4j
+ log4j-to-slf4j
+
org.slf4j
jul-to-slf4j