Logs.tar task linux

The development team requires specific logs stored within the Nautilus storage server situated in the Stratos DC. Access the designated location on the server to retrieve the necessary logs. Further, perform below actions:

Create a tar archive named logs.tar (under natasha’s home) of /var/log/ directory.
Now, create a compressed tar archive as well named logs.tar.gz (under natasha’s home) of /var/log/ directory.

this was my process for this task
$ssh natasha@ststor01
done
$sudo su -
#cd ~ (to go to home directory)
#tar cf logs.tar /var/log/
#tar czf logs.tar.gz /var/log/

is this the right approach because my task failed

The user is now root, so cd ~ takes you to root’s home directory.