我试图将来自名为PRTG的服务的API的数据索引/插入到elasticsearch中。当我转到特定URL时,此API返回JSON文件,如WEB API,而不下载任何内容。我认为这个命令是可能的:
curl --user elastic:****** -XPOST http://localhost:9200/prtg_test/_mapping/_doc -d @'https://prtgserver/api/historicdata.json?id=2477&avg=0&sdate=2018-08-01-00-00-00&edate=2018-08-07-00-00-00&usecaption=1&username=myusser&password=****'
但我得到一个错误。
我是Elastic的新手,所以任何帮助都会很棒,谢谢。