Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11307

Feature Request re: syslog and bashhist

Path csiph.com!au2pb.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.ripco.com!news.glorb.com!usenet.stanford.edu!not-for-mail
From aixtools <aixtools@gmail.com>
Newsgroups gnu.bash.bug
Subject Feature Request re: syslog and bashhist
Date Sun, 09 Aug 2015 19:37:12 +0200
Lines 54
Approved bug-bash@gnu.org
Message-ID <mailman.8047.1439152371.904.bug-bash@gnu.org> (permalink)
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1439152372 16941 208.118.235.17 (9 Aug 2015 20:32:52 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=8OSIP7h9fF9liXYlOd27VD3RQQ156wct/oIxVUhkm6U=; b=NkXEXyCpF0mA2f9Sd2e2PJry9uyO78ZmvRJL5xgfWD0qhTmoWU48Xt4FIeM6j1A+YQ nDh2q3X486F5xCH9DNhbp+J6OmJA3UA4i5h/Zfpi774M79o/0bBWKlboYkQ1jeP2iEnv i3lM74ZdsELeHAu/j7l78GR79TIkI2/NPAdRoPU/F3bIwYF36yU1SCWa5Exc1nKk64mt YZ6zJggpAhPssByCp/YE9VAk1uQqAk7vltnr1sAmNZkfd70Qhi4sVX8SfRVFIwRtAqJH 458xirtVMLJxBpQaOl/onvyLExOr+mc6G5LDScanN7KwsXIB49mY1NtaWZLG4qNCqUwm wuzQ==
X-Received by 10.194.238.193 with SMTP id vm1mr35892958wjc.57.1439141830505; Sun, 09 Aug 2015 10:37:10 -0700 (PDT)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
X-detected-operating-system by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value).
X-Received-From 2a00:1450:400c:c05::22c
X-Mailman-Approved-At Sun, 09 Aug 2015 16:32:49 -0400
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.14
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:11307

Show key headers only | View raw


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


Thread

Feature Request re: syslog and bashhist aixtools <aixtools@gmail.com> - 2015-08-09 19:37 +0200

csiph-web