From 0a6fcc097b60c192d6d67f1e1820d2756a1784dc Mon Sep 17 00:00:00 2001 From: Luke Francl Date: Sat, 4 Mar 2023 16:33:16 -0800 Subject: [PATCH] Show headings for count script The first value in the _count/count output is a timestamp, but I confused it with a document count since it just looks like a big number. This adds the ?v option so it OpenSearch prints the headers. --- count-tracker.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/count-tracker.sh b/count-tracker.sh index 5c49e842..16fc5530 100755 --- a/count-tracker.sh +++ b/count-tracker.sh @@ -2,8 +2,8 @@ while [ true ]; do echo "Queries:" - curl -k -XGET -u admin:admin "https://localhost:9200/_cat/count/bbuy_queries"; + curl -k -XGET -u admin:admin "https://localhost:9200/_cat/count/bbuy_queries?v"; echo "Products:" - curl -k -XGET -u admin:admin "https://localhost:9200/_cat/count/bbuy_products"; + curl -k -XGET -u admin:admin "https://localhost:9200/_cat/count/bbuy_products?v"; sleep 60; done \ No newline at end of file