Where is the history for the knife executing on the open-source chef server?


#1

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?

Thanks!


#2

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,

Kevin Nuckolls
@knuckolls

On Tue, Oct 30, 2012 at 11:34 PM, loutish@gmail.com 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?

Thanks!