[MXS-1819] log_info does not log to syslog Created: 2018-04-20 Updated: 2020-08-25 Resolved: 2018-04-24 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Core |
| Affects Version/s: | 2.1.16, 2.2.3 |
| Fix Version/s: | 2.1.17, 2.2.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Geoff Montee (Inactive) | Assignee: | Johan Wikman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | logging, syslog | ||
| Description |
|
It seems that log_info does not log to syslog. To reproduce, simply configure MaxScale with the following:
You will see log_info messages in the maxlog file, but not in syslog. |
| Comments |
| Comment by markus makela [ 2018-04-20 ] |
|
I think that this was by design. This can probably be changed so that even info level messages are logged to syslog. |
| Comment by Johan Wikman [ 2018-04-23 ] |
|
Yes, it's by design that debug and info level messages are not logged to syslog. The rationale was that as those are very numerous and are used only for debugging some particular problem it's better not to write them to syslog. |
| Comment by Geoff Montee (Inactive) [ 2018-04-23 ] |
|
Thanks for the feedback. Here's a very detailed comment from the person who ran into this problem:
|
| Comment by Urs Schaufelberger [ 2018-04-23 ] |
|
Thanks Geoff, since this is an issue I opened, I'll gladly join the discussion here directly to represent the Ops side of things. To give you a bit of context, we went live with a rather large MaxScale / MariaDB setup last week, and since we prefer to aggregate our logs via syslog, that's what we enabled, setting maxscale=0 because logging the same thing twice isn't much use. So while I do have some understanding for your original design decision, it somewhat deviates from system engineering standards, which makes the logging configuration a bit non-intuitive. Taking a step back, and combining #
|
| Comment by Johan Wikman [ 2018-04-24 ] |
|
us Well argued, we'll change the behavior so that info-level messages are logged just like all other messages. |
| Comment by Johan Wikman [ 2018-04-24 ] |
|
Now info level messages are logged to syslog just like any other messages. |