What is the oldest version of Grafana that support Elasticsearch 6.2

Hi I’m woriking with Grafana 5.1 but I updated my Elasticsearch to the version 6.2 and the datasource doesn’t function now.

could someone help me?