based on kibana3