Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to post json to cloudwatch

cat events | jq -s '.'> events-formatted.json
aws logs put-log-events --log-group-name my-logs --log-stream-name 20150601 --log-events file://events-formatted.json
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #post #json #cloudwatch
ADD COMMENT
Topic
Name
7+3 =