#703565 [coreutils] Please add timestamps to the output of tail -f

Package:
coreutils
Source:
coreutils
Description:
GNU core utilities
Submitter:
Filipus Klutiero
Date:
2021-11-07 11:21:03 UTC
Severity:
wishlist
#703565#5
Date:
2013-03-20 22:21:20 UTC
From:
To:
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.

#703565#8
Date:
2013-03-20 22:50:49 UTC
From:
To:
Filipus Klutiero wrote:

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

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

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

#703565#13
Date:
2013-03-20 22:53:41 UTC
From:
To:
forwarded 703565 http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14012
tags 703565 + upstream
thanks

Oops... reporting to 2 ITS-s at the same time is a nice feature, but I
didn't mean to try it with this case.
Anyway, as it's already done, this is also #14012 upstream.

#703565#18
Date:
2013-03-21 02:49:59 UTC
From:
To:
Yes, see http://www.debian.org/Bugs/server-control#forwarded

It might have been that way, but a really long time ago. Both are
supported currently.

I apologize for the noise here. I used reportbug-ng to avoid making an
error in the pseudo-headers formatting, but instead of changing the
recipient for GNU, I added one keeping Debian. So my little trick is
uncovered!

I never intended to report this to Debian, and suggest that discussion
is kept on GNU's ITS, unless the discussion gets Debian-specific.

If the only problem with the addition was the increased size of
coreutils, I think that shouldn't be a reason to prevent the addition
for my PC (modern laptop). But Debian also targets somewhat embedded
devices. And it's far from the only distribution designed for modern
PCs. So I consider this issue as very little Debian-specific.
[...]

#703565#23
Date:
2021-11-07 11:08:08 UTC
From:
To:
Good day. Your  system has  been hacked  with a  Trojan virus.
It  has penetrated  your  device through  adult portals  which you  sometimes visit. Some  spicy videos  contain malicious  code that  activates after  being turned  on. Your  entire information has  already been  copied to  my servers.







I  possess complete  control over  your device  which you  use to  access the  Internet. I can  see  your screen,  I can  use a  microphone and  a camera  in a  way that  you never  notice anything.




I've  already made a  screen recording.
A  video was  edited with  a pornographic  movie that  you were  watching at  that time  and masturbating.



Your face  is perfectly visible  and I  don’t think  that this  kind of  content will  have a  positive impact  on your  reputation.





I  have an  overall  access to  your list  of contacts  and the  social media  profiles. I  can send  this video  from your  E-mail or  the messengers.

If you  don't want  to let  this happen,  then you  only need  to take  one simple  step.



Just transfer  1000 USD  (US dollars)  to Bitcoin wallet:  bc1qu42hdhynmk4j54grnx739sv440x2q3j97v4j3d

(In a  Bitcoin equivalent  at the  exchange rate  for the  time of  transfer)

You can  find the  detailed instructions  in Google.


After  the payment  I will  remove the  video and  the virus  from your  device and  no one  will bother  you anymore. If  I won’t receive  the payment  in due  time, all  of your  data and  the videos  will become  publicly available.


I  give you  2 business  days. I shall receive  a notification  that you  have read  the letter.


The  timer starts  immediately.
Any complain  somewhere, including  the police,  is useless.  My wallet  and  an E-mail  cannot be  tracked.


If I  find out  that you  have shared  this message  with someone  else, the  video will  become publicly available  at once.
I will  destroy your  reputation forever  and all  your data  will go  public.



Everyone will  learn about  your passion  for  the porn  sites and  more. Changing  the passwords  will be  useless either  as all  the data  is already  on my  servers.



Don't forget  that  reputation is  very important  and be  prudent!