Bug 1517455
Summary: | why become tabs to #011 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Harald Reindl <h.reindl> |
Component: | rsyslog | Assignee: | Jiří Vymazal <jvymazal> |
Status: | CLOSED UPSTREAM | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | dkopecek, h.reindl, jlieskov, jvymazal, lkundrak, mah.darade, rsroka, tosykora |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-12-11 13:30:53 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Harald Reindl
2017-11-25 14:32:29 UTC
Could you please try with: global(parser.escapeControlCharactersOnReceive="on") and post whether that helps in your case? no and i wouldn't call it smart don't escape any control chars but tabs which are simply useful so taht you can open a logfile in libreoffice as CSV for example rsyslog.conf (what is that for weird syntax now) global(parser.escapeControlCharactersOnReceive="on") <?php syslog(LOG_NOTICE, "1\t2\t\3"); ?> Dec 11 10:48:32 srv-rhsoft php[21262]: 1#0112#011#003 I am sorry, looking at my previous comment, I mis-typed the value, I meant "off" of course. so please try with: global(parser.escapeControlCharactersOnReceive="off") and BTW this "new" syntax is around from about 2013. looks better - \0 seems to be killed by journald already linebreaks are not much funny but better than tabs replaced by #011 [root@srv-rhsoft:~]$ > messages [root@srv-rhsoft:~]$ cat /downloads/test.php <?php syslog(LOG_NOTICE, "1\t2\t3 test\ntest"); ?> [root@srv-rhsoft:~]$ php /downloads/test.php [root@srv-rhsoft:~]$ cat messages Dec 11 13:59:11 srv-rhsoft php[23633]: 1 2 3 test test This default behavior comes from backwards compatibility with ancient versions, as you can see it can be overridden, but then you have to live with line-breaks as well. You can see linked upstream issue for discussion how this could be solved, however no conclusion has been reached there so far. |