Created
June 9, 2018 15:29
-
-
Save fukaoi/96eba87e2c6a488def514aa53778fc92 to your computer and use it in GitHub Desktop.
Put cutom log on aws cloudwatch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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