title: Using fluentd in docker to get nginx logs
body: <p>I have a scenario where <code>nginx</code> is running in one container and <code>fluentd</code> is in another container, i mapped <code>nginx</code> logs to <code>var/logs/nginx</code> directory, but i was unable to retrieve logs to elastic search using <code>fluentd</code>, please help me regarding this:</p>
  
  <p>fluentd.conf</p>
  
  <pre><code>&lt;source&gt;
    @type forward
    port 24224
    bind 0.0.0.0
  &lt;/source&gt;
  &lt;source&gt;
    @type tail
    path /var/log/nginx/access_in_log
    #pos_file /var/log/td-agent/nginx-access.log.pos
    tag nginx.access
    format nginx
  &lt;/source&gt;
  
  
  &lt;match nginx.access&gt;
    @type elasticsearch
    logstash_format true
    host elasticsearchkibana
    port 9200
    index_name nginxindex
    type_name nginxlogtype
  &lt;/match&gt;
  </code></pre>
  
  <p>Please let me know what am I missing.</p>