google / turbinia

Automation and Scaling of Digital Forensics Tools
Apache License 2.0
749 stars 162 forks source link

[FR]: turbinia-client command for worker logs print #1363

Open aarontp opened 1 year ago

aarontp commented 1 year ago

What would this feature improve or what problem would it solve?

This would make it easier to debug tasks.

What is the feature you are proposing?

Add a turbinia-client command to print out the worker logs without having to download the full task output. This could print out stderr-*, stdout-* and worker-log.txt from the Task directory. This could potentially be added to an existing command like turbinia-client status task instead of creating a new command.

A bonus would be to have this information exposed in the web UI as well.

What alternatives have you considered?

You can get the same data by downloading the full task output with turbinia-client results task, but this way wouldn't require downloading everything (ie. plaso tasks with gigs of data) and would print to stdout which would make it easier.