Logstash需求
管道代理在将日志写入Logstash时使用TCP套接字。要做到这一点,Logstash需要一个TCP输入启用。
下面的代码片段展示了如何在Logstash中启用TCP输入:
输入{TCP {port => 5000 ssl_enable => true ssl_verify => true ssl_cert => "/usr/share/certs/logstash. "Crt " ssl_key => "/usr/share/certs/logstash. Crt " ssl_key => "/usr/share/certs/logstash. Crt " ssl_key => "密钥" ssl_certificate_authorities => ["/usr/share/certs/rootca. Key " ssl_certificate_authorities => ["Crt "]}}
启用Logstash集成
要启用管道节点代理与Logstash集成,请将以下条目添加到您的system.yaml运行时部分:
运行时:logging: logstash: host: logstash.my_company.com端口:5000 clientCertificatePath: /opt/jfrog/ pipes /var/etc/security/keys/trusted/node.cacrt clientPrivateKeyPath: / opt / jfrog /管道/ var / etc /安全/键/相信/ node.ca。/opt/jfrog/pipelines/var/etc/security/keys/trusted/rootca.crt . key logstashCaCertificatePath: /opt/jfrog/ pipes /var/etc/security/keys/trusted/rootca.crt . key
配置名称 | 描述 | 强制性的 |
---|---|---|
宿主 | Logstash服务主机 | 强制性的 |
港口 | Logstash服务端口 | 强制性的 |
clientCertificatePath | 要显示给Logstash服务的证书的路径 | 可选 |
clientPrivateKeyPath | 指定证书对应的私钥路径 | 可选 |
logstashCaCertificatePath | 用于验证Logstash证书的根证书颁发机构的路径 | 可选 |