Hi!
Im working on creating an alarm based on error logs in OCI and I also need to write the corresponding Terraform scripts for it. After investigating, I saw that in order to do this, I need to create a connector that sends the logs to my alarm and acts as a trigger. The OCI part is done.
Now, while working on the Terraform part, I am a bit blocked by the query part. My query for the connector is a more complex one that besides the compartment name, log group and logs, it contains a where condition as well:
where subject='ohpp-consumer-messaging-service' AND data.level='ERROR
’
My question is, where can I see how to add this part in the terraform file. At the moment, my source for terraform looks like this:
source {
kind = "logging"
log_sources {
compartment_id = var.compartment_id
log_group_id = "var.log_group_id"
log_id = "var.log_id"
}
}