diff --git a/plugins/ingest-useragent/src/main/java/org/elasticsearch/ingest/useragent/IngestUserAgentPlugin.java b/plugins/ingest-useragent/src/main/java/org/elasticsearch/ingest/useragent/IngestUserAgentPlugin.java index 0257c267eb4..3e9a42fb8d9 100644 --- a/plugins/ingest-useragent/src/main/java/org/elasticsearch/ingest/useragent/IngestUserAgentPlugin.java +++ b/plugins/ingest-useragent/src/main/java/org/elasticsearch/ingest/useragent/IngestUserAgentPlugin.java @@ -46,11 +46,6 @@ public class IngestUserAgentPlugin extends Plugin implements IngestPlugin { Setting.Property.NodeScope); static final String DEFAULT_PARSER_NAME = "_default_"; - private final Settings settings; - - IngestUserAgentPlugin(Settings settings) { - this.settings = settings; - } @Override public Map getProcessors( @@ -62,7 +57,7 @@ public class IngestUserAgentPlugin extends Plugin implements IngestPlugin { "the user agent directory [" + userAgentConfigDirectory + "] containing the regex file doesn't exist"); } - long cacheSize = CACHE_SIZE_SETTING.get(settings); + long cacheSize = CACHE_SIZE_SETTING.get(env.settings()); Map userAgentParsers; try { userAgentParsers = createUserAgentParsers(userAgentConfigDirectory, new UserAgentCache(cacheSize));