I wrote knife-santoku to solve this problem. It’s a drop in
replacement for knife that everyone on our team uses. It exposes an
interface for matching against what knife commands were run and if
they ran a command you care about, it will run some code before or
after it. We use it primarily to “phone home” about all knife activity
that changes the state of the chef server. We also use it to enforce
other policies as well.
You should be able to extend this code to meet your needs, or it’ll
just work right out of the box.
Hope that helps,
On Tue, Oct 30, 2012 at 11:34 PM, firstname.lastname@example.org wrote:
For example, after I run a knife command of ‘knife cookbook upload
cookbook_name’ from a chef workstation or somewhere, where can I find the
history or log about who sent the knife command and when, and what the command
is? I need to monitor all the knife behaviors on the chef server side
centrally… How to do that?