elasticsearch - 使用 Logstash 将 JSON 从 url 导入到 elasticsearch
问题描述
我是 Elasticsearch 的新手,我只需要从 url 解析 json 数据。Json链接是:https ://www.circl.lu/doc/misp/feed-osint/0165e5d7-51e6-4c2e-a382-1dd1e706f7bb.json
这是我的logstash conf文件:
input {
http {
url => "https://www.circl.lu/doc/misp/feed-osint/0165e5d7-51e6-4c2e-a382-1dd1e706f7bb.json"
codec => json
}
}
filter {
}
output {
elasticsearch {
hosts => "http://localhost:9200"
index => "indexlogstash"
}
stdout { codec => rubydebug }
}
解决方案
推荐阅读
- c# - 如何检查动态创建的winform实例是否已经在c#中打开
- reactjs - types.reference 没有解析 mobx-state-tree 中的引用
- php - 警告:在第 8 行............
- docker - Docker 撰写和 nginx.php.mysql
- python - 用给定的列表形成一个表
- swift - 为什么我的标签没有显示在我的集合视图单元格中?
- c#-4.0 - 如何检测从数组中的数字输入的数字
- php - 如何阻止 escapeshellarg() 在 Windows 上将 "s 变成空格?
- c++ - 这个函数期望返回什么?
- azure-devops - 出于计费目的,Azure DevOps GIT 存储库存储是否算作“工件”?