Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #11307
| From | aixtools <aixtools@gmail.com> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Feature Request re: syslog and bashhist |
| Date | 2015-08-09 19:37 +0200 |
| Message-ID | <mailman.8047.1439152371.904.bug-bash@gnu.org> (permalink) |
Hi, Via google I came across the define named config-top.h:/* #define SYSLOG_HISTORY */ Changing it (manually) to config-top.h:#define SYSLOG_HISTORY Adds syslog statements such as: Aug 9 16:52:55 x064 user:info syslog: HISTORY: PID=262242 UID=0 ls -ltr Request #1 Add a ./configure variable, e.g., --with-syslog_history to make the change in the config file with the added benefit that it draws attention to an otherwise dormant feature. Request #2 At the request of a bash user on AIX I made the following change to make the syslog output "standardized" to AIX format for many applications so that the output looks like this: Aug 9 17:30:12 x064 user:info syslog: bash[454682]: UID=0: ls -ltr Other examples from AIX syslog Aug 09 18:00:07 x053 daemon:info x053 qlogd[10148]: conn log: Users: michael, Source IP: 192.168.129.5, Computer name: study, Connection type: SAMBA, Accessed resources: michael/Pictures/desktop.ini, Action: Read Aug 9 17:00:12 x071 user:info syslog: /etc/ifconfig -a Aug 9 17:00:22 x071 auth|security:crit su: BAD SU from michael to root at /dev/pts/0 Aug 9 17:00:28 x071 auth|security:notice su: from michael to root at /dev/pts/0 Aug 09 18:16:19 x053 auth|security:info x053 qlogd[10148]: conn log: Users: guest, Source IP: 192.168.129.5, Computer name: study, Connection type: SAMBA, Accessed resources: ---, Action: Login OK Aug 9 17:18:14 x071 mail:info pop3d[9044156]: Moved 14080 bytes of new mail to /home/michael/mbox from /var/spool/mail/michael host= x005.home.local [192.168.129.5] Aug 9 17:18:14 x071 mail:info pop3d[9044156]: Auth user=michael host=x005.home.local [192.168.129.5] nmsgs=11/11 Aug 9 17:18:17 x071 mail:info pop3d[9044156]: Logout user=michael host=x005.home.local [192.168.129.5] nmsgs=0 ndele=11 Note that WHEN a pid is included it is prefixed by the commandname and enclosed between []. Sincerely, Michael
Back to gnu.bash.bug | Previous | Next | Find similar
Feature Request re: syslog and bashhist aixtools <aixtools@gmail.com> - 2015-08-09 19:37 +0200
csiph-web