GNU bug report logs - #14012
[coreutils] Please add timestamps to the output of tail -f

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Severity: wishlist; Reported by: Filipus Klutiero <chealer@HIDDEN>; dated Wed, 20 Mar 2013 22:24:01 UTC; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 14012 <at> debbugs.gnu.org:


Received: (at 14012) by debbugs.gnu.org; 1 Apr 2013 17:39:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Apr 01 13:39:28 2013
Received: from localhost ([127.0.0.1]:56277 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UMiha-0002IG-P4
	for submit <at> debbugs.gnu.org; Mon, 01 Apr 2013 13:39:28 -0400
Received: from joseki.proulx.com ([216.17.153.58]:41461)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <bob@HIDDEN>) id 1UMihX-0002I8-Mq
	for 14012 <at> debbugs.gnu.org; Mon, 01 Apr 2013 13:39:25 -0400
Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119])
	by joseki.proulx.com (Postfix) with ESMTP id E5BE2211E6;
	Mon,  1 Apr 2013 11:36:28 -0600 (MDT)
Received: by hysteria.proulx.com (Postfix, from userid 1000)
	id C99FE2DCE2; Mon,  1 Apr 2013 11:36:28 -0600 (MDT)
Date: Mon, 1 Apr 2013 11:36:28 -0600
From: Bob Proulx <bob@HIDDEN>
To: Filipus Klutiero <chealer@HIDDEN>
Subject: Re: bug#14012: Bug#703565: [coreutils] Please add timestamps to the
	output of tail -f
Message-ID: <20130401173628.GA9327@HIDDEN>
References: <514A3660.6080102@HIDDEN>
	<20130320225049.GE7495@HIDDEN>
	<514A6396.2060305@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <514A6396.2060305@HIDDEN>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Spam-Score: -1.5 (-)
X-Debbugs-Envelope-To: 14012
Cc: 14012 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.2 (----)

Additionally I ran into "annotate-output" today.

  NAME
       annotate-output - annotate program output with time and stream

  DESCRIPTION
       annotate-output  will  execute  the specified program, while prepending
       every line with the current time and O for stdout and E for
       stderr.

  EXAMPLE
       $ annotate-output make
       21:41:21 I: Started make
       21:41:21 O: gcc -Wall program.c
       21:43:18 E: program.c: Couldn't compile, and took me ages to find out
       21:43:19 E: collect2: ld returned 1 exit status
       21:43:19 E: make: *** [all] Error 1
       21:43:19 I: Finished with exitcode 2

Since you mentioned Debian I will note that it is packaged for Debian
in the devscripts packaged.  It seems to be an enhanced version of:

  http://jeroen.a-eskwadraat.nl/sw/annotate

Bob




Information forwarded to bug-coreutils@HIDDEN:
bug#14012; Package coreutils. Full text available.

Message received at 14012 <at> debbugs.gnu.org:


Received: (at 14012) by debbugs.gnu.org; 21 Mar 2013 01:36:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 20 21:36:09 2013
Received: from localhost ([127.0.0.1]:38239 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UIUQL-000362-11
	for submit <at> debbugs.gnu.org; Wed, 20 Mar 2013 21:36:09 -0400
Received: from mail-ve0-f177.google.com ([209.85.128.177]:46718)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <chealer@HIDDEN>) id 1UIUQH-00035u-8N
	for 14012 <at> debbugs.gnu.org; Wed, 20 Mar 2013 21:36:06 -0400
Received: by mail-ve0-f177.google.com with SMTP id m1so1997727ves.22
	for <14012 <at> debbugs.gnu.org>; Wed, 20 Mar 2013 18:34:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=x-received:message-id:date:from:user-agent:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	bh=NZX/194x1UKaRnpZsEkejxrJYvRl+aztgNHkt03Y4Tg=;
	b=J9/fAsZW8cUJvNG04VuIobU1QVfMVlAACyU9rFO8lwZ82DMBOC5G4m+gz5PdwtHuh4
	FtA8ZyRPm9tZsf0Ki7kaxCy1d2Ytc4hQKlKmG0QzoxffsdU1Vbl3ILFuEDXkiavtCP+Z
	xCrj9ojTE0TlA7IWhY6dNBtwIt7vwGjhFNRkFF7g3Y1M1KLsFMvaiLvrhgkzO0XpOPiq
	Eegq6SzusOVVb9UlWDm6qC4Aa4Ho6Uz4Mdb+iJecmklHGM82WGGwgWAcoPG5jsyuwNBc
	4Y58kSrkjdqIzZiJn1SOw4WTdRFdfx8gPxkl4WpsPvAHjehVX/Q5O5jBTu02EL3UjcXC
	MRYA==
X-Received: by 10.52.35.110 with SMTP id g14mr2476633vdj.61.1363829656651;
	Wed, 20 Mar 2013 18:34:16 -0700 (PDT)
Received: from [192.168.1.9] (modemcable156.191-56-74.mc.videotron.ca.
	[74.56.191.156])
	by mx.google.com with ESMTPS id j5sm38753329vdv.13.2013.03.20.18.34.15
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Wed, 20 Mar 2013 18:34:15 -0700 (PDT)
Message-ID: <514A6396.2060305@HIDDEN>
Date: Wed, 20 Mar 2013 21:34:14 -0400
From: Filipus Klutiero <chealer@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64;
	rv:10.0.12) Gecko/20130116 Icedove/10.0.12
MIME-Version: 1.0
To: 14012 <at> debbugs.gnu.org
Subject: Re: Bug#703565: [coreutils] Please add timestamps to the output of
	tail -f
References: <514A3660.6080102@HIDDEN>
	<20130320225049.GE7495@HIDDEN>
In-Reply-To: <20130320225049.GE7495@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 14012
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.6 (--)

Hi Bob,

On 2013-03-20 18:50, Bob Proulx wrote:
> Filipus Klutiero wrote:
>> tail --follow is useful to see what is being added to a file.
>> However, if the monitored file is followed for a certain period, it
>> doesn't indicate when the new content was added. It would be nice if
>> tail allowed to prepend timestamps to the output, as MultiTail's -ts
>> option does.
> But, but, but... multitail already does this.
>
>> This is a little delicate to do. The timestamp could be prepended to
>> each line, or only to each atomic addition to the file. Also, as we
>> don't know when the existing lines were added, we can't give them an
>> exact timestamp. MultiTail stamps them with the time of MultiTail's
>> launch, but I find that a bit misleading. I would consider simply
>> not stamping these.
> As you note there is no clean solution for those previously added
> lines.  No matter what is done it cannot be correct.

I didn't mean to say there is no *clean* way to do this. For me, as long 
as the program behaves according to its documentation, it's clean. The 
documentation should simply explain the drawbacks.
If it's too difficult to choose one true behavior, options can be 
introduced to control the output for existing content and for new 
content. However, at this stage I suggest we simply figure out the best 
defaults, implement that... then see if we have more insatisfaction.
But, no, there is no *easy* solution. Given that any behavior is 
inconvenient, I certainly recommend to make this optional (i.e. 
non-default).
>
>> In any case, as this alters the output, this should be optional.
>>
>> Scanning the changelog suggests this has not been implemented as of 8.21.
> This is most easily done using normal tools already.  As you know the
> philosophy is that programs should do one thing and then those should
> work together to build more complex things.  For example here is one
> way to do what you are asking.  And this is just one of many
> possibilities.
>
>    $ tail -f /var/log/syslog | perl -MPOSIX -lne 'print strftime("%T ",localtime()), $_;'
>
> Also there already exists multitail which does what you are asking.
> If so then why not simply use multitail?  Is the natural progression
> that tail be mutated into multitail?  In that case we should simply
> use multitail directly.  But that does have a size penalty.
>
>    $ ll -h /usr/bin/tail /usr/bin/multitail
>    -rwxr-xr-x 1 root root 264K Jan 23  2012 /usr/bin/multitail
>    -rwxr-xr-x 1 root root  67K Nov 18 08:25 /usr/bin/tail
>
> Bob

I cannot answer these questions, as I do not know MultiTail. I'm not 
really saying MultiTail is a problem for me at this time. If you had 
asked me a couple of days ago though, I'd have had to answer I didn't 
know MultiTail. To find out about it, I had to read tail's Wikipedia 
page (and then, I tried 3 or 4 tail alternatives to find one with 
timestamped monitoring).
I suggested this because I have to use MultiTail when I could use tail 
to do my job exactly as well if only it had had this option. And, I 
suppose it's not only me needing this. For example, see this thread: 
http://stackoverflow.com/questions/21564/is-there-a-unix-utility-to-prepend-timestamps-to-lines-of-text
I understand this is a request to add a feature - the addition will 
surely complexify tail and make it heavier, as you say. Although I 
wouldn't think the binary would weight much more, I can see that any 
growth of coreutils is a concern when considering embedded devices. If 
your stance is that this feature would be worth it theoretically, but is 
not worth its weight at this point, I'd suggest to have the 
documentation point to MultiTail. On my side, I might suggest including 
MultiTail in standard Debian. If we think this feature is just 
uninteresting because it's too easy to code, then I'd suggest including 
an example full command to timestamp output in the documentation, for 
those of us who didn't touch perl since school days.

Thanks for the suggestions of alternatives. FWIW, the thread above had a 
simpler suggestion, $ tail -f foo| ts; However, ts is in moreutils, 
which isn't installed by default (in Debian), so it is no better than 
MultiTail in so far as an extra package must generally be installed.




Information forwarded to bug-coreutils@HIDDEN:
bug#14012; Package coreutils. Full text available.

Message received at 14012 <at> debbugs.gnu.org:


Received: (at 14012) by debbugs.gnu.org; 20 Mar 2013 22:52:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 20 18:52:48 2013
Received: from localhost ([127.0.0.1]:38156 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UIRsE-0007gY-2y
	for submit <at> debbugs.gnu.org; Wed, 20 Mar 2013 18:52:48 -0400
Received: from joseki.proulx.com ([216.17.153.58]:46358)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <bob@HIDDEN>) id 1UIRs6-0007gG-5G
	for 14012 <at> debbugs.gnu.org; Wed, 20 Mar 2013 18:52:43 -0400
Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119])
	by joseki.proulx.com (Postfix) with ESMTP id E8ED7211DA;
	Wed, 20 Mar 2013 16:50:49 -0600 (MDT)
Received: by hysteria.proulx.com (Postfix, from userid 1000)
	id CE6D82DCC4; Wed, 20 Mar 2013 16:50:49 -0600 (MDT)
Date: Wed, 20 Mar 2013 16:50:49 -0600
From: Bob Proulx <bob@HIDDEN>
To: Filipus Klutiero <chealer@HIDDEN>
Subject: Re: Bug#703565: [coreutils] Please add timestamps to the output of
	tail -f
Message-ID: <20130320225049.GE7495@HIDDEN>
Mail-Followup-To: Filipus Klutiero <chealer@HIDDEN>,
	703565@HIDDEN, 14012 <at> debbugs.gnu.org
References: <514A3660.6080102@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="UFHRwCdBEJvubb2X"
Content-Disposition: inline
In-Reply-To: <514A3660.6080102@HIDDEN>
X-Debbugs-No-Ack: true
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Spam-Score: -1.7 (-)
X-Debbugs-Envelope-To: 14012
Cc: 703565@HIDDEN, 14012 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.4 (----)


--UFHRwCdBEJvubb2X
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Filipus Klutiero wrote:
> tail --follow is useful to see what is being added to a file.
> However, if the monitored file is followed for a certain period, it
> doesn't indicate when the new content was added. It would be nice if
> tail allowed to prepend timestamps to the output, as MultiTail's -ts
> option does.

But, but, but... multitail already does this.

> This is a little delicate to do. The timestamp could be prepended to
> each line, or only to each atomic addition to the file. Also, as we
> don't know when the existing lines were added, we can't give them an
> exact timestamp. MultiTail stamps them with the time of MultiTail's
> launch, but I find that a bit misleading. I would consider simply
> not stamping these.

As you note there is no clean solution for those previously added
lines.  No matter what is done it cannot be correct.

> In any case, as this alters the output, this should be optional.
>=20
> Scanning the changelog suggests this has not been implemented as of 8.21.

This is most easily done using normal tools already.  As you know the
philosophy is that programs should do one thing and then those should
work together to build more complex things.  For example here is one
way to do what you are asking.  And this is just one of many
possibilities.

  $ tail -f /var/log/syslog | perl -MPOSIX -lne 'print strftime("%T ",local=
time()), $_;'

Also there already exists multitail which does what you are asking.
If so then why not simply use multitail?  Is the natural progression
that tail be mutated into multitail?  In that case we should simply
use multitail directly.  But that does have a size penalty.

  $ ll -h /usr/bin/tail /usr/bin/multitail
  -rwxr-xr-x 1 root root 264K Jan 23  2012 /usr/bin/multitail
  -rwxr-xr-x 1 root root  67K Nov 18 08:25 /usr/bin/tail

Bob

--UFHRwCdBEJvubb2X
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlFKPUkACgkQ0pRcO8E2ULZD3gCfbip/zlxjyjAKRiKYj1etBX93
HVsAnA6T7NTUDQtHn4pqVpT3jA9KpQAk
=c48T
-----END PGP SIGNATURE-----

--UFHRwCdBEJvubb2X--




Information forwarded to bug-coreutils@HIDDEN:
bug#14012; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Mar 2013 22:23:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 20 18:23:25 2013
Received: from localhost ([127.0.0.1]:38139 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1UIRPo-0006wZ-Ab
	for submit <at> debbugs.gnu.org; Wed, 20 Mar 2013 18:23:25 -0400
Received: from eggs.gnu.org ([208.118.235.92]:51191)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <chealer@HIDDEN>) id 1UIRPm-0006wS-63
	for submit <at> debbugs.gnu.org; Wed, 20 Mar 2013 18:23:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chealer@HIDDEN>) id 1UIRNz-0001NJ-Rx
	for submit <at> debbugs.gnu.org; Wed, 20 Mar 2013 18:21:34 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	T_DKIM_INVALID autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:36242)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chealer@HIDDEN>) id 1UIRNz-0001NF-Om
	for submit <at> debbugs.gnu.org; Wed, 20 Mar 2013 18:21:31 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34307)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chealer@HIDDEN>) id 1UIRNx-00032X-BT
	for bug-coreutils@HIDDEN; Wed, 20 Mar 2013 18:21:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <chealer@HIDDEN>) id 1UIRNu-0001Mm-Sw
	for bug-coreutils@HIDDEN; Wed, 20 Mar 2013 18:21:29 -0400
Received: from mail-vb0-x22c.google.com ([2607:f8b0:400c:c02::22c]:53040)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <chealer@HIDDEN>) id 1UIRNu-0001Mf-Ob
	for bug-coreutils@HIDDEN; Wed, 20 Mar 2013 18:21:26 -0400
Received: by mail-vb0-f44.google.com with SMTP id fr13so1467274vbb.31
	for <bug-coreutils@HIDDEN>; Wed, 20 Mar 2013 15:21:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
	h=x-received:message-id:date:from:user-agent:mime-version:to:subject
	:content-type:content-transfer-encoding;
	bh=HUeYK0UUEU77un13EniWhMJpOcJBVbJvy/mjMvC/rN8=;
	b=cQd2i6HZPxfRcFz9+ujZIH1AnlwbZ8YatNGHf08Fl5XctCTy9guX1NeyaAb2lthBnz
	aMmyoe43m/8S8TxOqx6N/UymXvU9WAITla5LZWcDRNINZ7talaOXd/Z+FAmiYr1CmwjH
	1e7FQo0nTwoo87MqEhj38swwD6sUYOmmHoyUq3KdWRohj8ZJZUtL2xN1ie0sGAP/VMdl
	GTvIA5nka/1Up3ggwJwkWmpfsf6AmB3lL0MKDqnqz7VQrkppVptuDuQygLaWxaoR2mkO
	TciXBUZMH+Z6lIXLctSiJQ4cm0RvhXW6cXn63rZRQ9bwCeLYv+lhwKKiOX6/U+4iiBJz
	D0zg==
X-Received: by 10.52.99.1 with SMTP id em1mr8804114vdb.48.1363818086024;
	Wed, 20 Mar 2013 15:21:26 -0700 (PDT)
Received: from [192.168.1.9] (modemcable156.191-56-74.mc.videotron.ca.
	[74.56.191.156])
	by mx.google.com with ESMTPS id dh7sm37615624vdb.0.2013.03.20.15.21.24
	(version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
	Wed, 20 Mar 2013 15:21:25 -0700 (PDT)
Message-ID: <514A3660.6080102@HIDDEN>
Date: Wed, 20 Mar 2013 18:21:20 -0400
From: Filipus Klutiero <chealer@HIDDEN>
User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64;
	rv:10.0.12) Gecko/20130116 Icedove/10.0.12
MIME-Version: 1.0
To: submit@HIDDEN, bug-coreutils@HIDDEN
Subject: [coreutils] Please add timestamps to the output of tail -f
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
	(bad octet value).
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 208.118.235.17
X-Spam-Score: -3.4 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.1 (------)

Package: coreutils
Version: 8.13
Severity: wishlist

tail --follow is useful to see what is being added to a file. However, 
if the monitored file is followed for a certain period, it doesn't 
indicate when the new content was added. It would be nice if tail 
allowed to prepend timestamps to the output, as MultiTail's -ts option does.

This is a little delicate to do. The timestamp could be prepended to 
each line, or only to each atomic addition to the file. Also, as we 
don't know when the existing lines were added, we can't give them an 
exact timestamp. MultiTail stamps them with the time of MultiTail's 
launch, but I find that a bit misleading. I would consider simply not 
stamping these.
In any case, as this alters the output, this should be optional.

Scanning the changelog suggests this has not been implemented as of 8.21.




Acknowledgement sent to Filipus Klutiero <chealer@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#14012; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.