diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/node/internal/InternalSettingsPerparer.java b/modules/elasticsearch/src/main/java/org/elasticsearch/node/internal/InternalSettingsPerparer.java index 735a30db7ee..125a15f275b 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/node/internal/InternalSettingsPerparer.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/node/internal/InternalSettingsPerparer.java @@ -106,13 +106,7 @@ public class InternalSettingsPerparer { // put back the env settings settingsBuilder = settingsBuilder().put(v1); - settingsBuilder.put("path.home", cleanPath(environment.homeFile().getAbsolutePath())); - settingsBuilder.put("path.work", cleanPath(environment.workFile().getAbsolutePath())); - String[] paths = new String[environment.dataFiles().length]; - for (int i = 0; i < environment.dataFiles().length; i++) { - paths[i] = cleanPath(environment.dataFiles()[i].getAbsolutePath()); - } - settingsBuilder.putArray("path.data", paths); + // we put back the path.logs so we can use it in the logging configuration file settingsBuilder.put("path.logs", cleanPath(environment.logsFile().getAbsolutePath())); v1 = settingsBuilder.build();