首页 > 解决方案 > 使用 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 }
    
}

图片错误: https ://i.stack.imgur.com/0IuXq.png

标签: elasticsearchlogstash

解决方案


推荐阅读