Rob2
July 12, 2018, 6:59pm
1
The current documentation at https://www.elastic.co/guide/en/x-pack/current/condition-script.html indicates in several places and examples that X-Pack Watcher script conditions can use other languages than "painless".
I just tried with Python and got back the error "Watcher: [illegal_argument_exception] script_lang not supported [python]".
Is the current documentation wrong?
Rob2
July 12, 2018, 7:05pm
2
Looks like the above link was for X-Pack 6.2. I think the word "current" here and in the url threw me off:
This seems to be the updated doc page for 6.3:
https://www.elastic.co/guide/en/elastic-stack-overview/current/condition-script.html
It still mentions other languages, and uses "lang": "javascript" in the example:
rjernst
(Ryan Ernst)
July 12, 2018, 10:36pm
3
Other languages can be used, but python
was removed as a scripting language. You could still use a custom script engine (java plugin).
system
(system)
Closed
August 9, 2018, 10:47pm
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.