On 2/28/14 12:49 PM, Peter Waller wrote:
> Hi All,
>
> How do you keep around logs of what changes salt made to a system?
>
I use a daemon i wrote that hooks into the salt-event system.
https://github.com/felskrone/salt-eventsd
It basically collects all events from the event-bus and writes them
into a different (or a single) backend-worker(s). The events always
contain everything you need: data sent to the minions and everything
the return.
The backend-workers can do anything you want them to: mysql, postgres,
graphite, etc. They are simple python scripts and just have to supply
certain functions to be callable by the daemon. What you do within a
backend-worker, is up to you.
Have a look at the README and installation.txt. If salt-eventsd is
what you're looking for or if its something you can build on, try it out.
If you try it and run into problems, feel free to contact me.
- felskrone