kibana3 cookbook rewrite