Which version of elastic search is compatible with kibana?

For product compatibility, have a look at the support matrix. Apart from this I suspect your question is far too wide for anyone to be able to give a good answer, so try to be more specific and provide more details. What have you tried so far?