I have Version: 5.4.1 kibana in my PC, now I am trying to re-write the watchers from groovy language to painless. so my question here is if this version of kibana 5.4.1 support painless language or not?
I ask the above bcos I see painless documentation only from 5.5
Painless was available in Elasticsearch starting 5.0. see https://www.elastic.co/guide/en/elasticsearch/reference/5.0/modules-scripting-painless-syntax.html
In kibana, I can track it to almost the same version. A kibana blog post states that you can use it in 5.1.1 : https://www.elastic.co/blog/using-painless-kibana-scripted-fields
So I guess that you should be fine with 5.4.1