def parse_logs(log_paths):
    """Loads multiple log files and parses them into a list of pairs.

    Parameters
    ----------

    log_paths : list of str
        A list of log_paths, which could include hdfs, s3, or local file
        paths.

    Returns
    -------

    list of (datetime, log) pairs, ordered by datetime.

    Example
    -------

    >>> import psclient, psclient.logparse
    >>> ps = psclient.connect()
    >>> psclient.logparse.parse_logs(ps.get_log_filenames('audit'))

    """
    from psclient.file_util import read as _read
    import datetime, json
    result = []
    for log_path in log_paths:
        data = _read(log_path).split('\n')
        for row in data:
            if not row:
                continue
            timestamp, log = row.split(',', 1)
            result.append((datetime.datetime.strptime(timestamp,
                '%Y-%m-%dT%H:%M:%S'), json.loads(log)))
    result.sort()
    return result
