Skip to content

Instantly share code, notes, and snippets.

@dsmrt
dsmrt / query-aws-logs-insights.bash
Last active May 9, 2025 14:49
Using AWS CLI to query CloudWatch Logs with Insights. Looking -30 mins to now.
# this script queries aws logs with insights filtering on ERROR
# explanation of start and end times
#--start-time = unix timestamp 30 mins in the past
#--end-time = unix timestamp now
QUERY_ID=$(aws logs start-query \
--profile $profile \
--log-group-name /aws/lambda/aap-event-consumer-dev \
--start-time `date -v-30M "+%s"` \
@davidcalhoun
davidcalhoun / japan-jobs.md
Created July 31, 2011 01:53
Foreigner-friendly software companies in Japan