title: Unable to send data to AWS elastic search instance using logstash
body: <p>I am trying to send data to AWS elastic search end point using logstash that is installed on my local machine. </p>
  
  <p>The logstash conf file looks like this </p>
  
  <pre><code>input {
       file {
          path =&gt; "/path/log.txt"
        }
  }
  output {
     amazon_es {
          hosts =&gt; ["https://search-abclostashtrial-5jdfc43oqql7qsrhfgbvwewku.us-east-2.es.amazonaws.com"]
      action =&gt; "index"   
      region =&gt; "us-east-2"   
      index =&gt; "trial"
      ssl =&gt; true
  
      }
  }
  </code></pre>
  
  <p>The Elastic search Access policy looks like this </p>
  
  <pre><code>{
    "Version": "2012-10-17",
    "Statement": [
      {
        "Effect": "Allow",
        "Principal": {
          "AWS": "*"
        },
        "Action": "es:*",
        "Resource": "arn:aws:es:us-east-2:0415721453395:domain/abclostashtrial/*"
      }
    ]
  }
  </code></pre>
  
  <p>I am using <code>logstash-output-amazon_es</code> plugin to send the query like </p>
  
  <p><code>sudo bin/logstash -f /path/logstash/abc.conf</code></p>
  
  <p>And I get the following error log. </p>
  
  <pre><code>[ERROR] 2019-04-30 20:05:52.900 [Converge PipelineAction::Create&lt;main&gt;] agent - Failed to execute action {:id=&gt;:main, :action_type=&gt;LogStash::ConvergeResult::FailedAction, :message=&gt;"Could not execute action: PipelineAction::Create&lt;main&gt;, action_result: false", :backtrace=&gt;nil} 
  [INFO ] 2019-04-30 20:05:53.165 [Api Webserver] agent - Successfully started Logstash API endpoint {:port=&gt;9600} 
  [INFO ] 2019-04-30 20:05:58.037 [LogStash::Runner] runner - Logstash shut down.
  </code></pre>
  
  <p>What am I missing here ?</p>