Sample Header Ad - 728x90

Sending bash history to syslog

7 votes
2 answers
10300 views
Bash version 4.N has apparently the ability to write command-history to syslog, but I can't find information about how to configure this. I have read several pages which offer hacks using the PROMPT_COMMAND, and trap, and I know that there's a patch available, but this should be unnecessary, as it is now built in. I know I can use auditd to capture commands, but I'd like to use the bash/syslog combination.
Asked by Graham Nicholls (772 rep)
Jul 18, 2018, 11:06 PM
Last activity: May 9, 2025, 08:30 AM