aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArif Ali <arif.ali@canonical.com>2023-05-09 12:07:12 +0100
committerJake Hunsaker <jhunsake@redhat.com>2023-05-10 10:09:19 -0400
commiteba087f15a7d218177c74203845f9d2bf06c4512 (patch)
tree0cfe16b04e37a5e79820c5bb6c39b88258bb65f7
parent89f7dbc7558644583b91923fa6309abda49b86c0 (diff)
downloadsos-eba087f15a7d218177c74203845f9d2bf06c4512.tar.gz
[elastic] Add shard, aliases and update log collection
Signed-off-by: Arif Ali <arif.ali@canonical.com>
-rw-r--r--sos/report/plugins/elastic.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sos/report/plugins/elastic.py b/sos/report/plugins/elastic.py
index 25c5715b..edb80159 100644
--- a/sos/report/plugins/elastic.py
+++ b/sos/report/plugins/elastic.py
@@ -47,7 +47,7 @@ class Elastic(Plugin, IndependentPlugin):
if self.get_option("all_logs"):
self.add_copy_spec("/var/log/elasticsearch/*")
else:
- self.add_copy_spec("/var/log/elasticsearch/elasticsearch.log")
+ self.add_copy_spec("/var/log/elasticsearch/*.log")
host, port = self.get_hostname_port(els_config_file)
endpoint = host + ":" + port
@@ -57,6 +57,8 @@ class Elastic(Plugin, IndependentPlugin):
"curl -X GET '%s/_cluster/stats?pretty'" % endpoint,
"curl -X GET '%s/_cat/nodes?v'" % endpoint,
"curl -X GET '%s/_cat/indices'" % endpoint,
+ "curl -X GET '%s/_cat/shards'" % endpoint,
+ "curl -X GET '%s/_cat/aliases'" % endpoint,
])
# vim: set et ts=4 sw=4 :