salt icon indicating copy to clipboard operation
salt copied to clipboard

Salt master should log to /var/log/salt/master upon startup and shutdown

Open syedaali opened this issue 11 years ago • 9 comments

When I start salt-master I see /var/log/salt/master file with 0 bytes. It would nice if the master logged to the file saying "I am starting up" or something like that. Same goes for shutdown.

syedaali avatar Jan 15 '15 18:01 syedaali

Agreed. Thanks for filing this.

whiteinge avatar Jan 15 '15 18:01 whiteinge

I would also like to be able to see timestamps for when Salt is restarted by looking for these log entries.

whiteinge avatar Jan 15 '15 18:01 whiteinge

@whiteinge all you need is the date in the log formatting string, and I believe the default has it, and least the log file default.

s0undt3ch avatar Jan 15 '15 18:01 s0undt3ch

I was referring to the timestamp, not the log message @syeedaly was asking for

s0undt3ch avatar Jan 15 '15 18:01 s0undt3ch

Right. If we add log entries for startup and shutdown we'll get the timestamps automatically.

On Thu Jan 15 2015 at 10:58:18 AM Pedro Algarvio [email protected] wrote:

I was referring to the timestamp, not the log message @syeedaly was asking for

— Reply to this email directly or view it on GitHub https://github.com/saltstack/salt/issues/19764#issuecomment-70140486.

whiteinge avatar Jan 15 '15 21:01 whiteinge

#19986 should fix this

s0undt3ch avatar Jan 23 '15 01:01 s0undt3ch

You are awesome, sir! I'll get cross-refs for log_granular_levels added to the appropriate docs.

whiteinge avatar Jan 23 '15 02:01 whiteinge

This this should be backported to 2015.2 or even 2014.7?

s0undt3ch avatar Jan 23 '15 02:01 s0undt3ch

*Think

s0undt3ch avatar Jan 23 '15 02:01 s0undt3ch