ELK, Problem with kibana

that's good but first i want to get the query which is responsible for the curve visualization in kibana in order to execute it outside of kibana.