Is there a way to list all job id\'s using bq command line tool for a given timeframe? What I need to do is to loop through all Id\'s and find if there is any error.
The following shell script is close to what I need to report.
#!/bin/sh
bq ls -j `bq show | grep ^Project | awk '{print $2}'` | grep "`date +'%d %b'`" | awk '{print $1}' > tosave.txt
for myjob in `cat tosave.txt`
do
bq ls -j `bq show | grep ^Project | awk '{print $2}'` | grep $myjob
bq show --format=prettyjson -j $myjob | grep -C2 "message" | head
done