从 Cassandra 集群收集日志

问题描述 投票:0回答:1

我有 4 个 cassandra 节点在 docker 容器中的 4 个不同虚拟机上运行。有什么好的工具/方法可以收集日志(可选+指标)并通过网络用户界面查看它们。

我尝试了cassandra_explorerhttps://github.com/criteo/cassandra_exporter/tree/master 但它只收集指标。

logging cassandra devops monitoring
1个回答
0
投票

看起来其他人也在尝试做同样的事情。这是一个使用 logstash unput plugin 和以下配置完成的人。我自己没试过。

这里是对话链接

文件:简单 - out.conf

input {
jdbc {
# cassandra jdbc connection string to our database, BTS
jdbc_connection_string => "jdbc:cql://localhost:173.39.231.46/BTS"
# The user we wish to execute our statement as
jdbc_user => "cassandra"
# The path to our downloaded jdbc driver
jdbc_driver_library => "/path/to/cql-3.2.1-1201.jdbc41.jar"
# The name of the driver class
for cqlsh
jdbc_driver_class => "org.apache.cassandra.cql.jdbc.CassandraDriver"
# our query
statement => "cqlsh --cqlversion 3.2.1 173.39.231.46 1-u pcia_rw -p hyT%sD3z1KAq25eY -k ks_amer_pda"
}
}
output {
stdout {
codec => json_lines
}
}
© www.soinside.com 2019 - 2024. All rights reserved.