How to query more than 2000 entries using NRQL?

I have to programmatically query weeks or even months of day from Newrelic logs. How effectively it’s possible to query the large data-set ?

Currently the query is prevented by Limit+offset restriction of max 2000 entries. Is it someway available to overcome the limit ?

I would appreciate for any suggestions or alternate ways to tackle the scenario.

Hello @ngopal1 - 2000 is the maximum. for obtaining more you will need to query shorter time periods.