Hello,
I have an issue with logstash. I try to configure it to get data from AWS kinesis and upload to elastic. I tested multiple cofig files, all ended with error
java.lang.IllegalArgumentException: profile file cannot be null
Here is input part of my config:
input {
kinesis {
kinesis_stream_name => "my-kinesis-stream-name"
checkpoint_interval_seconds => 10
region => "eu-west-1"
type => "kinesis"
profile => "/home/user/.aws/credentials"
initial_position_in_stream => TRIM_HORIZON
}
}
Here is credentials file:
[default]
aws_access_key_id=my-key-id
aws_secret_access_key=my-secret-access-jey
What's more, I declared environmental variables $aws_access_key_id=my-key-id and $aws_secret_access_key=my-secret-access-jey in root user profile. It didn't help.
I tried to comment line with profile attribute, thinking logstash will use environmental variables, but then I get
Unable to load AWS credentials from Java system properties (aws.accessKeyId and aws.secretKey), com.amazonaws.auth.profile.ProfileCredentialsProvider@507ed7ba: profile file cannot be null, com.amazonaws.auth.EC2ContainerCredentialsProviderWrapper@5312121e: Unable to load credentials from service endpoint]
I start logstash also in root user profile.
Is there any mistake, or did I miss something?
Please help.