Discussion:
journald: why become tabs to #011
(too old to reply)
Reindl Harald
2017-11-25 13:39:43 UTC
Permalink
Raw Message
this is terrible ugly and it makes little sense - in doubt please
convert that to a space and not #011

Nov 25 05:45:02 testserver php[16259]: 2017-11-25 04:45:02 [notice]
Daily renewal check started
Nov 25 06:30:02 testserver php[16680]: 2017-25-11
06:30:02#011/cms/temp/ecparams.pem#0110,10 KB
Nov 25 06:30:02 testserver php[16680]: 2017-25-11 06:30:02#0110,10 KB
Mantas Mikulėnas
2017-11-25 14:22:19 UTC
Permalink
Raw Message
That's done by rsyslogd, not journald.

[pid 3345] recvmsg(3, {msg_name=NULL, msg_namelen=0,
msg_iov=[{iov_base="<13>Nov 25 16:20:45 grawity: foo bar\tbaz\nquux",
iov_len=8096}], msg_iovlen=1, msg_control=[...], msg_controllen=64,
msg_flags=0}, MSG_DONTWAIT) = 45
[pid 3351] write(17, "Nov 25 14:20:45 virgule grawity: foo
bar#011baz#012quux\n", 56) = 56


On Sat, Nov 25, 2017 at 3:39 PM, Reindl Harald <***@thelounge.net>
wrote:

> this is terrible ugly and it makes little sense - in doubt please convert
> that to a space and not #011
>
> Nov 25 05:45:02 testserver php[16259]: 2017-11-25 04:45:02 [notice] Daily
> renewal check started
> Nov 25 06:30:02 testserver php[16680]: 2017-25-11
> 06:30:02#011/cms/temp/ecparams.pem#0110,10 KB
> Nov 25 06:30:02 testserver php[16680]: 2017-25-11 06:30:02#0110,10 KB
> _______________________________________________
> systemd-devel mailing list
> systemd-***@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/systemd-devel
>



--
Mantas Mikulėnas <***@gmail.com>
Reindl Harald
2017-11-25 14:33:04 UTC
Permalink
Raw Message
thanks
https://bugzilla.redhat.com/show_bug.cgi?id=1517455

Am 25.11.2017 um 15:22 schrieb Mantas Mikulėnas:
> That's done by rsyslogd, not journald.
>
> [pid  3345] recvmsg(3, {msg_name=NULL, msg_namelen=0,
> msg_iov=[{iov_base="<13>Nov 25 16:20:45 grawity: foo bar\tbaz\nquux",
> iov_len=8096}], msg_iovlen=1, msg_control=[...], msg_controllen=64,
> msg_flags=0}, MSG_DONTWAIT) = 45
> [pid  3351] write(17, "Nov 25 14:20:45 virgule grawity: foo
> bar#011baz#012quux\n", 56) = 56
>
>
> On Sat, Nov 25, 2017 at 3:39 PM, Reindl Harald <***@thelounge.net
> <mailto:***@thelounge.net>> wrote:
>
> this is terrible ugly and it makes little sense - in doubt please
> convert that to a space and not #011
>
> Nov 25 05:45:02 testserver php[16259]: 2017-11-25 04:45:02 [notice]
> Daily renewal check started
> Nov 25 06:30:02 testserver php[16680]: 2017-25-11
> 06:30:02#011/cms/temp/ecparams.pem#0110,10 KB
> Nov 25 06:30:02 testserver php[16680]: 2017-25-11 06:30:02#0110,10 KB
Reindl Harald
2017-12-11 09:58:55 UTC
Permalink
Raw Message
Am 25.11.2017 um 15:33 schrieb Reindl Harald:
> thanks
> https://bugzilla.redhat.com/show_bug.cgi?id=1517455

however journalctl isn't that smart either:
Dez 11 10:57:17 srv-rhsoft.rhsoft.net php[22523]: [19B blob data]

/var/log/messages:
Dec 11 10:57:17 srv-rhsoft php[22523]: 1#0112#011#003

[***@srv-rhsoft:~]$ cat /downloads/test.php
<?php
syslog(LOG_NOTICE, "1\t2\t\3");
?>

> Am 25.11.2017 um 15:22 schrieb Mantas Mikulėnas:
>> That's done by rsyslogd, not journald.
>>
>> [pid  3345] recvmsg(3, {msg_name=NULL, msg_namelen=0,
>> msg_iov=[{iov_base="<13>Nov 25 16:20:45 grawity: foo bar\tbaz\nquux",
>> iov_len=8096}], msg_iovlen=1, msg_control=[...], msg_controllen=64,
>> msg_flags=0}, MSG_DONTWAIT) = 45
>> [pid  3351] write(17, "Nov 25 14:20:45 virgule grawity: foo
>> bar#011baz#012quux\n", 56) = 56
>>
>>
>> On Sat, Nov 25, 2017 at 3:39 PM, Reindl Harald <***@thelounge.net
>> <mailto:***@thelounge.net>> wrote:
>>
>>     this is terrible ugly and it makes little sense - in doubt please
>>     convert that to a space and not #011
>>
>>     Nov 25 05:45:02 testserver php[16259]: 2017-11-25 04:45:02 [notice]
>>     Daily renewal check started
>>     Nov 25 06:30:02 testserver php[16680]: 2017-25-11
>>     06:30:02#011/cms/temp/ecparams.pem#0110,10 KB
>>     Nov 25 06:30:02 testserver php[16680]: 2017-25-11 06:30:02#0110,10 KB
Mantas Mikulėnas
2017-12-11 11:29:55 UTC
Permalink
Raw Message
On Mon, Dec 11, 2017 at 11:58 AM, Reindl Harald <***@thelounge.net>
wrote:

>
> Am 25.11.2017 um 15:33 schrieb Reindl Harald:
>
>> thanks
>> https://bugzilla.redhat.com/show_bug.cgi?id=1517455
>>
>
> however journalctl isn't that smart either:
> Dez 11 10:57:17 srv-rhsoft.rhsoft.net php[22523]: [19B blob data]
>
> /var/log/messages:
> Dec 11 10:57:17 srv-rhsoft php[22523]: 1#0112#011#003
>
> [***@srv-rhsoft:~]$ cat /downloads/test.php
> <?php
> syslog(LOG_NOTICE, "1\t2\t\3");
> ?>


That's because you're sending a \3, i.e. 0x03 which is not printable.

Regular tabs are no longer filtered as of commit ba961854ddec8a8efcff
<https://github.com/systemd/systemd/commit/ba961854ddec8a8efcffab44540c33cc7dffebfa>
(v187).

--
Mantas Mikulėnas <***@gmail.com>
Loading...