title: Connect aws-elasticssearch with fluentd using tdagent
body: <p>I have connected elasticsearch on local machine successfully using tdagent, but in staging enviorment I need to connect with aws elasticsearch, If I have installed fluentd using ruby,  then there is a plugin </p>
  
  <pre><code>gem 'fluent-plugin-aws-elasticsearch-service'
  </code></pre>
  
  <p>But when using fluentd with tdagent how we can configure aws-elasticsearch?</p>
  
  <pre><code>&lt;match catalog&gt;
    @type elasticsearch
    host https://elastic_devel_aws.com
    # port 9200
    logstash_format true 
    include_timestamp true 
    index_name _logs_test
    flush_interval 10s
    reconnect_on_error true
    reload_on_failure true
    reload_connections false
    request_timeout 120s
    &lt;buffer&gt;
      @type file
     flush_interval 10s
     retry_type periodic
     retry_forever true
     retry_wait 10s
     chunk_limit_size 16Mb
     queue_limit_length 4096
     total_limit_size 60Gb
     path /var/lib/td-agent/buffers/output_elasticsearch-1
   &lt;/buffer&gt;
  &lt;/match&gt; 
  
  </code></pre>
  
  <p>When tried with something like this getting </p>
  
  <pre><code>  Could not communicate to Elasticsearch, resetting connection and trying again. getaddrinfo: Name or service not known (SocketError)
  
  </code></pre>