Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Add CLI command to download agent logs #1723

Merged

Conversation

tevoinea
Copy link
Member

@tevoinea tevoinea commented Mar 23, 2022

Summary of the Pull Request

What is this about?

This PR is related to #1721. It adds a new CLI command that can be used to download the logs published by an agent.

Example: onefuzz debug logs get --help

positional arguments:
  job_id                Which job you would like the logs for.

optional arguments:
  --task_id TASK_ID     Which task you would like the logs for.
  --machine_id MACHINE_ID
                        Which machine you would like the logs for.
  --last LAST           The logs are split in files. Starting with the newest
                        files, how many files you would you like to download.
                        (default: 1)
  --all                 Download all log files. (Default: False. Sets value to
                        True)

PR Checklist

Info on Pull Request

What does this include?

Validation Steps Performed

How does someone test & validate?

@tevoinea tevoinea linked an issue Mar 23, 2022 that may be closed by this pull request
@tevoinea tevoinea changed the title It does some things Add CLI command to download agent logs Mar 28, 2022
@tevoinea tevoinea marked this pull request as ready for review March 31, 2022 13:17
@tevoinea tevoinea force-pushed the tevoinea/AddCLICommandToDownloadLogs branch from adce06a to 172692b Compare March 31, 2022 13:19
@tevoinea tevoinea changed the base branch from tevoinea/AddCLICommandToDownloadLogs to main March 31, 2022 13:21
@tevoinea tevoinea merged commit 0c3d9fc into microsoft:main Apr 5, 2022
@ghost ghost locked as resolved and limited conversation to collaborators May 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a command on the cli to download the logs
3 participants