Hide Forgot
Description of problem: Need to log access and actions performed by users on the application/gear via SSH. What I need is a daily file (log) of the actions performed by the user. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Jaspreet, Any command run on the system while SSH'd in should be stored to the ./app-root/data/.bash_history file, and can be accessed using the `history` command as well. This can be edited, so it wouldn't be suitable for security purposes. The customer may also find that tailing the logs is helpful. See https://developers.openshift.com/managing-your-applications/log-files.html for more information there. Finally the script command may be useful if the customer needs more information than history provides. Running `script ./app-root/data/foo.txt` will record the current bash session to the specified file, including all output. Hopefully some combination of those options will meet the customer's requirement. If not, a specific example of what the customer is looking to do (such as recording bash commands to later create a script) may help us find another solution. Rory
Going to go ahead and close this as the customer case seems to be closed. Please feel free to reopen if the customer has more questions.