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


Groups > gnu.bash.bug > #11324

Re: Feature Request re: syslog and bashhist

Path csiph.com!xmission!news.glorb.com!usenet.stanford.edu!not-for-mail
From aixtools <aixtools@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Feature Request re: syslog and bashhist
Date Wed, 12 Aug 2015 12:31:55 +0200
Lines 55
Approved bug-bash@gnu.org
Message-ID <mailman.8184.1439375524.904.bug-bash@gnu.org> (permalink)
References <55C78FC8.1050609@gmail.com> <55C9073C.3030203@case.edu>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace usenet.stanford.edu 1439375525 2292 208.118.235.17 (12 Aug 2015 10:32:05 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To chet.ramey@case.edu
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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=0dg1jPPRDK2495RcnPQ5viSsJbP1bND9+iGmUxCGVxk=; b=kOUUS5kRU/DH05+7aEpSKUGzSFfi9RI4Btau7Qup4xSYzFg3p5qj4G3KEX1sFpnmK3 rVLofbBVk7MZyFCOJNBpG8c1DAtp51m8UoOoazRO3VpzaejKJj7K84FlHK7hvV1Sv/9x WA2bY+rGZnRfP8lAKUwNwUR+aduF26JER1ofryIi9C+ZST5YyEGwP5QBULIO/ryNZGRb JXK6KHSnCQ2Yrhstfxu822c/On10L5mH/57L5ey3hkIL3jcCHnn8in0J0wB3kY/yQ5ro 3M+kKUoU2p9niIkxGEy/1VGMftyL97ZblleonkObnKh1SXzmNNHKzP9300G2DgLKzeIy nipw==
X-Received by 10.180.23.33 with SMTP id j1mr43700350wif.44.1439375518153; Wed, 12 Aug 2015 03:31:58 -0700 (PDT)
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1
In-Reply-To <55C9073C.3030203@case.edu>
X-detected-operating-system by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value).
X-Received-From 2a00:1450:400c:c05::236
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:11324

Show key headers only | View raw


On 2015-08-10 10:19 PM, Chet Ramey wrote:
> On 8/9/15 1:37 PM, aixtools wrote:
>> 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
> I will think about this, but I am inclined not to do it.  It's easy enough
> to enable for those few user who want to do so.
Basically, I had not noticed it was there. It was only because I was at 
a customer who said they had customized their version years ago that I 
started searching for information about "bash and syslog".
Most of those hits were about using "fc" to add commands via the 
external syslogger - and these are the oldest, so the first, read top 
hits, that I got back. One of the replies mentioned the "top" include file.

This is actually, for me, the first compelling reason to switch shells 
for "what is provided" to what I must be certain is added.

In short, having it included in ./configure simply give it much more 
visibility - and perhaps adoption.
>> 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
> The better way to do this is to use openlog().  I will add the necessary
> pieces to call openlog with the shell name as the identifier and LOG_PID
> as the default value for the log options.
I try to make minimal changes. There are perhaps many other 'things' to 
think about here. e.g., I thought about the syslog facility and level as 
a configureable, but have decided against - as someone could divert the 
log to an unmonitored facility - defeats the purpose.
However, maybe being able to specify what gets logged via a define 
(order of arguments, length, etc) might be "nice".

But, openlog() - I'll readup, but I expect that may be what "AIX" 
applications are using already to get "that" layout.

Many thanks for your consideration!
> Chet
>

Back to gnu.bash.bug | Previous | NextNext in thread | Find similar


Thread

Re: Feature Request re: syslog and bashhist aixtools <aixtools@gmail.com> - 2015-08-12 12:31 +0200
  Re: Feature Request re: syslog and bashhist arnold@skeeve.com (Aharon Robbins) - 2015-08-12 12:09 +0000
    Re: Feature Request re: syslog and bashhist Greg Wooledge <wooledg@eeg.ccf.org> - 2015-08-12 09:06 -0400
    Re: Feature Request re: syslog and bashhist Chet Ramey <chet.ramey@case.edu> - 2015-08-12 09:19 -0400
    Re: Feature Request re: syslog and bashhist aixtools <aixtools@gmail.com> - 2015-08-12 20:48 +0200

csiph-web