Skip to content

download_session_logs()

Download logs for a session to a local file.

download_session_logs(session_id=None, cluster_name=None, filename=None, ...)

Description

This function downloads the logs for a given session to a specified location, if logs for the session were saved to S3.

Required Parameters

session_id (str)

ID of the session for which to retrieve logs.

cluster_name (str)

Name of cluster the session was started in.

filename (str)

Path of file to download session logs to. If a filename is not specified, the log file will get saved to $HOME/.banyan/logs/.