I would like to manipulate the format of a datestamp from a log, in realtime, as it is being tailed. The current format is 2016-04-06T23:19:20.878Z. I would like to convert it to our local timezone and potentially remove the milliseconds. Can I pipe the output of tail -f into something like awk or sed so that this can be done in realtime with the remainder of the output unchanged?
How to convert a timezone in logs as they are being tailed
sed;awk;logs;tail