- make sure an inbound rule is set up for ssh on port 22 from anywhere
sudo yum updatesudo yum install –y aws-kinesis-agentvi /etc/aws-kinesis/agent.jsonand enter the following:{ "cloudwatch.emitMetrics": true, "kinesis.endpoint": "", "firehose.endpoint": "https://firehose.us-east-1.amazonaws.com", "flows": [ { "filePattern": "/tmp/app.log*", "kinesisStream": "yourkinesisstream", "partitionKeyOption": "RANDOM" }, { "filePattern": "/tmp/*.log", "deliveryStream": "log-gen" } ] }sudo service aws-kinesis-agent starttail -f /var/log/aws-kinesis-agent/aws-kinesis-agent.logcheck if it's up then exit if okgem install apache-loggencd /tmpapache-loggen --rate=1000 > test.log
Created
October 15, 2016 16:01
-
-
Save githoov/508c1b4878e2f0202c6e9454327504fa to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment