获取elasticsearch 6.4.2中elasticsearch存储的脚本列表
Get a list of elasticsearch stored scripts in elasticsearch 6.4.2
我将我的 ES 从 elastic 5.x
升级到 elasticsearch 6.4.2
,在这个版本中我不能将脚本用作文件,只能用作 stored scripts。
我尝试使用此命令接收所有存储的脚本:
curl -XGET <elasticsearch_url>/_scripts
但是没用。
有一种方法可以获取保存在 ES 中的所有存储脚本吗?
您可以使用以下命令检索所有存储的脚本
curl -XGET '<elasticsearch_url>/_cluster/state/metadata?filter_path=metadata.stored_scripts'
我将我的 ES 从 elastic 5.x
升级到 elasticsearch 6.4.2
,在这个版本中我不能将脚本用作文件,只能用作 stored scripts。
我尝试使用此命令接收所有存储的脚本:
curl -XGET <elasticsearch_url>/_scripts
但是没用。
有一种方法可以获取保存在 ES 中的所有存储脚本吗?
您可以使用以下命令检索所有存储的脚本
curl -XGET '<elasticsearch_url>/_cluster/state/metadata?filter_path=metadata.stored_scripts'