get_log_data returns the max number of pages as 'max_pages'