salt command output filtering

397 views
Skip to first unread message

Alex Bolgarov

unread,
Nov 28, 2012, 12:06:28 PM11/28/12
to salt-...@googlegroups.com
Is there a way to filter output of the 'salt' command so that it shows only changes (blue parts) and errors (red parts)?

Because now, when I 'm developing and debugging my sls tree and adding one by one new elements, on every 'salt ... highstate' run it outputs several screens of 'no changes' results (green) with one change (or error) that I'm interested in burrowed somewhere in between, I need to scroll the terminal up to see it. As I add elements to the sls tree, the amount of the output is increasing, and it is harder and harder to find the change or error. If I can filter out 'no changes' output parts, I would see the only important things right away.


David Boucha

unread,
Nov 28, 2012, 12:11:08 PM11/28/12
to salt-...@googlegroups.com
look at the state_verbose and state_output options in your master config.





On Wed, Nov 28, 2012 at 10:06 AM, Alex Bolgarov <al...@bolgarov.org> wrote:
Is there a way to filter output of the 'salt' command so that it shows only changes (blue parts) and errors (red parts)?

Because now, when I 'm developing and debugging my sls tree and adding one by one new elements, on every 'salt ... highstate' run it outputs several screens of 'no changes' results (green) with one change (or error) that I'm interested in burrowed somewhere in between, I need to scroll the terminal up to see it. As I add elements to the sls tree, the amount of the output is increasing, and it is harder and harder to find the change or error. If I can filter out 'no changes' output parts, I would see the only important things right away.





--
Dave Boucha  |  Sr. Engineer


5272 South College Drive, Suite 301 | Murray, UT 84123

office 801-305-3563
da...@saltstack.com | www.saltstack.com

Alex Bolgarov

unread,
Nov 28, 2012, 12:27:40 PM11/28/12
to salt-...@googlegroups.com
Thank you David, that's exactly what I've been looking for!

David Boucha

unread,
Nov 28, 2012, 12:39:07 PM11/28/12
to salt-...@googlegroups.com
You're welcome!
Reply all
Reply to author
Forward
0 new messages