title: Can anyone give a list of REST APIs to query elasticsearch?
body: <ol>
  <li>I am trying to push my logs to elasticsearch through logstash.</li>
  <li><p>My <code>logstash.conf</code> have 2 log files as input; elasticsearch as output; and grok as filter. Here is my grok match:</p>
  
  <pre><code>grok {
    match =&gt; [ "message", "(?&lt;timestamp&gt;[0-9]{4}-[0-9]{2}-[0-9]{2}
  [0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}) 
  (?:\[%{GREEDYDATA:caller_thread}\]) (?:%{LOGLEVEL:level}) 
  (?:%{DATA:caller_class})(?:\-%{GREEDYDATA:message})" ]
     }
  </code></pre></li>
  <li><p>When elasticsearch is started, all my logs are added to elasticsearch server with seperate index name as mentioned in <code>logstash.conf</code>.</p></li>
  <li>My doubt is that how my logs are stored in elasticsearch? I only know that it is stored with the index name as mentioned in logstash.   </li>
  </ol>
  
  <p>'<a href="http://164.99.178.18:9200/_cat/indices?v" rel="nofollow">http://164.99.178.18:9200/_cat/indices?v</a>'  API given me the following: </p>
  
  <p>health status index         pri rep docs.count docs.deleted store.size pri.store.size </p>
  
  <pre><code>yellow open   tomcat-log      5   1       6478            0      1.9mb          1.9mb 
  
  yellow open   apache-log      5   1        212            0      137kb   
     137kb 
  </code></pre>
  
  <ol start="5">
  <li>But, how 'documents', 'fields' are created in elasticsearch for my logs.</li>
  </ol>
  
  <p>I read that elasticsearch is REST based search engine. So, if there any REST APIs that I could use to analyze my data in elasticsearch.</p>