title: log4j2- ERROR Appenders contains an invalid element or attribute "Flume"
body: <p>I am trying to use Flume Appender Properties of log4j2 .But the following errors are obtained when run the program .</p>
  
  <pre><code>  2016-01-20 16:36:42,436 main ERROR Appenders contains an invalid element or attribute "Flume"
      2016-01-20 16:36:42,436 main ERROR Appenders contains an invalid element or attribute "Flume"
      2016-01-20 16:36:42,446 main ERROR Unable to locate appender "eventLogger" for logger config "root"
      2016-01-20 16:36:42,446 main ERROR Unable to locate appender "eventLogger" for logger config "root"
  </code></pre>
  
  <p><strong>The log4j.xml file is:</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration status="WARN"&gt;
    &lt;Appenders&gt;
      &lt;Console name="Console" target="SYSTEM_OUT"&gt;
          &lt;PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" /&gt;
      &lt;/Console&gt;
      &lt;Flume name="eventLogger" compress="false" type="Avro"&gt;
          &lt;Agent host="192.168.8.50" port="41414"/&gt;
      &lt;/Flume&gt;
    &lt;/Appenders&gt;
    &lt;Loggers&gt;
      &lt;Root level="info"&gt;
          &lt;AppenderRef ref="Console" /&gt;
          &lt;AppenderRef ref="eventLogger" /&gt;
      &lt;/Root&gt;
    &lt;/Loggers&gt;
  &lt;/Configuration&gt;
  </code></pre>
  
  <p><strong>And in .java code</strong> </p>
  
  <pre><code>LoggerContext context = (org.apache.logging.log4j.core.LoggerContext) LogManager.getContext(false);
  File file = new File("src/log4j2.xml");
  context.setConfigLocation(file.toURI());
  </code></pre>
  
  <p>How I can figure out the problem .May be log4j2 doesn't work properly .</p>