【问题标题】:Redis input over TLS for Logstash用于 Logstash 的 Redis 通过 TLS 输入
【发布时间】:2021-12-18 14:25:55
【问题描述】:

我正在尝试使用 redis 作为缓冲区设置一个安全的 ELK 堆栈:

filebeat -> redis -> logstash -> 弹性

我安装了带有 TLS 配置的 redis,filebeat 可以通过 TLS 与 redis 通信,没有任何问题。

但我不明白如何配置logstash。有一个布尔选项 ssl,但是我在哪里可以提供 redis 证书?

filebeat.yml

output.redis:
  hosts: ["redishost:6379"]
  password: "password"
  key: "filebeat"
  db: 0
  timeout: 5
  ssl:
    enabled: true
    certificate_authorities: ["/etc/filebeat/cert/ca.crt"]
    insecure: true
    supported_protocols: [TLSv1.2]
    verification_mode: none

logstash 中的redis.conf

  redis {
    host => "redishost"
    password => "password"
    db => 0
    key => "filebeat"
    data_type => "list"
    ssl => true
  }

提前致谢

【问题讨论】:

    标签: elasticsearch ssl redis logstash elk


    【解决方案1】:

    您不能将 logstash 配置为信任 redis 证书或对其进行签名的授权。证书必须由运行 logstash 的 JRE 或 JDK 信任。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-08-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-25
      • 1970-01-01
      相关资源
      最近更新 更多