Skip to content

Instantly share code, notes, and snippets.

@fukaoi
Created June 9, 2018 15:29
Show Gist options
  • Save fukaoi/96eba87e2c6a488def514aa53778fc92 to your computer and use it in GitHub Desktop.
Save fukaoi/96eba87e2c6a488def514aa53778fc92 to your computer and use it in GitHub Desktop.
Put cutom log on aws cloudwatch
#!/bin/bash
DATE=`date "+%s"`
echo $DATE
DATE2=$(($DATE*2))
echo $DATE2
aws logs put-log-events --log-group-name scorpio --log-stream-name app --log-events timestamp=$DATE2,message="Test event 1" --sequence-token $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment