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

**URL:** <https://discourse.chef.io/t/where-is-the-history-for-the-knife-executing-on-the-open-source-chef-server/3246>\
**Category:** Chef Infra (archive)\
**Created:** [October 31, 2012, 4:34am UTC](https://discourse.chef.io/t/where-is-the-history-for-the-knife-executing-on-the-open-source-chef-server/3246 "2012-10-31T04:34:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loutish](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@Loutish](https://discourse.chef.io/u/Loutish)\
**Post date:** [October 31, 2012, 4:34am UTC](https://discourse.chef.io/t/where-is-the-history-for-the-knife-executing-on-the-open-source-chef-server/3246/1 "2012-10-31T04:34:28Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Kevin\_Nuckolls](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kevin_nuckolls/32/327_2.png) [@Kevin\_Nuckolls](https://discourse.chef.io/u/Kevin_Nuckolls)\
**Post date:** [October 31, 2012, 5:00am UTC](https://discourse.chef.io/t/where-is-the-history-for-the-knife-executing-on-the-open-source-chef-server/3246/2 "2012-10-31T05:00:15Z")

</div>

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.

> **[GitHub - knuckolls/knife-santoku: A drop in replacement for knife that helps...](https://github.com/knuckolls/knife-santoku/)**
>
> A drop in replacement for knife that helps you build out processes around Chef - GitHub - knuckolls/knife-santoku: A drop in replacement for knife that helps you build out processes around Chef

Hope that helps,

Kevin Nuckolls  
@knuckolls

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