Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Venkata Mutyala committed Dec 15, 2023
1 parent d53480f commit becd404
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions loki-logcli-backup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ for i in {2..72}; do


if [ $FILE_EXISTS -eq 0 ]; then
echo "The ${file} does not exist in S3. Starting to fetch logs from loki now..."

# Query Loki and create part file. The part file will be created in the current directory.
logcli query '{job=~".+"}' --output jsonl --timezone=UTC --tls-skip-verify --from "$start_time" --to "$end_time" --parallel-max-workers=2 --parallel-duration=120m --part-path-prefix=$(pwd)/$prefix_file_name

Expand Down

0 comments on commit becd404

Please sign in to comment.