Skip to content

Commit 7dba536

Browse files
Update util scripts
Signed-off-by: Lukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot)
1 parent 677b92f commit 7dba536

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

utils/search_aws_log_group.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ else
6565
export DTTO="$(to_epoch_ms "${DTTO}")"
6666
fi
6767

68+
DTF=$(date -u -d @$(echo "${DTFROM}/1000" | bc) "+%F %T.%6N")
69+
DTT=$(date -u -d @$(echo "${DTTO}/1000" | bc) "+%F %T.%6N")
70+
echo "Date range: ${DTF} .. ${DTT} (from ${DTFROM} to ${DTTO})"
71+
6872
if [ ! -z "${DEBUG}" ]
6973
then
7074
echo "aws --region \"${REGION}\" --profile \"lfproduct-${STAGE}\" logs filter-log-events --log-group-name \"/aws/lambda/${log_group}\" --start-time \"${DTFROM}\" --end-time \"${DTTO}\" --filter-pattern \"${2}\""

utils/search_aws_logs.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ else
5050
export DTTO="$(date -d "${DTTO}" +%s)000"
5151
fi
5252

53+
DTF=$(date -u -d @$(echo "${DTFROM}/1000" | bc) "+%F %T.%6N")
54+
DTT=$(date -u -d @$(echo "${DTTO}/1000" | bc) "+%F %T.%6N")
55+
echo "Date range: ${DTF} .. ${DTT} (from ${DTFROM} to ${DTTO})"
56+
5357
mapfile -t log_groups_array < <(aws --region "${REGION}" --profile "lfproduct-${STAGE}" logs describe-log-groups --log-group-name-prefix "/aws/lambda/cla-" --query "logGroups[].logGroupName" | jq -r '.[]')
5458

5559
IFS=',' read -ra INCL_LOGS_ARRAY <<< "${INCL_LOGS}"

0 commit comments

Comments
 (0)