You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# STAGE=dev DEBUG=1 DTFROM='3 days ago' DTTO='2 days ago' ./utils/search_aws_logs.sh 'cla-backend-dev-githubactivity' 'error'
3
+
4
+
if [ -z"$STAGE" ]
5
+
then
6
+
export STAGE=dev
7
+
fi
8
+
9
+
if [ -z"${1}" ]
10
+
then
11
+
echo"$0: you must specify log group name, for example: 'cla-backend-dev-githubactivity', 'cla-backend-dev-apiv2', 'cla-backend-dev-api-v3-lambda', 'cla-backend-go-api-v4-lambda'"
12
+
exit 1
13
+
fi
14
+
15
+
log_group=$(echo "$1"| sed -E "s/\b(dev|prod)\b/${STAGE}/g")
16
+
17
+
if [ -z"${2}" ]
18
+
then
19
+
echo"$0: you must specify the search term, for example 'error'"
0 commit comments