Query Data in ELK

I am trying to curl that field from elasticsearch. will that work by copying the dashboard query.. ?