Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
logstash-input-kinesis
Advanced tools
This is a AWS Kinesis input plugin for Logstash. Under the hood uses the Kinesis Client Library.
This plugin requires Logstash >= 2.0, and can be installed by Logstash itself.
bin/logstash-plugin install logstash-input-kinesis
input {
kinesis {
kinesis_stream_name => "my-logging-stream"
codec => json { }
}
}
If you are looking to read a CloudWatch Logs subscription stream, you'll also want to install and configure the CloudWatch Logs Codec.
This are the properties you can configure and what are the default values:
application_name
: The name of the application used in DynamoDB for coordination. Only one worker per unique stream partition and application will be actively consuming messages.
logstash
kinesis_stream_name
: The Kinesis stream name.
region
: The AWS region name for Kinesis, DynamoDB and Cloudwatch (if enabled)
us-east-1
checkpoint_interval_seconds
: How many seconds between worker checkpoints to DynamoDB. A low value ussually means lower message replay in case of node failure/restart but it increases CPU+network ussage (which increases the AWS costs).
60
metrics
: Worker metric tracking. By default this is disabled, set it to "cloudwatch" to enable the cloudwatch integration in the Kinesis Client Library.
nil
profile
: The AWS profile name for authentication. This ensures that the ~/.aws/credentials
AWS auth provider is used. By default this is empty and the default chain will be used.
role_arn
: The AWS role to assume. This can be used, for example, to access a Kinesis stream in a different AWS
account. This role will be assumed after the default credentials or profile credentials are created. By default
this is empty and a role will not be assumed.
role_session_name
: Session name to use when assuming an IAM role. This is recorded in CloudTrail logs for example.
"logstash"
initial_position_in_stream
: The value for initialPositionInStream. Accepts "TRIM_HORIZON" or "LATEST".
"TRIM_HORIZON"
additional_settings
: The KCL provides several configuration options which can be set in KinesisClientLibConfiguration. These options are configured via various function calls that all begin with with
. Some of these functions take complex types, which are not supported. However, you may invoke any one of the withX()
functions that take a primitive by providing key-value pairs in snake_case
. For example, to set the dynamodb read and write capacity values, two functions exist, withInitialLeaseTableReadCapacity and withInitialLeaseTableWriteCapacity. To set a value for these, provide a hash of additional_settings => {"initial_lease_table_read_capacity" => 25, "initial_lease_table_write_capacity" => 100}
{}
This plugin uses the default AWS SDK auth chain, DefaultAWSCredentialsProviderChain, to determine which credentials the client will use, unless profile
is set, in which case ProfileCredentialsProvider is used.
The default chain follows this order trying to read the credentials:
AWS_ACCESS_KEY_ID
/ AWS_SECRET_KEY
environment variables~/.aws/credentials
credentials fileThe credentials will need access to the following services:
Look at the documentation for deeper information on the default chain.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)To download all jars:
bundler exec rake install_jars
To run all specs:
bundler exec rspec
FAQs
Unknown package
We found that logstash-input-kinesis demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.