We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c3192fd + 9e78ed3 commit e2957cfCopy full SHA for e2957cf
docs/latest/modules/en/attachments/suse-observability_logs_collector.sh
@@ -25,7 +25,6 @@ EOF
25
exit 0;;
26
e) # Collect elasticsearch logs
27
ELASTICSEARCH_LOGS=true;;
28
- ELASTICSEARCH_LOGS=true;;
29
r) # Time range for elasticsearch logs
30
ELASTICSEARCH_RANGE=$OPTARG;;
31
\?) # Invalid option
@@ -271,7 +270,7 @@ EOF
271
270
}
272
EOF
273
ts=$(jq -r '.hits.hits[-1].sort[0]' $TEMP)
274
- if [ "$ts" != "null" ]; then
+ if [ "$ts" != "null" ] && [ "$ts" != "" ]; then
275
from=$(($ts / 1000000))
276
else
277
from=""
@@ -390,7 +389,6 @@ collect_workload_observer_data
390
389
if $HELM_RELEASES; then
391
collect_helm_releases
392
fi
393
-if $ELASTICSEARCH_LOGS; then
394
if $ELASTICSEARCH_LOGS; then
395
collect_pod_logs_from_elasticsearch
396
0 commit comments