shut up the minion

239 views
Skip to first unread message

Dimitri Maziuk

unread,
Oct 23, 2017, 3:31:00 PM10/23/17
to Salt-users

after installing salt-minion-2017.7.2-1.el7.noarch my /var/log/messages
is full of
> Oct 23 09:26:28 hereland salt-minion: [WARNING ] The function "module.run" is using its deprecated version and will expire in version "Sodium".

How do I shut it TF up? -- I am trying to read the log files here and
this is not helping to put it politely.

--
Dimitri Maziuk
Programmer/sysadmin
BioMagResBank, UW-Madison -- http://www.bmrb.wisc.edu

signature.asc

Bo Maryniuk

unread,
Oct 24, 2017, 3:31:17 AM10/24/17
to salt-...@googlegroups.com
RTFM? https://docs.saltstack.com/en/latest/topics/releases/2017.7.0.html#state-module-changes
> --
> You received this message because you are subscribed to the Google Groups "Salt-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/fb9d3018-a231-72cc-3aef-543676d4600a%40bmrb.wisc.edu.
> For more options, visit https://groups.google.com/d/optout.

Dmitri Maziuk

unread,
Oct 24, 2017, 10:54:04 AM10/24/17
to salt-...@googlegroups.com
On 2017-10-24 02:31, Bo Maryniuk wrote:
> RTFM?

WTF does that have to do with it logging in the wrong place at the rate
of 100 messages/second (or whatever it is, seems to be just below
rsyslog's drop threshhold). Who said I'm ever going to upgrade to the
version where it'll be deprecated?

Dima


Nicholas Capo

unread,
Oct 24, 2017, 11:04:06 AM10/24/17
to salt-...@googlegroups.com

You could set `loglevel: error` to silence the warnings.

https://docs.saltstack.com/en/latest/ref/configuration/logging/

Nicholas


--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.

Dimitri Maziuk

unread,
Oct 24, 2017, 1:41:21 PM10/24/17
to salt-...@googlegroups.com
On 10/24/2017 10:03 AM, Nicholas Capo wrote:
> You could set `loglevel: error` to silence the warnings.
>
> https://docs.saltstack.com/en/latest/ref/configuration/logging/
That is a far more useful Fine Manual, thank you.

In all fairness, it's probably been this way since day one, I just never
noticed because I never needed to sift through /var/log/messages since
this deprecation warning's been introduced. Still,
'''
log_level

Default: warning

The level of log record messages to send to the console
'''
FVO "console" = syslog apparently.
signature.asc

Daniel Wallace

unread,
Oct 24, 2017, 2:23:41 PM10/24/17
to Salt-users
Only in el7 with rsyslog and journald

Systemd logs all stderr and stdout to journald, Then rsyslog is the thing that they use to hook into journald and log this to /var/log/message or whatever.

You can disable rsyslog, and only check the journald logs with journalctl, then it wouldn't log to the disk.

--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/salt-users/d50e5ae0-4c44-9621-de1e-30e03b96b99d%40bmrb.wisc.edu.

Dimitri Maziuk

unread,
Oct 24, 2017, 2:45:51 PM10/24/17
to salt-...@googlegroups.com
On 10/24/2017 01:23 PM, Daniel Wallace wrote:
> Only in el7 with rsyslog and journald
>
> Systemd logs all stderr and stdout to journald, Then rsyslog is the thing
> that they use to hook into journald and log this to /var/log/message or
> whatever.
>
> You can disable rsyslog, and only check the journald logs with journalctl,
> then it wouldn't log to the disk.

Aha! Now it makes sense, thank you -- most servers on that subnet are
centos 6 where the warning goes only to /var/log/salt/minion as it should.

As for disabling syslog, BSD is looking better and better every day...
signature.asc

Dimitri Maziuk

unread,
Oct 24, 2017, 3:42:59 PM10/24/17
to salt-...@googlegroups.com
On 10/23/2017 02:30 PM, Dimitri Maziuk wrote:
>
> after installing salt-minion-2017.7.2-1.el7.noarch my /var/log/messages
> is full of
>> Oct 23 09:26:28 hereland salt-minion: [WARNING ] The function "module.run" is using its deprecated version and will expire in version "Sodium".

This is specific to systemd-infested hosts: systemd sends stdout and
stderr to system log file.

The fix is to add (e.g.)
log_level: error
log_level_logfile: info
to the config. It seems you need both to make the messages (info in this
example) go to /var/log/salt/minion

With thanks to Nick and Daniel,
signature.asc
Reply all
Reply to author
Forward
0 new messages