Logs are available only in connected VM and can't be available in bastion host from where the VM has been connected. Just run history in shell to see the previous commands ran in a VM
Logging VM Command Line
Kováčik Michal
1
Reputation point
Hi,
please, I want to ask if is possible to logging command line in VMs or Bastion Host.
For example if any user write command "apt-get update" I want to save log about it or if any user will connect from bastion to another resource I want to save log about it too.
Thank you.