title: ERROR Unable to locate plugin type [for RollingFile and for TimeBasedTriggeringPolicy]
body: <p>I'm starting to work a docker elasticsearch 5.0.1 instance following the official instructions detailed at:</p>
  
  <p><a href="https://www.elastic.co/guide/en/elasticsearch/reference/5.0/settings.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/elasticsearch/reference/5.0/settings.html</a></p>
  
  <p>in order to configure elasticsearch.yml and log4j2.properties files, those files are located at:</p>
  
  <pre><code>$ pwd
  /system/mesos/elasticsearchf/config
  $ ls
  elasticsearch.yml log4j2.properties
  </code></pre>
  
  <p>Contain of these configuration files:</p>
  
  <pre><code>$cat elasticsearch.yml
  path:
  data: /usr/share/elasticsearch/data
  logs: /usr/share/elasticsearch/data
  shared_data: /usr/share/elasticsearch/data
  config: /usr/share/elasticsearch/config
  
  node.add_lock_id_to_custom_path: false
  index.number_of_shards: 2
  cluster.name: elasticcluster
  discovery.zen.ping.unicast.hosts: ["10.120.1.190", "10.120.1.191"]
  
  $cat log4j2.properties
  appender.rolling.type = RollingFile
  appender.rolling.name = rolling
  appender.rolling.fileName = ${sys:es.logs}.log
  appender.rolling.layout.type = PatternLayout
  appender.rolling.layout.pattern = [%d{ISO8601}][%-5p][%-25c] %.10000m%n
  appender.rolling.filePattern = ${sys:es.logs}-%d{yyyy-MM-dd}.log
  appender.rolling.policies.type = Policies
  appender.rolling.policies.time.type = TimeBasedTriggeringPolicy
  appender.rolling.policies.time.interval = 1
  appender.rolling.policies.time.modulate = true
  </code></pre>
  
  <p>And when I run command:</p>
  
  <pre><code>$ docker -D -H unix:///var/run/docker.sock run --cpu-shares 1024 --memory 2634022912 -e ES_JAVA_OPTS="-Xms2G -Xmx2G" -v /system/mesos/elasticsearchf/data:/usr/share/elasticsearch/data/:rw -v /system/mesos/elasticsearchf/config:/usr/share/elasticsearch/config/:rw --net bridge -p 9200:9200/tcp -p 9300:9300/tcp docker.elastic.co/elasticsearch/elasticsearch:5.0.1
  </code></pre>
  
  <p>I got error messages related with log4j2 messages you can see below</p>
  
  <p>Any help will be welcome</p>
  
  <p>Kind Regards</p>
  
  <pre><code>DEBU[0001] framesize: 81
  2016-12-01 10:37:15,526 main ERROR Unable to locate plugin type for RollingFile
  DEBU[0001] framesize: 90
  2016-12-01 10:37:15,554 main ERROR Unable to locate plugin for TimeBasedTriggeringPolicy
  DEBU[0001] framesize: 2223
  2016-12-01 10:37:15,555 main ERROR Unable to invoke factory method in class class org.apache.logging.log4j.core.appender.rolling.CompositeTriggeringPolicy for element Policies. java.lang.NullPointerException
          at org.apache.logging.log4j.core.config.plugins.visitors.PluginElementVisitor.visit(PluginElementVisitor.java:52)
          at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.generateParameters(PluginBuilder.java:243)
          at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:131)
          at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:918)
          at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:858)
          at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:850)
          at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:850)
          at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:479)
          at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:219)
          at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:231)
          at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:496)
          at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:249)
          at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:116)
          at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:83)
          at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:249)
          at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:112)
          at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:103)
          at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
          at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)
          at org.elasticsearch.cli.Command.main(Command.java:62)
          at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)
          at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:73)
  
  DEBU[0001] framesize: 76
  2016-12-01 10:37:15,557 main ERROR Unable to locate plugin for RollingFile
  DEBU[0001] framesize: 1974
  2016-12-01 10:37:15,558 main ERROR Unable to invoke factory method in class class org.apache.logging.log4j.core.config.AppendersPlugin for element Appenders. java.lang.NullPointerException
          at org.apache.logging.log4j.core.config.plugins.visitors.PluginElementVisitor.visit(PluginElementVisitor.java:52)
          at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.generateParameters(PluginBuilder.java:243)
          at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:131)
          at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:918)
          at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:858)
          at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:479)
          at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:219)
          at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:231)
          at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:496)
          at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:249)
          at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:116)
          at org.elasticsearch.common.logging.LogConfigurator.configure(LogConfigurator.java:83)
          at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:249)
          at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:112)
          at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:103)
          at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
          at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)
          at org.elasticsearch.cli.Command.main(Command.java:62)
          at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)
          at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:73)
  
  DEBU[0002] Corrupted prefix: []
  DEBU[0002] [hijack] End of stdout
  </code></pre>