Hacking Bash History discusses about why the history mechanism of bash cannot be used as a monitoring/logging facility even with the strictest measures applied to secure it. A section of the text is dedicated to hacking the bash source code to interface it with syslog.
You can download it from the following link: https://packetstormsecurity.com/files/download/72745/bash-history.txt
Source: https://packetstormsecurity.com/files/72745/Hacking-Bash-History.html

