Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get status, logs of last run `state.highstate` in Salt?

I applied state using:

$sudo salt 'api-*' state.highstate -l debug -v

Some states failed and I scrolled down, fixed some and now I can't scroll up (my terminal doesn't save full session) to see the stdout.

Now I don't want to run high state again. I checked jobs.lookup_jid, but it doesn't display anything useful.

like image 905
avi Avatar asked Nov 10 '22 04:11

avi


1 Answers

You could check the log files at /var/log/salt/minion

like image 102
Christian Stade-Schuldt Avatar answered Nov 14 '22 23:11

Christian Stade-Schuldt