oci.LogAnalytics.LogAnalyticsObjectCollectionRule
Explore with Pulumi AI
This resource provides the Log Analytics Object Collection Rule resource in Oracle Cloud Infrastructure Log Analytics service.
Create a configuration to collect logs from object storage bucket.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLogAnalyticsObjectCollectionRule = new oci.loganalytics.LogAnalyticsObjectCollectionRule("test_log_analytics_object_collection_rule", {
compartmentId: compartmentId,
logGroupId: testLogGroup.id,
logSourceName: logAnalyticsObjectCollectionRuleLogSourceName,
name: logAnalyticsObjectCollectionRuleName,
namespace: logAnalyticsObjectCollectionRuleNamespace,
osBucketName: testBucket.name,
osNamespace: logAnalyticsObjectCollectionRuleOsNamespace,
charEncoding: logAnalyticsObjectCollectionRuleCharEncoding,
collectionType: logAnalyticsObjectCollectionRuleCollectionType,
definedTags: {
"foo-namespace.bar-key": "value",
},
description: logAnalyticsObjectCollectionRuleDescription,
entityId: testEntity.id,
freeformTags: {
"bar-key": "value",
},
isEnabled: logAnalyticsObjectCollectionRuleIsEnabled,
isForceHistoricCollection: logAnalyticsObjectCollectionRuleIsForceHistoricCollection,
logSet: logAnalyticsObjectCollectionRuleLogSet,
logSetExtRegex: logAnalyticsObjectCollectionRuleLogSetExtRegex,
logSetKey: logAnalyticsObjectCollectionRuleLogSetKey,
logType: logAnalyticsObjectCollectionRuleLogType,
objectNameFilters: logAnalyticsObjectCollectionRuleObjectNameFilters,
overrides: logAnalyticsObjectCollectionRuleOverrides,
pollSince: logAnalyticsObjectCollectionRulePollSince,
pollTill: logAnalyticsObjectCollectionRulePollTill,
timezone: logAnalyticsObjectCollectionRuleTimezone,
});
import pulumi
import pulumi_oci as oci
test_log_analytics_object_collection_rule = oci.log_analytics.LogAnalyticsObjectCollectionRule("test_log_analytics_object_collection_rule",
compartment_id=compartment_id,
log_group_id=test_log_group["id"],
log_source_name=log_analytics_object_collection_rule_log_source_name,
name=log_analytics_object_collection_rule_name,
namespace=log_analytics_object_collection_rule_namespace,
os_bucket_name=test_bucket["name"],
os_namespace=log_analytics_object_collection_rule_os_namespace,
char_encoding=log_analytics_object_collection_rule_char_encoding,
collection_type=log_analytics_object_collection_rule_collection_type,
defined_tags={
"foo-namespace.bar-key": "value",
},
description=log_analytics_object_collection_rule_description,
entity_id=test_entity["id"],
freeform_tags={
"bar-key": "value",
},
is_enabled=log_analytics_object_collection_rule_is_enabled,
is_force_historic_collection=log_analytics_object_collection_rule_is_force_historic_collection,
log_set=log_analytics_object_collection_rule_log_set,
log_set_ext_regex=log_analytics_object_collection_rule_log_set_ext_regex,
log_set_key=log_analytics_object_collection_rule_log_set_key,
log_type=log_analytics_object_collection_rule_log_type,
object_name_filters=log_analytics_object_collection_rule_object_name_filters,
overrides=log_analytics_object_collection_rule_overrides,
poll_since=log_analytics_object_collection_rule_poll_since,
poll_till=log_analytics_object_collection_rule_poll_till,
timezone=log_analytics_object_collection_rule_timezone)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/LogAnalytics"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := LogAnalytics.NewLogAnalyticsObjectCollectionRule(ctx, "test_log_analytics_object_collection_rule", &LogAnalytics.LogAnalyticsObjectCollectionRuleArgs{
CompartmentId: pulumi.Any(compartmentId),
LogGroupId: pulumi.Any(testLogGroup.Id),
LogSourceName: pulumi.Any(logAnalyticsObjectCollectionRuleLogSourceName),
Name: pulumi.Any(logAnalyticsObjectCollectionRuleName),
Namespace: pulumi.Any(logAnalyticsObjectCollectionRuleNamespace),
OsBucketName: pulumi.Any(testBucket.Name),
OsNamespace: pulumi.Any(logAnalyticsObjectCollectionRuleOsNamespace),
CharEncoding: pulumi.Any(logAnalyticsObjectCollectionRuleCharEncoding),
CollectionType: pulumi.Any(logAnalyticsObjectCollectionRuleCollectionType),
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
Description: pulumi.Any(logAnalyticsObjectCollectionRuleDescription),
EntityId: pulumi.Any(testEntity.Id),
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
IsEnabled: pulumi.Any(logAnalyticsObjectCollectionRuleIsEnabled),
IsForceHistoricCollection: pulumi.Any(logAnalyticsObjectCollectionRuleIsForceHistoricCollection),
LogSet: pulumi.Any(logAnalyticsObjectCollectionRuleLogSet),
LogSetExtRegex: pulumi.Any(logAnalyticsObjectCollectionRuleLogSetExtRegex),
LogSetKey: pulumi.Any(logAnalyticsObjectCollectionRuleLogSetKey),
LogType: pulumi.Any(logAnalyticsObjectCollectionRuleLogType),
ObjectNameFilters: pulumi.Any(logAnalyticsObjectCollectionRuleObjectNameFilters),
Overrides: pulumi.Any(logAnalyticsObjectCollectionRuleOverrides),
PollSince: pulumi.Any(logAnalyticsObjectCollectionRulePollSince),
PollTill: pulumi.Any(logAnalyticsObjectCollectionRulePollTill),
Timezone: pulumi.Any(logAnalyticsObjectCollectionRuleTimezone),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testLogAnalyticsObjectCollectionRule = new Oci.LogAnalytics.LogAnalyticsObjectCollectionRule("test_log_analytics_object_collection_rule", new()
{
CompartmentId = compartmentId,
LogGroupId = testLogGroup.Id,
LogSourceName = logAnalyticsObjectCollectionRuleLogSourceName,
Name = logAnalyticsObjectCollectionRuleName,
Namespace = logAnalyticsObjectCollectionRuleNamespace,
OsBucketName = testBucket.Name,
OsNamespace = logAnalyticsObjectCollectionRuleOsNamespace,
CharEncoding = logAnalyticsObjectCollectionRuleCharEncoding,
CollectionType = logAnalyticsObjectCollectionRuleCollectionType,
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
Description = logAnalyticsObjectCollectionRuleDescription,
EntityId = testEntity.Id,
FreeformTags =
{
{ "bar-key", "value" },
},
IsEnabled = logAnalyticsObjectCollectionRuleIsEnabled,
IsForceHistoricCollection = logAnalyticsObjectCollectionRuleIsForceHistoricCollection,
LogSet = logAnalyticsObjectCollectionRuleLogSet,
LogSetExtRegex = logAnalyticsObjectCollectionRuleLogSetExtRegex,
LogSetKey = logAnalyticsObjectCollectionRuleLogSetKey,
LogType = logAnalyticsObjectCollectionRuleLogType,
ObjectNameFilters = logAnalyticsObjectCollectionRuleObjectNameFilters,
Overrides = logAnalyticsObjectCollectionRuleOverrides,
PollSince = logAnalyticsObjectCollectionRulePollSince,
PollTill = logAnalyticsObjectCollectionRulePollTill,
Timezone = logAnalyticsObjectCollectionRuleTimezone,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LogAnalytics.LogAnalyticsObjectCollectionRule;
import com.pulumi.oci.LogAnalytics.LogAnalyticsObjectCollectionRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var testLogAnalyticsObjectCollectionRule = new LogAnalyticsObjectCollectionRule("testLogAnalyticsObjectCollectionRule", LogAnalyticsObjectCollectionRuleArgs.builder()
.compartmentId(compartmentId)
.logGroupId(testLogGroup.id())
.logSourceName(logAnalyticsObjectCollectionRuleLogSourceName)
.name(logAnalyticsObjectCollectionRuleName)
.namespace(logAnalyticsObjectCollectionRuleNamespace)
.osBucketName(testBucket.name())
.osNamespace(logAnalyticsObjectCollectionRuleOsNamespace)
.charEncoding(logAnalyticsObjectCollectionRuleCharEncoding)
.collectionType(logAnalyticsObjectCollectionRuleCollectionType)
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.description(logAnalyticsObjectCollectionRuleDescription)
.entityId(testEntity.id())
.freeformTags(Map.of("bar-key", "value"))
.isEnabled(logAnalyticsObjectCollectionRuleIsEnabled)
.isForceHistoricCollection(logAnalyticsObjectCollectionRuleIsForceHistoricCollection)
.logSet(logAnalyticsObjectCollectionRuleLogSet)
.logSetExtRegex(logAnalyticsObjectCollectionRuleLogSetExtRegex)
.logSetKey(logAnalyticsObjectCollectionRuleLogSetKey)
.logType(logAnalyticsObjectCollectionRuleLogType)
.objectNameFilters(logAnalyticsObjectCollectionRuleObjectNameFilters)
.overrides(logAnalyticsObjectCollectionRuleOverrides)
.pollSince(logAnalyticsObjectCollectionRulePollSince)
.pollTill(logAnalyticsObjectCollectionRulePollTill)
.timezone(logAnalyticsObjectCollectionRuleTimezone)
.build());
}
}
resources:
testLogAnalyticsObjectCollectionRule:
type: oci:LogAnalytics:LogAnalyticsObjectCollectionRule
name: test_log_analytics_object_collection_rule
properties:
compartmentId: ${compartmentId}
logGroupId: ${testLogGroup.id}
logSourceName: ${logAnalyticsObjectCollectionRuleLogSourceName}
name: ${logAnalyticsObjectCollectionRuleName}
namespace: ${logAnalyticsObjectCollectionRuleNamespace}
osBucketName: ${testBucket.name}
osNamespace: ${logAnalyticsObjectCollectionRuleOsNamespace}
charEncoding: ${logAnalyticsObjectCollectionRuleCharEncoding}
collectionType: ${logAnalyticsObjectCollectionRuleCollectionType}
definedTags:
foo-namespace.bar-key: value
description: ${logAnalyticsObjectCollectionRuleDescription}
entityId: ${testEntity.id}
freeformTags:
bar-key: value
isEnabled: ${logAnalyticsObjectCollectionRuleIsEnabled}
isForceHistoricCollection: ${logAnalyticsObjectCollectionRuleIsForceHistoricCollection}
logSet: ${logAnalyticsObjectCollectionRuleLogSet}
logSetExtRegex: ${logAnalyticsObjectCollectionRuleLogSetExtRegex}
logSetKey: ${logAnalyticsObjectCollectionRuleLogSetKey}
logType: ${logAnalyticsObjectCollectionRuleLogType}
objectNameFilters: ${logAnalyticsObjectCollectionRuleObjectNameFilters}
overrides: ${logAnalyticsObjectCollectionRuleOverrides}
pollSince: ${logAnalyticsObjectCollectionRulePollSince}
pollTill: ${logAnalyticsObjectCollectionRulePollTill}
timezone: ${logAnalyticsObjectCollectionRuleTimezone}
Create LogAnalyticsObjectCollectionRule Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LogAnalyticsObjectCollectionRule(name: string, args: LogAnalyticsObjectCollectionRuleArgs, opts?: CustomResourceOptions);
@overload
def LogAnalyticsObjectCollectionRule(resource_name: str,
args: LogAnalyticsObjectCollectionRuleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LogAnalyticsObjectCollectionRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
log_group_id: Optional[str] = None,
os_namespace: Optional[str] = None,
compartment_id: Optional[str] = None,
os_bucket_name: Optional[str] = None,
namespace: Optional[str] = None,
log_source_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
is_force_historic_collection: Optional[bool] = None,
char_encoding: Optional[str] = None,
log_set: Optional[str] = None,
log_set_ext_regex: Optional[str] = None,
log_set_key: Optional[str] = None,
entity_id: Optional[str] = None,
log_type: Optional[str] = None,
is_enabled: Optional[bool] = None,
description: Optional[str] = None,
object_name_filters: Optional[Sequence[str]] = None,
defined_tags: Optional[Mapping[str, str]] = None,
collection_type: Optional[str] = None,
overrides: Optional[Sequence[_loganalytics.LogAnalyticsObjectCollectionRuleOverrideArgs]] = None,
poll_since: Optional[str] = None,
poll_till: Optional[str] = None,
timezone: Optional[str] = None)
func NewLogAnalyticsObjectCollectionRule(ctx *Context, name string, args LogAnalyticsObjectCollectionRuleArgs, opts ...ResourceOption) (*LogAnalyticsObjectCollectionRule, error)
public LogAnalyticsObjectCollectionRule(string name, LogAnalyticsObjectCollectionRuleArgs args, CustomResourceOptions? opts = null)
public LogAnalyticsObjectCollectionRule(String name, LogAnalyticsObjectCollectionRuleArgs args)
public LogAnalyticsObjectCollectionRule(String name, LogAnalyticsObjectCollectionRuleArgs args, CustomResourceOptions options)
type: oci:LogAnalytics:LogAnalyticsObjectCollectionRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LogAnalyticsObjectCollectionRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LogAnalyticsObjectCollectionRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LogAnalyticsObjectCollectionRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LogAnalyticsObjectCollectionRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LogAnalyticsObjectCollectionRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var logAnalyticsObjectCollectionRuleResource = new Oci.LogAnalytics.LogAnalyticsObjectCollectionRule("logAnalyticsObjectCollectionRuleResource", new()
{
LogGroupId = "string",
OsNamespace = "string",
CompartmentId = "string",
OsBucketName = "string",
Namespace = "string",
LogSourceName = "string",
FreeformTags =
{
{ "string", "string" },
},
Name = "string",
IsForceHistoricCollection = false,
CharEncoding = "string",
LogSet = "string",
LogSetExtRegex = "string",
LogSetKey = "string",
EntityId = "string",
LogType = "string",
IsEnabled = false,
Description = "string",
ObjectNameFilters = new[]
{
"string",
},
DefinedTags =
{
{ "string", "string" },
},
CollectionType = "string",
Overrides = new[]
{
new Oci.LogAnalytics.Inputs.LogAnalyticsObjectCollectionRuleOverrideArgs
{
MatchType = "string",
MatchValue = "string",
PropertyName = "string",
PropertyValue = "string",
},
},
PollSince = "string",
PollTill = "string",
Timezone = "string",
});
example, err := LogAnalytics.NewLogAnalyticsObjectCollectionRule(ctx, "logAnalyticsObjectCollectionRuleResource", &LogAnalytics.LogAnalyticsObjectCollectionRuleArgs{
LogGroupId: pulumi.String("string"),
OsNamespace: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
OsBucketName: pulumi.String("string"),
Namespace: pulumi.String("string"),
LogSourceName: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
IsForceHistoricCollection: pulumi.Bool(false),
CharEncoding: pulumi.String("string"),
LogSet: pulumi.String("string"),
LogSetExtRegex: pulumi.String("string"),
LogSetKey: pulumi.String("string"),
EntityId: pulumi.String("string"),
LogType: pulumi.String("string"),
IsEnabled: pulumi.Bool(false),
Description: pulumi.String("string"),
ObjectNameFilters: pulumi.StringArray{
pulumi.String("string"),
},
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
CollectionType: pulumi.String("string"),
Overrides: loganalytics.LogAnalyticsObjectCollectionRuleOverrideArray{
&loganalytics.LogAnalyticsObjectCollectionRuleOverrideArgs{
MatchType: pulumi.String("string"),
MatchValue: pulumi.String("string"),
PropertyName: pulumi.String("string"),
PropertyValue: pulumi.String("string"),
},
},
PollSince: pulumi.String("string"),
PollTill: pulumi.String("string"),
Timezone: pulumi.String("string"),
})
var logAnalyticsObjectCollectionRuleResource = new LogAnalyticsObjectCollectionRule("logAnalyticsObjectCollectionRuleResource", LogAnalyticsObjectCollectionRuleArgs.builder()
.logGroupId("string")
.osNamespace("string")
.compartmentId("string")
.osBucketName("string")
.namespace("string")
.logSourceName("string")
.freeformTags(Map.of("string", "string"))
.name("string")
.isForceHistoricCollection(false)
.charEncoding("string")
.logSet("string")
.logSetExtRegex("string")
.logSetKey("string")
.entityId("string")
.logType("string")
.isEnabled(false)
.description("string")
.objectNameFilters("string")
.definedTags(Map.of("string", "string"))
.collectionType("string")
.overrides(LogAnalyticsObjectCollectionRuleOverrideArgs.builder()
.matchType("string")
.matchValue("string")
.propertyName("string")
.propertyValue("string")
.build())
.pollSince("string")
.pollTill("string")
.timezone("string")
.build());
log_analytics_object_collection_rule_resource = oci.log_analytics.LogAnalyticsObjectCollectionRule("logAnalyticsObjectCollectionRuleResource",
log_group_id="string",
os_namespace="string",
compartment_id="string",
os_bucket_name="string",
namespace="string",
log_source_name="string",
freeform_tags={
"string": "string",
},
name="string",
is_force_historic_collection=False,
char_encoding="string",
log_set="string",
log_set_ext_regex="string",
log_set_key="string",
entity_id="string",
log_type="string",
is_enabled=False,
description="string",
object_name_filters=["string"],
defined_tags={
"string": "string",
},
collection_type="string",
overrides=[{
"match_type": "string",
"match_value": "string",
"property_name": "string",
"property_value": "string",
}],
poll_since="string",
poll_till="string",
timezone="string")
const logAnalyticsObjectCollectionRuleResource = new oci.loganalytics.LogAnalyticsObjectCollectionRule("logAnalyticsObjectCollectionRuleResource", {
logGroupId: "string",
osNamespace: "string",
compartmentId: "string",
osBucketName: "string",
namespace: "string",
logSourceName: "string",
freeformTags: {
string: "string",
},
name: "string",
isForceHistoricCollection: false,
charEncoding: "string",
logSet: "string",
logSetExtRegex: "string",
logSetKey: "string",
entityId: "string",
logType: "string",
isEnabled: false,
description: "string",
objectNameFilters: ["string"],
definedTags: {
string: "string",
},
collectionType: "string",
overrides: [{
matchType: "string",
matchValue: "string",
propertyName: "string",
propertyValue: "string",
}],
pollSince: "string",
pollTill: "string",
timezone: "string",
});
type: oci:LogAnalytics:LogAnalyticsObjectCollectionRule
properties:
charEncoding: string
collectionType: string
compartmentId: string
definedTags:
string: string
description: string
entityId: string
freeformTags:
string: string
isEnabled: false
isForceHistoricCollection: false
logGroupId: string
logSet: string
logSetExtRegex: string
logSetKey: string
logSourceName: string
logType: string
name: string
namespace: string
objectNameFilters:
- string
osBucketName: string
osNamespace: string
overrides:
- matchType: string
matchValue: string
propertyName: string
propertyValue: string
pollSince: string
pollTill: string
timezone: string
LogAnalyticsObjectCollectionRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The LogAnalyticsObjectCollectionRule resource accepts the following input properties:
- Compartment
Id string - (Updatable) The OCID of the compartment to which this rule belongs.
- Log
Group stringId - (Updatable) Logging Analytics Log group OCID to associate the processed logs with.
- Log
Source stringName - (Updatable) Name of the Logging Analytics Source to use for the processing.
- Namespace string
- The Logging Analytics namespace used for the request.
- Os
Bucket stringName - Name of the Object Storage bucket.
- Os
Namespace string - Object Storage namespace.
- Char
Encoding string - (Updatable) An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs.
- Collection
Type string - The type of collection. Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
- Entity
Id string - (Updatable) Logging Analytics entity OCID. Associates the processed logs with the given entity (optional).
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Is
Enabled bool - (Updatable) Whether or not this rule is currently enabled.
- Is
Force boolHistoric Collection - Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule
- Log
Set string - (Updatable) The logSet to be associated with the processed logs. The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex.
- Log
Set stringExt Regex - (Updatable) The regex to be applied against given logSetKey. Regex has to be in string escaped format.
- Log
Set stringKey - (Updatable) An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex. Default value is OBJECT_PATH (e.g. /n//b//o/).
- Log
Type string - Type of files/objects in this object collection rule.
- Name string
- A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
- Object
Name List<string>Filters - (Updatable) When the filters are provided, only the objects matching the filters are picked up for processing. The matchType supported is exact match and accommodates wildcard "*". For more information on filters, see Event Filters.
- Overrides
List<Log
Analytics Object Collection Rule Override> - (Updatable) The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are "contains".
- Poll
Since string - The oldest time of the file in the bucket to consider for collection. Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
- Poll
Till string - The newest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error.
- Timezone string
(Updatable) Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Compartment
Id string - (Updatable) The OCID of the compartment to which this rule belongs.
- Log
Group stringId - (Updatable) Logging Analytics Log group OCID to associate the processed logs with.
- Log
Source stringName - (Updatable) Name of the Logging Analytics Source to use for the processing.
- Namespace string
- The Logging Analytics namespace used for the request.
- Os
Bucket stringName - Name of the Object Storage bucket.
- Os
Namespace string - Object Storage namespace.
- Char
Encoding string - (Updatable) An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs.
- Collection
Type string - The type of collection. Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
- Entity
Id string - (Updatable) Logging Analytics entity OCID. Associates the processed logs with the given entity (optional).
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Is
Enabled bool - (Updatable) Whether or not this rule is currently enabled.
- Is
Force boolHistoric Collection - Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule
- Log
Set string - (Updatable) The logSet to be associated with the processed logs. The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex.
- Log
Set stringExt Regex - (Updatable) The regex to be applied against given logSetKey. Regex has to be in string escaped format.
- Log
Set stringKey - (Updatable) An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex. Default value is OBJECT_PATH (e.g. /n//b//o/).
- Log
Type string - Type of files/objects in this object collection rule.
- Name string
- A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
- Object
Name []stringFilters - (Updatable) When the filters are provided, only the objects matching the filters are picked up for processing. The matchType supported is exact match and accommodates wildcard "*". For more information on filters, see Event Filters.
- Overrides
[]Log
Analytics Object Collection Rule Override Args - (Updatable) The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are "contains".
- Poll
Since string - The oldest time of the file in the bucket to consider for collection. Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
- Poll
Till string - The newest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error.
- Timezone string
(Updatable) Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String - (Updatable) The OCID of the compartment to which this rule belongs.
- log
Group StringId - (Updatable) Logging Analytics Log group OCID to associate the processed logs with.
- log
Source StringName - (Updatable) Name of the Logging Analytics Source to use for the processing.
- namespace String
- The Logging Analytics namespace used for the request.
- os
Bucket StringName - Name of the Object Storage bucket.
- os
Namespace String - Object Storage namespace.
- char
Encoding String - (Updatable) An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs.
- collection
Type String - The type of collection. Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
- entity
Id String - (Updatable) Logging Analytics entity OCID. Associates the processed logs with the given entity (optional).
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Enabled Boolean - (Updatable) Whether or not this rule is currently enabled.
- is
Force BooleanHistoric Collection - Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule
- log
Set String - (Updatable) The logSet to be associated with the processed logs. The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex.
- log
Set StringExt Regex - (Updatable) The regex to be applied against given logSetKey. Regex has to be in string escaped format.
- log
Set StringKey - (Updatable) An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex. Default value is OBJECT_PATH (e.g. /n//b//o/).
- log
Type String - Type of files/objects in this object collection rule.
- name String
- A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
- object
Name List<String>Filters - (Updatable) When the filters are provided, only the objects matching the filters are picked up for processing. The matchType supported is exact match and accommodates wildcard "*". For more information on filters, see Event Filters.
- overrides
List<Object
Collection Rule Override> - (Updatable) The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are "contains".
- poll
Since String - The oldest time of the file in the bucket to consider for collection. Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
- poll
Till String - The newest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error.
- timezone String
(Updatable) Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id string - (Updatable) The OCID of the compartment to which this rule belongs.
- log
Group stringId - (Updatable) Logging Analytics Log group OCID to associate the processed logs with.
- log
Source stringName - (Updatable) Name of the Logging Analytics Source to use for the processing.
- namespace string
- The Logging Analytics namespace used for the request.
- os
Bucket stringName - Name of the Object Storage bucket.
- os
Namespace string - Object Storage namespace.
- char
Encoding string - (Updatable) An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs.
- collection
Type string - The type of collection. Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
- entity
Id string - (Updatable) Logging Analytics entity OCID. Associates the processed logs with the given entity (optional).
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Enabled boolean - (Updatable) Whether or not this rule is currently enabled.
- is
Force booleanHistoric Collection - Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule
- log
Set string - (Updatable) The logSet to be associated with the processed logs. The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex.
- log
Set stringExt Regex - (Updatable) The regex to be applied against given logSetKey. Regex has to be in string escaped format.
- log
Set stringKey - (Updatable) An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex. Default value is OBJECT_PATH (e.g. /n//b//o/).
- log
Type string - Type of files/objects in this object collection rule.
- name string
- A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
- object
Name string[]Filters - (Updatable) When the filters are provided, only the objects matching the filters are picked up for processing. The matchType supported is exact match and accommodates wildcard "*". For more information on filters, see Event Filters.
- overrides
Log
Analytics Object Collection Rule Override[] - (Updatable) The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are "contains".
- poll
Since string - The oldest time of the file in the bucket to consider for collection. Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
- poll
Till string - The newest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error.
- timezone string
(Updatable) Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment_
id str - (Updatable) The OCID of the compartment to which this rule belongs.
- log_
group_ strid - (Updatable) Logging Analytics Log group OCID to associate the processed logs with.
- log_
source_ strname - (Updatable) Name of the Logging Analytics Source to use for the processing.
- namespace str
- The Logging Analytics namespace used for the request.
- os_
bucket_ strname - Name of the Object Storage bucket.
- os_
namespace str - Object Storage namespace.
- char_
encoding str - (Updatable) An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs.
- collection_
type str - The type of collection. Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
- entity_
id str - (Updatable) Logging Analytics entity OCID. Associates the processed logs with the given entity (optional).
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is_
enabled bool - (Updatable) Whether or not this rule is currently enabled.
- is_
force_ boolhistoric_ collection - Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule
- log_
set str - (Updatable) The logSet to be associated with the processed logs. The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex.
- log_
set_ strext_ regex - (Updatable) The regex to be applied against given logSetKey. Regex has to be in string escaped format.
- log_
set_ strkey - (Updatable) An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex. Default value is OBJECT_PATH (e.g. /n//b//o/).
- log_
type str - Type of files/objects in this object collection rule.
- name str
- A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
- object_
name_ Sequence[str]filters - (Updatable) When the filters are provided, only the objects matching the filters are picked up for processing. The matchType supported is exact match and accommodates wildcard "*". For more information on filters, see Event Filters.
- overrides
Sequence[loganalytics.
Log Analytics Object Collection Rule Override Args] - (Updatable) The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are "contains".
- poll_
since str - The oldest time of the file in the bucket to consider for collection. Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
- poll_
till str - The newest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error.
- timezone str
(Updatable) Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- compartment
Id String - (Updatable) The OCID of the compartment to which this rule belongs.
- log
Group StringId - (Updatable) Logging Analytics Log group OCID to associate the processed logs with.
- log
Source StringName - (Updatable) Name of the Logging Analytics Source to use for the processing.
- namespace String
- The Logging Analytics namespace used for the request.
- os
Bucket StringName - Name of the Object Storage bucket.
- os
Namespace String - Object Storage namespace.
- char
Encoding String - (Updatable) An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs.
- collection
Type String - The type of collection. Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
- entity
Id String - (Updatable) Logging Analytics entity OCID. Associates the processed logs with the given entity (optional).
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Enabled Boolean - (Updatable) Whether or not this rule is currently enabled.
- is
Force BooleanHistoric Collection - Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule
- log
Set String - (Updatable) The logSet to be associated with the processed logs. The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex.
- log
Set StringExt Regex - (Updatable) The regex to be applied against given logSetKey. Regex has to be in string escaped format.
- log
Set StringKey - (Updatable) An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex. Default value is OBJECT_PATH (e.g. /n//b//o/).
- log
Type String - Type of files/objects in this object collection rule.
- name String
- A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
- object
Name List<String>Filters - (Updatable) When the filters are provided, only the objects matching the filters are picked up for processing. The matchType supported is exact match and accommodates wildcard "*". For more information on filters, see Event Filters.
- overrides List<Property Map>
- (Updatable) The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are "contains".
- poll
Since String - The oldest time of the file in the bucket to consider for collection. Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
- poll
Till String - The newest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error.
- timezone String
(Updatable) Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Outputs
All input properties are implicitly available as output properties. Additionally, the LogAnalyticsObjectCollectionRule resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - A detailed status of the life cycle state.
- State string
- The current state of the rule.
- Time
Created string - The time when this rule was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time when this rule was last updated. An RFC3339 formatted datetime string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - A detailed status of the life cycle state.
- State string
- The current state of the rule.
- Time
Created string - The time when this rule was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time when this rule was last updated. An RFC3339 formatted datetime string.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - A detailed status of the life cycle state.
- state String
- The current state of the rule.
- time
Created String - The time when this rule was created. An RFC3339 formatted datetime string.
- time
Updated String - The time when this rule was last updated. An RFC3339 formatted datetime string.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - A detailed status of the life cycle state.
- state string
- The current state of the rule.
- time
Created string - The time when this rule was created. An RFC3339 formatted datetime string.
- time
Updated string - The time when this rule was last updated. An RFC3339 formatted datetime string.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - A detailed status of the life cycle state.
- state str
- The current state of the rule.
- time_
created str - The time when this rule was created. An RFC3339 formatted datetime string.
- time_
updated str - The time when this rule was last updated. An RFC3339 formatted datetime string.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - A detailed status of the life cycle state.
- state String
- The current state of the rule.
- time
Created String - The time when this rule was created. An RFC3339 formatted datetime string.
- time
Updated String - The time when this rule was last updated. An RFC3339 formatted datetime string.
Look up Existing LogAnalyticsObjectCollectionRule Resource
Get an existing LogAnalyticsObjectCollectionRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LogAnalyticsObjectCollectionRuleState, opts?: CustomResourceOptions): LogAnalyticsObjectCollectionRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
char_encoding: Optional[str] = None,
collection_type: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
entity_id: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
is_enabled: Optional[bool] = None,
is_force_historic_collection: Optional[bool] = None,
lifecycle_details: Optional[str] = None,
log_group_id: Optional[str] = None,
log_set: Optional[str] = None,
log_set_ext_regex: Optional[str] = None,
log_set_key: Optional[str] = None,
log_source_name: Optional[str] = None,
log_type: Optional[str] = None,
name: Optional[str] = None,
namespace: Optional[str] = None,
object_name_filters: Optional[Sequence[str]] = None,
os_bucket_name: Optional[str] = None,
os_namespace: Optional[str] = None,
overrides: Optional[Sequence[_loganalytics.LogAnalyticsObjectCollectionRuleOverrideArgs]] = None,
poll_since: Optional[str] = None,
poll_till: Optional[str] = None,
state: Optional[str] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None,
timezone: Optional[str] = None) -> LogAnalyticsObjectCollectionRule
func GetLogAnalyticsObjectCollectionRule(ctx *Context, name string, id IDInput, state *LogAnalyticsObjectCollectionRuleState, opts ...ResourceOption) (*LogAnalyticsObjectCollectionRule, error)
public static LogAnalyticsObjectCollectionRule Get(string name, Input<string> id, LogAnalyticsObjectCollectionRuleState? state, CustomResourceOptions? opts = null)
public static LogAnalyticsObjectCollectionRule get(String name, Output<String> id, LogAnalyticsObjectCollectionRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Char
Encoding string - (Updatable) An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs.
- Collection
Type string - The type of collection. Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE
- Compartment
Id string - (Updatable) The OCID of the compartment to which this rule belongs.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
- Entity
Id string - (Updatable) Logging Analytics entity OCID. Associates the processed logs with the given entity (optional).
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Is
Enabled bool - (Updatable) Whether or not this rule is currently enabled.
- Is
Force boolHistoric Collection - Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule
- Lifecycle
Details string - A detailed status of the life cycle state.
- Log
Group stringId - (Updatable) Logging Analytics Log group OCID to associate the processed logs with.
- Log
Set string - (Updatable) The logSet to be associated with the processed logs. The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex.
- Log
Set stringExt Regex - (Updatable) The regex to be applied against given logSetKey. Regex has to be in string escaped format.
- Log
Set stringKey - (Updatable) An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex. Default value is OBJECT_PATH (e.g. /n//b//o/).
- Log
Source stringName - (Updatable) Name of the Logging Analytics Source to use for the processing.
- Log
Type string - Type of files/objects in this object collection rule.
- Name string
- A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
- Namespace string
- The Logging Analytics namespace used for the request.
- Object
Name List<string>Filters - (Updatable) When the filters are provided, only the objects matching the filters are picked up for processing. The matchType supported is exact match and accommodates wildcard "*". For more information on filters, see Event Filters.
- Os
Bucket stringName - Name of the Object Storage bucket.
- Os
Namespace string - Object Storage namespace.
- Overrides
List<Log
Analytics Object Collection Rule Override> - (Updatable) The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are "contains".
- Poll
Since string - The oldest time of the file in the bucket to consider for collection. Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
- Poll
Till string - The newest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error.
- State string
- The current state of the rule.
- Time
Created string - The time when this rule was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time when this rule was last updated. An RFC3339 formatted datetime string.
- Timezone string
(Updatable) Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Char
Encoding string - (Updatable) An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs.
- Collection
Type string - The type of collection. Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE
- Compartment
Id string - (Updatable) The OCID of the compartment to which this rule belongs.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
- Entity
Id string - (Updatable) Logging Analytics entity OCID. Associates the processed logs with the given entity (optional).
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Is
Enabled bool - (Updatable) Whether or not this rule is currently enabled.
- Is
Force boolHistoric Collection - Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule
- Lifecycle
Details string - A detailed status of the life cycle state.
- Log
Group stringId - (Updatable) Logging Analytics Log group OCID to associate the processed logs with.
- Log
Set string - (Updatable) The logSet to be associated with the processed logs. The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex.
- Log
Set stringExt Regex - (Updatable) The regex to be applied against given logSetKey. Regex has to be in string escaped format.
- Log
Set stringKey - (Updatable) An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex. Default value is OBJECT_PATH (e.g. /n//b//o/).
- Log
Source stringName - (Updatable) Name of the Logging Analytics Source to use for the processing.
- Log
Type string - Type of files/objects in this object collection rule.
- Name string
- A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
- Namespace string
- The Logging Analytics namespace used for the request.
- Object
Name []stringFilters - (Updatable) When the filters are provided, only the objects matching the filters are picked up for processing. The matchType supported is exact match and accommodates wildcard "*". For more information on filters, see Event Filters.
- Os
Bucket stringName - Name of the Object Storage bucket.
- Os
Namespace string - Object Storage namespace.
- Overrides
[]Log
Analytics Object Collection Rule Override Args - (Updatable) The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are "contains".
- Poll
Since string - The oldest time of the file in the bucket to consider for collection. Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
- Poll
Till string - The newest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error.
- State string
- The current state of the rule.
- Time
Created string - The time when this rule was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time when this rule was last updated. An RFC3339 formatted datetime string.
- Timezone string
(Updatable) Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- char
Encoding String - (Updatable) An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs.
- collection
Type String - The type of collection. Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE
- compartment
Id String - (Updatable) The OCID of the compartment to which this rule belongs.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
- entity
Id String - (Updatable) Logging Analytics entity OCID. Associates the processed logs with the given entity (optional).
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Enabled Boolean - (Updatable) Whether or not this rule is currently enabled.
- is
Force BooleanHistoric Collection - Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule
- lifecycle
Details String - A detailed status of the life cycle state.
- log
Group StringId - (Updatable) Logging Analytics Log group OCID to associate the processed logs with.
- log
Set String - (Updatable) The logSet to be associated with the processed logs. The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex.
- log
Set StringExt Regex - (Updatable) The regex to be applied against given logSetKey. Regex has to be in string escaped format.
- log
Set StringKey - (Updatable) An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex. Default value is OBJECT_PATH (e.g. /n//b//o/).
- log
Source StringName - (Updatable) Name of the Logging Analytics Source to use for the processing.
- log
Type String - Type of files/objects in this object collection rule.
- name String
- A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
- namespace String
- The Logging Analytics namespace used for the request.
- object
Name List<String>Filters - (Updatable) When the filters are provided, only the objects matching the filters are picked up for processing. The matchType supported is exact match and accommodates wildcard "*". For more information on filters, see Event Filters.
- os
Bucket StringName - Name of the Object Storage bucket.
- os
Namespace String - Object Storage namespace.
- overrides
List<Object
Collection Rule Override> - (Updatable) The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are "contains".
- poll
Since String - The oldest time of the file in the bucket to consider for collection. Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
- poll
Till String - The newest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error.
- state String
- The current state of the rule.
- time
Created String - The time when this rule was created. An RFC3339 formatted datetime string.
- time
Updated String - The time when this rule was last updated. An RFC3339 formatted datetime string.
- timezone String
(Updatable) Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- char
Encoding string - (Updatable) An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs.
- collection
Type string - The type of collection. Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE
- compartment
Id string - (Updatable) The OCID of the compartment to which this rule belongs.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
- entity
Id string - (Updatable) Logging Analytics entity OCID. Associates the processed logs with the given entity (optional).
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Enabled boolean - (Updatable) Whether or not this rule is currently enabled.
- is
Force booleanHistoric Collection - Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule
- lifecycle
Details string - A detailed status of the life cycle state.
- log
Group stringId - (Updatable) Logging Analytics Log group OCID to associate the processed logs with.
- log
Set string - (Updatable) The logSet to be associated with the processed logs. The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex.
- log
Set stringExt Regex - (Updatable) The regex to be applied against given logSetKey. Regex has to be in string escaped format.
- log
Set stringKey - (Updatable) An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex. Default value is OBJECT_PATH (e.g. /n//b//o/).
- log
Source stringName - (Updatable) Name of the Logging Analytics Source to use for the processing.
- log
Type string - Type of files/objects in this object collection rule.
- name string
- A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
- namespace string
- The Logging Analytics namespace used for the request.
- object
Name string[]Filters - (Updatable) When the filters are provided, only the objects matching the filters are picked up for processing. The matchType supported is exact match and accommodates wildcard "*". For more information on filters, see Event Filters.
- os
Bucket stringName - Name of the Object Storage bucket.
- os
Namespace string - Object Storage namespace.
- overrides
Log
Analytics Object Collection Rule Override[] - (Updatable) The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are "contains".
- poll
Since string - The oldest time of the file in the bucket to consider for collection. Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
- poll
Till string - The newest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error.
- state string
- The current state of the rule.
- time
Created string - The time when this rule was created. An RFC3339 formatted datetime string.
- time
Updated string - The time when this rule was last updated. An RFC3339 formatted datetime string.
- timezone string
(Updatable) Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- char_
encoding str - (Updatable) An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs.
- collection_
type str - The type of collection. Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE
- compartment_
id str - (Updatable) The OCID of the compartment to which this rule belongs.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
- entity_
id str - (Updatable) Logging Analytics entity OCID. Associates the processed logs with the given entity (optional).
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is_
enabled bool - (Updatable) Whether or not this rule is currently enabled.
- is_
force_ boolhistoric_ collection - Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule
- lifecycle_
details str - A detailed status of the life cycle state.
- log_
group_ strid - (Updatable) Logging Analytics Log group OCID to associate the processed logs with.
- log_
set str - (Updatable) The logSet to be associated with the processed logs. The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex.
- log_
set_ strext_ regex - (Updatable) The regex to be applied against given logSetKey. Regex has to be in string escaped format.
- log_
set_ strkey - (Updatable) An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex. Default value is OBJECT_PATH (e.g. /n//b//o/).
- log_
source_ strname - (Updatable) Name of the Logging Analytics Source to use for the processing.
- log_
type str - Type of files/objects in this object collection rule.
- name str
- A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
- namespace str
- The Logging Analytics namespace used for the request.
- object_
name_ Sequence[str]filters - (Updatable) When the filters are provided, only the objects matching the filters are picked up for processing. The matchType supported is exact match and accommodates wildcard "*". For more information on filters, see Event Filters.
- os_
bucket_ strname - Name of the Object Storage bucket.
- os_
namespace str - Object Storage namespace.
- overrides
Sequence[loganalytics.
Log Analytics Object Collection Rule Override Args] - (Updatable) The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are "contains".
- poll_
since str - The oldest time of the file in the bucket to consider for collection. Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
- poll_
till str - The newest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error.
- state str
- The current state of the rule.
- time_
created str - The time when this rule was created. An RFC3339 formatted datetime string.
- time_
updated str - The time when this rule was last updated. An RFC3339 formatted datetime string.
- timezone str
(Updatable) Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- char
Encoding String - (Updatable) An optional character encoding to aid in detecting the character encoding of the contents of the objects while processing. It is recommended to set this value as ISO_8589_1 when configuring content of the objects having more numeric characters, and very few alphabets. For e.g. this applies when configuring VCN Flow Logs.
- collection
Type String - The type of collection. Supported collection types: LIVE, HISTORIC, HISTORIC_LIVE
- compartment
Id String - (Updatable) The OCID of the compartment to which this rule belongs.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A string that describes the details of the rule. It does not have to be unique, and can be changed. Avoid entering confidential information.
- entity
Id String - (Updatable) Logging Analytics entity OCID. Associates the processed logs with the given entity (optional).
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- is
Enabled Boolean - (Updatable) Whether or not this rule is currently enabled.
- is
Force BooleanHistoric Collection - Flag to allow historic collection if poll period overlaps with existing ACTIVE collection rule
- lifecycle
Details String - A detailed status of the life cycle state.
- log
Group StringId - (Updatable) Logging Analytics Log group OCID to associate the processed logs with.
- log
Set String - (Updatable) The logSet to be associated with the processed logs. The logSet feature can be used by customers with high volume of data and this feature has to be enabled for a given tenancy prior to its usage. When logSetExtRegex value is provided, it will take precedence over this logSet value and logSet will be computed dynamically using logSetKey and logSetExtRegex.
- log
Set StringExt Regex - (Updatable) The regex to be applied against given logSetKey. Regex has to be in string escaped format.
- log
Set StringKey - (Updatable) An optional parameter to indicate from where the logSet to be extracted using logSetExtRegex. Default value is OBJECT_PATH (e.g. /n//b//o/).
- log
Source StringName - (Updatable) Name of the Logging Analytics Source to use for the processing.
- log
Type String - Type of files/objects in this object collection rule.
- name String
- A unique name given to the rule. The name must be unique within the tenancy, and cannot be modified.
- namespace String
- The Logging Analytics namespace used for the request.
- object
Name List<String>Filters - (Updatable) When the filters are provided, only the objects matching the filters are picked up for processing. The matchType supported is exact match and accommodates wildcard "*". For more information on filters, see Event Filters.
- os
Bucket StringName - Name of the Object Storage bucket.
- os
Namespace String - Object Storage namespace.
- overrides List<Property Map>
- (Updatable) The override is used to modify some important configuration properties for objects matching a specific pattern inside the bucket. Supported propeties for override are: logSourceName, charEncoding, entityId. Supported matchType for override are "contains".
- poll
Since String - The oldest time of the file in the bucket to consider for collection. Accepted values are: BEGINNING or CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC or HISTORIC_LIVE collection types. When collectionType is LIVE, specifying pollSince value other than CURRENT_TIME will result in error.
- poll
Till String - The newest time of the file in the bucket to consider for collection. Accepted values are: CURRENT_TIME or RFC3339 formatted datetime string. Use this for HISTORIC collection type. When collectionType is LIVE or HISTORIC_LIVE, specifying pollTill will result in error.
- state String
- The current state of the rule.
- time
Created String - The time when this rule was created. An RFC3339 formatted datetime string.
- time
Updated String - The time when this rule was last updated. An RFC3339 formatted datetime string.
- timezone String
(Updatable) Timezone to be used when processing log entries whose timestamps do not include an explicit timezone. When this property is not specified, the timezone of the entity specified is used. If the entity is also not specified or do not have a valid timezone then UTC is used.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Supporting Types
LogAnalyticsObjectCollectionRuleOverride, LogAnalyticsObjectCollectionRuleOverrideArgs
- Match
Type string - Match
Value string - Property
Name string - Property
Value string
- Match
Type string - Match
Value string - Property
Name string - Property
Value string
- match
Type String - match
Value String - property
Name String - property
Value String
- match
Type string - match
Value string - property
Name string - property
Value string
- match_
type str - match_
value str - property_
name str - property_
value str
- match
Type String - match
Value String - property
Name String - property
Value String
Import
LogAnalyticsObjectCollectionRules can be imported using the id
, e.g.
$ pulumi import oci:LogAnalytics/logAnalyticsObjectCollectionRule:LogAnalyticsObjectCollectionRule test_log_analytics_object_collection_rule "namespaces/{namespaceName}/logAnalyticsObjectCollectionRules/{logAnalyticsObjectCollectionRuleId}"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.