def get_bucket_and_object(resource_name):
    """Given an audit log resourceName, parse out the bucket name and object
    path within the bucket.

    Returns:     (str, str) -- ([bucket name], [object name])
    """
    pathparts = resource_name.split("buckets/", 1)[1].split("/", 1)

    bucket_name = pathparts[0]
    object_name = pathparts[1].split("objects/", 1)[1]

    return (bucket_name, object_name)