Created
November 13, 2019 21:12
-
-
Save qi-qi/3508bd70ed7f90558e40e832cc7d587b to your computer and use it in GitHub Desktop.
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
git clone https://github.com/awslabs/amazon-kinesis-agent.git | |
sudo ./setup --install | |
... | |
Configuration file installed at: /etc/aws-kinesis/agent.json | |
Configuration details: | |
{ | |
"cloudwatch.emitMetrics": true, | |
"kinesis.endpoint": "", | |
"firehose.endpoint": "", | |
"flows": [ | |
{ | |
"filePattern": "/tmp/app.log*", | |
"kinesisStream": "yourkinesisstream", | |
"partitionKeyOption": "RANDOM" | |
}, | |
{ | |
"filePattern": "/tmp/app.log*", | |
"deliveryStream": "yourdeliverystream" | |
} | |
] | |
} | |
Amazon Kinesis Agent is installed successfully. | |
To start the aws-kinesis-agent service, run: | |
sudo service aws-kinesis-agent start | |
To stop the aws-kinesis-agent service, run: | |
sudo service aws-kinesis-agent stop | |
To check the status of the aws-kinesis-agent service, run: | |
sudo service aws-kinesis-agent status | |
aws-kinesis-agent log file will be found at: /var/log/aws-kinesis-agent | |
To make the agent automatically start at system startup, type: | |
sudo chkconfig aws-kinesis-agent on | |
Your installation has completed! | |
ubuntu@ip-10-28-34-170:~/amazon-kinesis-agent$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment