Code Monkey home page Code Monkey logo

Comments (5)

lgallard avatar lgallard commented on September 24, 2024

Hi @spicoflorin As mentioned in #7, If you need all three logs enabled the module must be modified to include more than just one log_publishing_options block.

from terraform-aws-elasticsearch.

spicoflorin avatar spicoflorin commented on September 24, 2024

Thank you for your response. Is still not clear for how to achieve this (I'm a newbie in terraform subject).
In my terragrunt.hcl I have added all three log_publishing_options for each of the log type (as I mentioned in my first post), and the behavior was the one that I've mentioned.
Can you please point me where do I have add these changes, and how they should look like?
A sample code will be very helpful.

from terraform-aws-elasticsearch.

lgallard avatar lgallard commented on September 24, 2024

@spicoflorin currently is not possible to define more than one log option.

Here https://github.com/lgallard/terraform-aws-elasticsearch/blob/master/main.tf#L107 is where the block is defined.

And the code is hardcoded to use just one map into a list here https://github.com/lgallard/terraform-aws-elasticsearch/blob/master/main.tf#L243.

Therefore log_publishing_options variable must be changed from:

  log_publishing_options = {
    enabled                  = "true"
    log_type                 = "INDEX_SLOW_LOGS"
  }
 

To something like:

  log_publishing_options = {    
    INDEX_SLOW_LOGS = true
 }

This way it will be easier to have a multiple publishing options for logs:

  log_publishing_options = {    
    INDEX_SLOW_LOGS     = true
    ES_APPLICATION_LOGS = true
    SEARCH_SLOW_LOGS    = true
 }

But the module logic must be changed. I can include these changes as soon as I have time or if it's urgent you can create a PR.

from terraform-aws-elasticsearch.

spicoflorin avatar spicoflorin commented on September 24, 2024

Hello!
Thank you very much for your answers. It is not urgent. I think it will be very helpful for the community to include these features in a future release.
Best regards, Florin

from terraform-aws-elasticsearch.

EvanAtHelloSign avatar EvanAtHelloSign commented on September 24, 2024

Is this feature already implemented? If so, what's the proper way to publish different logs to different log group?

from terraform-aws-elasticsearch.

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.