I am using the following shell snipped to download csvs for a a series of queries that I have collected up in Kibana:
for filename in ${KIBANA_QUERIES}/*.rison; do
echo "Processing query file: $filename"
CSV_REPORT=$(basename $filename.csv)
REPORT_PATH=$(curl -s --insecure -u "elastic:${ELASTIC_SECRET_UMS}" -H "kbn-version: 7.11.2" -XPOST $(cat $filename) | jq -r '.path')
echo "Report path: $REPORT_PATH"
echo "Downloading report to: $CSV_REPORT"
curl -s --insecure -u "elastic:${ELASTIC_SECRET_UMS}" https://${K8S_NODE_IP}:${KIBANA_NODE_PORT}${REPORT_PATH} --output $HOME/Downloads/$CSV_REPORT
done
When I run this command, the csv report that comes out just contains the work 'Processing'. Is there a way to wait until the csv report is ready? I am version 7.10 of the ELK stack.