Giter VIP home page Giter VIP logo

oci-observability-and-management's Introduction

oci-observability-and-management

This repository has automation for various observability and management services on OCI. The examples folder has all the details.

OCI Logging Analytics

In this example we will get you started on the Oracle Cloud Infrastructure observability and management journey. This example quickly creates a audit logs dashboard with just one click.

Deploy to Oracle Cloud

Out-of-Box Dashboard for OCI Audit Logs

Contributing

This project welcomes contributions from the community. Before submitting a pull request, see CONTRIBUTING for details.

License

Copyright (c) 2021, 2022 Oracle and/or its affiliates. Released under the Universal Permissive License (UPL), Version 1.0. See LICENSE for more details.

oci-observability-and-management's People

Contributors

anand-gith avatar ayoub-belmehdi avatar benofben avatar goutv avatar kalsaria-c avatar kgvarun avatar mishracp avatar naikvenu avatar oswaldo-osuna avatar sandeep-ax-kumar avatar zkhader avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

oci-observability-and-management's Issues

Remove the oci.oci_home provider block from module.logging_analytics_quickstart

I am deploying oci logging analytics module in OCI, I get below error, stack is not getting created.

2023/07/17 11:49:57[TERRAFORM_CONSOLE] [INFO] Getting providers from hashicorp registry and/or custom terraform providers
2023/07/17 11:49:57[TERRAFORM_CONSOLE] [INFO] Initializing modules...
2023/07/17 11:49:57[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:49:57[TERRAFORM_CONSOLE] [INFO] Initializing provider plugins...
2023/07/17 11:49:57[TERRAFORM_CONSOLE] [INFO] - Finding latest version of hashicorp/oci...
2023/07/17 11:49:57[TERRAFORM_CONSOLE] [INFO] - Finding latest version of hashicorp/null...
2023/07/17 11:49:57[TERRAFORM_CONSOLE] [INFO] - Installing hashicorp/oci v5.4.0...
2023/07/17 11:49:57[TERRAFORM_CONSOLE] [INFO] - Installed hashicorp/oci v5.4.0 (unauthenticated)
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] - Installing hashicorp/null v3.2.1...
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] - Installed hashicorp/null v3.2.1 (signed by HashiCorp)
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] Terraform has created a lock file .terraform.lock.hcl to record the provider
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] selections it made above. Include this file in your version control repository
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] so that Terraform can guarantee to make the same selections by default when
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] you run "terraform init" in the future.
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] Warning: Empty provider configuration blocks are not required
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO]   on ../../oci-core-modules/oci_iam/providers.tf line 6:
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO]    6: provider "oci" {
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] Remove the oci.oci_home provider block from
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] module.logging_analytics_quickstart. Add oci.oci_home to the list of
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] configuration_aliases for oci in required_providers to define the provider
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] configuration name.
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] (and one more similar warning elsewhere)
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] Terraform has been successfully initialized!
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] You may now begin working with Terraform. Try running "terraform plan" to see
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] any changes that are required for your infrastructure. All Terraform commands
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] should now work.
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] If you ever set or change modules or backend configuration for Terraform,
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] rerun this command to reinitialize your working directory. If you forget, other
2023/07/17 11:49:58[TERRAFORM_CONSOLE] [INFO] commands will detect it and remind you to do so if necessary.
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] Warning: Empty provider configuration blocks are not required
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO]   on ../../oci-core-modules/oci_iam/providers.tf line 6:
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO]    6: provider "oci" {
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] Remove the oci.oci_home provider block from
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] module.logging_analytics_compartment. Add oci.oci_home to the list of
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] configuration_aliases for oci in required_providers to define the provider
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] configuration name.
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] (and one more similar warning elsewhere)
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] Error: Invalid index
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO]   on logan.tf line 5, in locals:
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO]    5:     audit_loggroup_id = "${oci_log_analytics_log_analytics_log_group.audit-loganalytics-group.0.id}"
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO]     ├────────────────
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO]     │ oci_log_analytics_log_analytics_log_group.audit-loganalytics-group is empty tuple
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] The given key does not identify an element in this collection value.
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] Error: Invalid index
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO]   on logan.tf line 81, in resource "oci_identity_policy" "sch_auto_create_policy":
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO]   81:     statements = ["allow any-user to {LOG_ANALYTICS_LOG_GROUP_UPLOAD_LOGS} in compartment id ${var.compartment_ocid} where all {request.principal.type='serviceconnector', target.loganalytics-log-group.id='${oci_log_analytics_log_analytics_log_group.audit-loganalytics-group.0.id}', request.principal.compartment.id='${var.compartment_ocid}'}"]
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO]     ├────────────────
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO]     │ oci_log_analytics_log_analytics_log_group.audit-loganalytics-group is empty tuple
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] 
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] The given key does not identify an element in this collection value.
2023/07/17 11:50:03[TERRAFORM_CONSOLE] [INFO] 

OCIR authentication

Hi Team.

I was failing to deploy this solution oci-idcs-monitoring either using the marketplace APP or via Terraform.
It seems that the code is not authenticating before uploading the image to the container registry, so it fails with “Denied: Anonymous users are only allowed read access on public repos”
I was not able to deploy via resource manager or terraform.
Then, with Terraform I just previously executed the docker login command with the credentials and the solution was deployed smoothly.

2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): 8e159402cbb8: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): 9684b89cfbc1: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): e392a63d032a: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): c9264e9aa767: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): c9264e9aa767: Waiting
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): e392a63d032a: Waiting
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] null_resource.IdcsAuditLogPush2OCIR (local-exec): denied: Anonymous users are only allowed read access on public repos
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] Error: local-exec provisioner error
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] with null_resource.IdcsAuditLogPush2OCIR,
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] on main.tf line 31, in resource "null_resource" "IdcsAuditLogPush2OCIR":
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] 31: provisioner "local-exec" {
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] Error running command 'docker push
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] phx.ocir.io/NAMESPACE/loganalytics/postauditlogs:0.0.1': exit status 1.
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] Output: The push refers to repository
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] [phx.ocir.io/NAMESPACE/loganalytics/postauditlogs]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] 3427d0aaff85: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] c69ed9288d51: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] bbcfa0d2dcd1: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] 8e159402cbb8: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] 9684b89cfbc1: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] e392a63d032a: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] c9264e9aa767: Preparing
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] c9264e9aa767: Waiting
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] e392a63d032a: Waiting
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO] denied: Anonymous users are only allowed read access on public repos
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]
2023/04/13 21:24:20[TERRAFORM_CONSOLE] [INFO]

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.