Skip to content

Instantly share code, notes, and snippets.

@qi-qi
Created November 13, 2019 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qi-qi/3508bd70ed7f90558e40e832cc7d587b to your computer and use it in GitHub Desktop.
Save qi-qi/3508bd70ed7f90558e40e832cc7d587b to your computer and use it in GitHub Desktop.
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