Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting Credential Parameters #148

Open
guctum opened this issue Feb 11, 2020 · 0 comments
Open

Setting Credential Parameters #148

guctum opened this issue Feb 11, 2020 · 0 comments

Comments

@guctum
Copy link

guctum commented Feb 11, 2020

Per documentation from the readme, I'm trying to pass my credentials in as instance profile credentials as our AWS account uses a federated login and I can get temp credentials if I need to anything via CLI. I set up an instance profile with permission to talk to my elasticsearch domain. What the readme doesn't clarify is how to do this. Should I just leave the the aws_access_key_id and the aws_secret_access_key fields blank? Or just not include them at all? I have a few other problems to solve with this solution, but this will solve one of the access problems later on. I believe I am using the latest version of this plugin, I never specified a version when I installed via Logstash.
Here's the .conf file for reference:

input {
        jdbc {
                jdbc_validate_connection => true
                jdbc_connection_string => "valid url"
                jdbc_user => "redacted"
                jdbc_password => "redacted"
                jdbc_driver_class => ""
                statement => "valid query"
                schedule => "*/1 * * * *"
        }
}
filter
{
        # if [@timestamp] {
        #         mutate {
        #                 add_field => { "logstash_timestamp" => "%{@timestamp}" }
        #         }
        # }
        mutate { remove_field => [ "force_matching_signature" ] }
        mutate { convert => [ "sample_time" , "string" ] }
        date { match => [ "sample_time" , "ISO8601" ] }
}
output {
        amazon_es {
                hosts => ["https://domain-info.us-east-2.es.amazonaws.com/"]
                region => "us-east-2"
                # aws_access_key_id => ""
                # aws_secret_access_key => ""
                index => "index-name"
        }

        stdout {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant