title: How to get latest doc from elasticsearch in grafana?
body: <p>I am using grafana to show some data stored in elasticsearch.</p>
  
  <p>I want to know if it is possible to get some latest data (like 10 docs, use a timestamp field to judge) from elasticsearch and show in a table without any aggregation.</p>
  
  <p>For example.</p>
  
  <p>doc saved in elasticsearch like.</p>
  
  <pre><code>{
      timestamp: 1453369151115,
      status: true,
      runTime: 5327420525,
      name: "importUserAgent",
      ts: "2016-01-21T17:39:11",
      hostname: "site-211",
      app_id: "15"
  }
  
  {
      timestamp: 1453369145785,
      status: true,
      runTime: 369315816,
      name: "dailyService",
      ts: "2016-01-21T17:39:05",
      hostname: "site-211",
      app_id: "15"
  }
  </code></pre>
  
  <p>and to show like</p>
  
  <p><a href="https://i.stack.imgur.com/PTJl4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PTJl4.png" alt="enter image description here"></a></p>