Coder Social home page Coder Social logo

olualade / terraform-azurerm-log-analytics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from avinor/terraform-azurerm-log-analytics

0.0 0.0 0.0 53 KB

Terraform module to deploy Log Analytics workspace with option to add solutions to it.

Home Page: https://registry.terraform.io/modules/avinor/log-analytics/azurerm

License: Apache License 2.0

HCL 86.14% Makefile 1.08% Go 12.79%

terraform-azurerm-log-analytics's Introduction

Log Analytics

Deploys a log analytics workspace for collecting all diagnostics logs and metrics. Can collect logs across multiple subscriptions and connect to Security Center. It is recommended to deploy only one instance per region to collect all diagnostics in one place. For multiple regions it can be advantagious to deploy one in each region, as recommended by Microsoft.

Setup

Not all options are available in terraform yet. To collect Azure Activity logs additional configuration is required after deployment.

Open deployed log analytics workspace and go to "Workspace Data Sources" -> "Azure Activity log" and connect to subscriptions that should collect activity logs.

Usage

Example using tau for deployment

module {
    source = "avinor/log-analytics/azurerm"
    version = "1.1.0"
}

inputs {
    name = "logs"
    resource_group_name = "logs-rg"
    location = "westeurope"
}

To add solutions to the workspace use the solutions variable to define solution name, publisher and product.

module {
    source = "avinor/log-analytics/azurerm"
    version = "1.1.0"
}

inputs {
    name = "logs"
    resource_group_name = "logs-rg"
    location = "westeurope"

    solutions = [
        {
            solution_name = "ContainerInsights",
            publisher = "Microsoft",
            product = "OMSGallery/ContainerInsights",
        },
    ]
}

Solutions

Some of the solutions that can be added:

solution_name publisher  product
ContainerInsights Microsoft OMSGallery/ContainerInsights
AzureAppGatewayAnalytics Microsoft OMSGallery/AzureAppGatewayAnalytics
AzureActivity Microsoft OMSGallery/AzureActivity
Security Microsoft OMSGallery/Security
KeyVaultAnalytics Microsoft OMSGallery/KeyVaultAnalytics
AntiMalware Microsoft OMSGallery/AntiMalware
NetworkMonitoring Microsoft OMSGallery/NetworkMonitoring

In addition if using Azure Firewall install the Azure Firewall sample workspace for viewing firewall logs.

Contributors

If sharing a log analytics instance with other subscriptions it might be required to assign Log Analytics Contributor access to other service principals. Use the contributor input variable to assign access to other users / apps. This should be a list of object_ids.

terraform-azurerm-log-analytics's People

Contributors

tesharp avatar bassoflion avatar hbauge avatar insulaventus avatar

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.