title: log4j2 configuration file in Spring Config Server lookups don't work
body: <p>I setup my spring-boot app to fetch log4j2 configuration file from config server. But lookups are not working. If I place the log configuration file under resources folder it works fine. Also monitor interval is not working if the file is on config server.</p>
  <p>Example of my configuration file:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;Configuration status=&quot;warn&quot; monitorInterval=&quot;60&quot;&gt;
      &lt;Appenders&gt;
          &lt;Console name=&quot;ConsoleJSONAppender&quot; target=&quot;SYSTEM_OUT&quot;&gt;
              &lt;JSONLayout complete=&quot;false&quot; compact=&quot;false&quot; eventEol=&quot;true&quot; properties=&quot;false&quot; stacktraceAsString=&quot;true&quot;&gt;
                  &lt;KeyValuePair key=&quot;correlation-id&quot; value=&quot;${ctx:CORRELATION_ID}&quot; /&gt;
                  &lt;KeyValuePair key=&quot;timestamp&quot; value=&quot;${date:yyyy-MM-dd'T'HH:mm:ss.SSSZ}&quot; /&gt;
              &lt;/JSONLayout&gt;
          &lt;/Console&gt;
  
      &lt;/Appenders&gt;
  
      &lt;Loggers&gt;
          &lt;AsyncRoot level=&quot;info&quot;&gt;
              &lt;AppenderRef ref=&quot;ConsoleJSONAppender&quot; /&gt;
          &lt;/AsyncRoot&gt;
          
      &lt;/Loggers&gt;
  
  &lt;/Configuration&gt;
  </code></pre>
  <p>The configuration is properly loaded from config server because the logs are in json format, but &quot;${date:yyyy-MM-dd'T'HH:mm:ss.SSSZ}&quot; and &quot;${ctx:CORRELATION_ID}&quot; aren't resolved. Again I want to mention that if the configuration file is under resources folder this works. So this let me think that the problem is on the configuration file being on config server. There is any limitation on lookups if the file is on config server?</p>
  <p>Thanks.</p>