title: Integration problem NLog with Elasticsearch in .NET Core
body: <p>I am using NLog to write logs to file, which is working fine. Now I want to write logs to Elasticsearch, so I added NLog.Targets.ElasticSearch in nugets package and I configured my Nlog.config file. Unfortunately, I can't see any log information while calling http://localhost:9200/_search</p>
  <p>In NLog.config, I added extension and targets for Elasticsearch:</p>
  <pre class="lang-xml prettyprint-override"><code>   &lt;extensions&gt;
      &lt;add assembly=&quot;NLog.Extended&quot; /&gt;
      &lt;add assembly=&quot;NLog.Targets.ElasticSearch&quot;/&gt;
     &lt;/extensions&gt;
  
  &lt;targets&gt;
    &lt;target xsi:type=&quot;ElasticSearch&quot; 
          name=&quot;elastic&quot; 
          layout=&quot;${logger} | ${threadid} | ${message}&quot; 
          includeAllProperties=&quot;true&quot; 
          uri=&quot;http://localhost:9200&quot;/&gt;
   &lt;/targets&gt;
  
  &lt;rules&gt;
      &lt;logger name=&quot;*&quot; minlevel=&quot;Trace&quot; writeTo=&quot;file&quot; /&gt;
      &lt;logger name=&quot;*&quot; minlevel=&quot;Trace&quot; writeTo=&quot;elastic&quot; /&gt;
  &lt;/rules&gt;
  </code></pre>
  <p>I expect Trace type NLog should be written in Elasticsearch. Am I missing something in the config file?</p>
  <p>By the way, I checked this doc for parameters: <a href="https://github.com/ReactiveMarkets/NLog.Targets.ElasticSearch/wiki" rel="nofollow noreferrer">https://github.com/ReactiveMarkets/NLog.Targets.ElasticSearch/wiki</a></p>