title: How to check Elasticsearch logs in Amazon Elasticsearch Service?
body: <p>I am trying to sync my data from MongoDB in to Amazon Elasticsearch Service using <a href="https://www.npmjs.com/package/mongoosastic" rel="nofollow">mongoosastic</a> For some reason, sync is not happening as expected.</p>
  
  <p>I do not see any error from the mongoosastic plugin. Not sure what is failing in AWS Elasticsearch service</p>
  
  <p>Is there any way to get Elasticsearch logs in Amazon Elasticsearch Service?</p>
  
  <pre><code>elasticsearch = require('elasticsearch');
  
  this.es_connection = new elasticsearch.Client("Amazon Elasticsearch Service address");
  return this.es_connection.ping({
    requestTimeout: 30000,
    hello: 'elasticsearch'
  }, function(error) {
    if (error) {
      console.error('elasticsearch cluster is down!' + JSON.stringify(error));
    } else {
      logger.info('All is well in elasticsearch');
    }
  });
  </code></pre>