Granted documents query with filter by @timestamp

@Anton_Matveev

I appreciate you're tagging my topic, I must have missed @ikakavas reply :sleeping: which wasn't formatting error as json was valid.