Skip to content

Latest commit

 

History

History
122 lines (104 loc) · 3.13 KB

terraformoptions.adoc

File metadata and controls

122 lines (104 loc) · 3.13 KB

Terraform Options

Table of Contents
Parameter Description Values Default

compartment_id

Compartment id where the logging resource will be provisioned. Required.

tenancy_id

Tenancy id . Required only for custom logs.

Parameter Description Values Default

label_prefix

A string that will be prepended to log resources

none

none

linux_logdef

Log Definition for the custom Linux logs

e.g.

 linux_logdef = {
  #customtflog = {loggroup="customtfloggrp",dg="<dynamicgroup>",path=["/var/log/containers/*.log","/var/log/*.log"]}
  #customtflog1 = {loggroup="customtfloggrp1",parser="SYSLOG",dg="<dynamicgroup>",path=["/opt/*.log"]}
}

{}

loggroup_tags

simple key-value pairs to tag the resources created specified in the form of a map

e.g.

loggroup_tags = {
  "Environment" = "Dev"
}

loggroup_tags = { Environment = "Dev" }

log_retention_duration

Duration to retain logs.

Allowed values are 30,60,90,120,150,180

30

service_logdef

Log Definition for the OCI Service logs

e.g.

  service_logdef = {
    #vcnlog = { loggroup = "vcnloggroup",  service = "flowlogs" ,resource="<subnetname>",enable=false}
    #vcnlog2 = { loggroup = "vcnloggroup2",  service = "flowlogs" ,resource="<subnetname>"}
    #oslog = { loggroup = "objloggroup",  service = "objectstorage" ,resource = "<bucketname>" }
    #oslog2 = { loggroup = "objloggroup",  service = "objectstorage" ,resource = "<bucketname>" }
    #functionlog = {loggroup = "funcloggroup",service="functions",resource = "<functionappname>"}
    #api_gw_deployment_log = { loggroup = "apiloggroup", service = "apigateway",resource="<apigwdeploymentname>"}
    #lblog = {loggroup="lbloggroup",service="loadbalancer",resource="<lbname>"}
    #eventlog = {loggroup="eventloggroup",service = "cloudevents",resource="<eventrulename>"}
    #vpnlog ={loggroup="vpnloggroup",service="vpn",resource="<ipsecname>"}
    #devopslog = {loggroup="devopsloggroup",service="devops",resource="<projectname>"}
    #emaillog = {loggroup="emailloggroup",service="email",resource="<emaildomain>"}
    #intlog = {loggroup="intloggroup",service="integration",resource="<integrationinstance>"}
    #waflog = {loggroup="wafloggroup",service="waf",resource="<firewallname>"}
  }

vcn_id

VCN OCID

none

windows_logdef

Log Definition for the custom windows logs

e.g.

windows_logdef = {
  #winlog = {loggroup="winloggrp",dg="<dynamicggroup>"}
  #winlog = {loggroup="winloggrp",dg="<dynamicggroup>",channel=["Application"]}
  }

{}