title: Azure Log Analytics - Search REST API - How to Paginate through results
body: <p>When grabbing search result using <a href="https://docs.microsoft.com/en-us/azure/log-analytics/log-analytics-log-search-api" rel="nofollow noreferrer">Azure Log Analytics Search REST API</a>
  I'm able to receive only the first 5000 results (as by the specs, at the top of the document), but know there are many more (by the "total" attribute in the metadata in the response).</p>
  
  <p>Is there a way to paginate so to get the entire result set?</p>
  
  <p>One hacky way would be to attempt to break down the desired time-range iteratively until the "total" is less than 5000 for that timeframe, and do this process iteratively for the entire desired time-range - but this is guesswork that will cost many redundant requests.</p>