The Coralogix terraform provider is used to interact with the resources supported by Coralogix. The provider needs to be configured with the proper credentials before it can be used. It requires terraform v1.3.0 or later.
View the latest version of our comprehensive usage guide in the terraform registry to learn more and view examples of how to use the terraform provider to manage Coralogix resources and APIs.
You can also view our open source code in its official GitHub repository.
provider "coralogix" { api_key = "<add your api key here or add env variable CORALOGIX_API_KEY>" env = "<add the environment where you want to work or add env variable CORALOGIX_ENV>" } resource "coralogix_rules_group" "my_first_rules_group" { name = "my first rules_group" }
The API key and desired environment for using the Coralogix provider can be set in two ways, either explicitly or implicitly through environment variables.
provider "coralogix" { api_key = "<add your api key>" env = "<add the environment where you want to work>" }
$ export CORALOGIX_API_KEY="<add your api key>"
$ export CORALOGIX_ENV="<add the environment where you want to work>"
api_key
(string, sensitive). A key for alerts, rules, and events2metric APIs (auto-generated), appropriate for the defined environment.env
(string). The Coralogix API environment should be the region [“APAC1”, “APAC2”, “EUROPE1”, “EUROPE2”, or “USA1”] associated with your Coralogix domain.Set up parsing rules and groups in your account as follows:
coralogix_events2metric
(previously coralogix_logs2metric
)
coralogix_recording_rules_group
Set up alerts in your account as follows:
coralogix_events2metric
(previously coralogix_logs2metric
)
coralogix_recording_rules_group
We welcome your contribution to our open source code! Share your ideas and report any bugs here.
Need help?
Our world-class customer success team is available 24/7 to walk you through your setup and answer any questions that may come up.
Feel free to reach out to us via our in-app chat or by sending us an email at [email protected].