-
Notifications
You must be signed in to change notification settings - Fork 0
Layer: Application
commandline_be edited this page Dec 14, 2017
·
3 revisions
Dependencies available to install for this layer
source: https://blog.rootshell.be/2009/02/28/bash-history-to-syslog/
add the below to /etc/profile
function log2syslog
{
declare command
command=$(fc -ln -0)
logger -p local1.notice -t bash -i — $USER : $command
}
trap log2syslog DEBUG
now systemctl restart rsyslog
welcome to the blues, commandline.be at your service