Search code examples
chef-infrachef-recipeknife

Chef reports tab search by node?


This might be a feature of Chef Automate, but I'm not ready to purchase yet so need a solution for this with the free license.

In the GUI the Reports tab is pretty limited. I can go to run history and filter by date and status but can't search by node. Is there a knife command or something where I could return the status of a single nodes run history?


Solution

  • https://docs.chef.io/plugin_knife_reporting.html#runs-show is the relevant knife plugin, but for building a dashboard I would probably grab chef-api (for Ruby) or PyChef (for Python) and use the API directly.