Giter Site home page Giter Site logo

Comments (5)

enriquerodbe avatar enriquerodbe commented on June 2, 2024

I see that change is not possible because connection string is determined in the register phase.
What about another plugin parameter like "config_path" that points to a database.yml?

from logstash-output-jdbc.

theangryangel avatar theangryangel commented on June 2, 2024

I'm happy to accept the pull request, if there's a reason I'm not seeing (forgive me if I am, but it's the end of the day here and I'm pretty tired ๐Ÿ˜…)... but I'm not sure of the benefit?

My thinking; the user that logstash runs as will need to read the yaml file - so it's not like you're trying to prevent the logstash user from being able to read the credentials? As a matter of best practice I'd make sure that the logstash configuration is reasonably secured anyway i.e. locked down to the account that logstash runs as.

If it's a case of ease of deployment, you should be able to template the logstash configuration using your deployment tool(s) - which negates the need for another configuration file.

I'm just trying to understand what I'm missing ๐Ÿ˜„

from logstash-output-jdbc.

enriquerodbe avatar enriquerodbe commented on June 2, 2024

Yes, I see. Looks like using templates is the way to go with logstash, since no other plugin has this feature.
Ok, sorry for the inconvenience and thanks for your time :)

from logstash-output-jdbc.

theangryangel avatar theangryangel commented on June 2, 2024

No problem @enriquerodbe ๐Ÿ˜„

If there is a reasonable reason, other than just another config file I'm happy to accept the pull request.

I know other plugins have considered supporting environment variables and string interpolation, but I don't know of any that currently do it. I'd be kinda fine with that personally, rather than another config file, but thats just me ๐Ÿ˜†

from logstash-output-jdbc.

theangryangel avatar theangryangel commented on June 2, 2024

@enriquerodbe - just as a FYI incase you missed it, Logstash now supports ENV vars - https://www.elastic.co/blog/logstash-2-3-0-and-2-2-3-released

from logstash-output-jdbc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.