def GetAuditLogFiles(offset, now, token):
 oldest_time = ((now - offset) - rdfvalue.Duration(config_lib.CONFIG['Logging.aff4_audit_log_rollover']))
 parentdir = aff4.FACTORY.Open('aff4:/audit/logs', token=token)
 logs = list(parentdir.ListChildren(age=(oldest_time.AsMicroSecondsFromEpoch(), now.AsMicroSecondsFromEpoch())))
 if (not logs):
  raise ValueError(("Couldn't find any logs in aff4:/audit/logs between %s and %s" % (oldest_time, now)))
 return aff4.FACTORY.MultiOpen(logs, aff4_type=collects.RDFValueCollection, token=token)

def GetAuditLogFiles ( offset , now , token ) : oldest_time = ( ( now - offset ) - rdfvalue . Duration ( config_lib . CONFIG [ 'Logging.aff4_audit_log_rollover' ] ) ) parentdir = aff4 . FACTORY . Open ( 'aff4:/audit/logs' , token = token ) logs = list ( parentdir . ListChildren ( age = ( oldest_time . AsMicroSecondsFromEpoch ( ) , now . AsMicroSecondsFromEpoch ( ) ) ) ) if ( not logs ) : raise ValueError ( ( "Couldn't find any logs in aff4:/audit/logs between %s and %s" % ( oldest_time , now ) ) ) return aff4 . FACTORY . MultiOpen ( logs , aff4_type = collects . RDFValueCollection , token = token )
get fds for audit log files created between now-offset and now .