Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine
volcengine.tls.Rules
Explore with Pulumi AI
Use this data source to query detailed information of tls rules
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Tls.Rules.Invoke(new()
{
ProjectId = "cc44f8b6-0328-4622-b043-023fca735cd4",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/tls"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tls.Rules(ctx, &tls.RulesArgs{
ProjectId: "cc44f8b6-0328-4622-b043-023fca735cd4",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.tls.TlsFunctions;
import com.pulumi.volcengine.tls.inputs.RulesArgs;
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) {
final var default = TlsFunctions.Rules(RulesArgs.builder()
.projectId("cc44f8b6-0328-4622-b043-023fca735cd4")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.tls.rules(project_id="cc44f8b6-0328-4622-b043-023fca735cd4")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.tls.Rules({
projectId: "cc44f8b6-0328-4622-b043-023fca735cd4",
});
variables:
default:
fn::invoke:
Function: volcengine:tls:Rules
Arguments:
projectId: cc44f8b6-0328-4622-b043-023fca735cd4
Using Rules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function rules(args: RulesArgs, opts?: InvokeOptions): Promise<RulesResult>
function rulesOutput(args: RulesOutputArgs, opts?: InvokeOptions): Output<RulesResult>
def rules(output_file: Optional[str] = None,
project_id: Optional[str] = None,
rule_id: Optional[str] = None,
rule_name: Optional[str] = None,
topic_id: Optional[str] = None,
topic_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> RulesResult
def rules_output(output_file: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
rule_id: Optional[pulumi.Input[str]] = None,
rule_name: Optional[pulumi.Input[str]] = None,
topic_id: Optional[pulumi.Input[str]] = None,
topic_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[RulesResult]
func Rules(ctx *Context, args *RulesArgs, opts ...InvokeOption) (*RulesResult, error)
func RulesOutput(ctx *Context, args *RulesOutputArgs, opts ...InvokeOption) RulesResultOutput
public static class Rules
{
public static Task<RulesResult> InvokeAsync(RulesArgs args, InvokeOptions? opts = null)
public static Output<RulesResult> Invoke(RulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<RulesResult> rules(RulesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:tls:Rules
arguments:
# arguments dictionary
The following arguments are supported:
- project_
id str - The project id.
- output_
file str - File name where to save data source results.
- rule_
id str - The rule id.
- rule_
name str - The rule name.
- topic_
id str - The topic id.
- topic_
name str - The topic name.
Rules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Rules
List<Rules
Rule> - The rules list.
- Total
Count int - The total count of query.
- Output
File string - Rule
Id string - The rule id.
- Rule
Name string - The rule name.
- Topic
Id string - The topic id.
- Topic
Name string - The topic name.
- Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Rules
[]Rules
Rule - The rules list.
- Total
Count int - The total count of query.
- Output
File string - Rule
Id string - The rule id.
- Rule
Name string - The rule name.
- Topic
Id string - The topic id.
- Topic
Name string - The topic name.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - rules
List<Rules
Rule> - The rules list.
- total
Count Integer - The total count of query.
- output
File String - rule
Id String - The rule id.
- rule
Name String - The rule name.
- topic
Id String - The topic id.
- topic
Name String - The topic name.
- id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - rules
Rules
Rule[] - The rules list.
- total
Count number - The total count of query.
- output
File string - rule
Id string - The rule id.
- rule
Name string - The rule name.
- topic
Id string - The topic id.
- topic
Name string - The topic name.
- id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - rules
Sequence[Rules
Rule] - The rules list.
- total_
count int - The total count of query.
- output_
file str - rule_
id str - The rule id.
- rule_
name str - The rule name.
- topic_
id str - The topic id.
- topic_
name str - The topic name.
- id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - rules List<Property Map>
- The rules list.
- total
Count Number - The total count of query.
- output
File String - rule
Id String - The rule id.
- rule
Name String - The rule name.
- topic
Id String - The topic id.
- topic
Name String - The topic name.
Supporting Types
RulesRule
- Container
Rules List<RulesRule Container Rule> - Container collection rules.
- Create
Time string - The creation time.
- Exclude
Paths List<RulesRule Exclude Path> - Collect the blacklist list.
- Extract
Rules List<RulesRule Extract Rule> - The extract rule.
- Input
Type int - The collection type.
- Log
Sample string - Log sample.
- Log
Type string - The log type.
- Modify
Time string - The modification time.
- Paths List<string>
- Collection path list.
- Rule
Id string - The rule id.
- Rule
Name string - The rule name.
- Topic
Id string - The topic id.
- Topic
Name string - The topic name.
- User
Define List<RulesRules Rule User Define Rule> - User-defined collection rules.
- Container
Rules []RulesRule Container Rule - Container collection rules.
- Create
Time string - The creation time.
- Exclude
Paths []RulesRule Exclude Path - Collect the blacklist list.
- Extract
Rules []RulesRule Extract Rule - The extract rule.
- Input
Type int - The collection type.
- Log
Sample string - Log sample.
- Log
Type string - The log type.
- Modify
Time string - The modification time.
- Paths []string
- Collection path list.
- Rule
Id string - The rule id.
- Rule
Name string - The rule name.
- Topic
Id string - The topic id.
- Topic
Name string - The topic name.
- User
Define []RulesRules Rule User Define Rule - User-defined collection rules.
- container
Rules List<RulesRule Container Rule> - Container collection rules.
- create
Time String - The creation time.
- exclude
Paths List<RulesRule Exclude Path> - Collect the blacklist list.
- extract
Rules List<RulesRule Extract Rule> - The extract rule.
- input
Type Integer - The collection type.
- log
Sample String - Log sample.
- log
Type String - The log type.
- modify
Time String - The modification time.
- paths List<String>
- Collection path list.
- rule
Id String - The rule id.
- rule
Name String - The rule name.
- topic
Id String - The topic id.
- topic
Name String - The topic name.
- user
Define List<RulesRules Rule User Define Rule> - User-defined collection rules.
- container
Rules RulesRule Container Rule[] - Container collection rules.
- create
Time string - The creation time.
- exclude
Paths RulesRule Exclude Path[] - Collect the blacklist list.
- extract
Rules RulesRule Extract Rule[] - The extract rule.
- input
Type number - The collection type.
- log
Sample string - Log sample.
- log
Type string - The log type.
- modify
Time string - The modification time.
- paths string[]
- Collection path list.
- rule
Id string - The rule id.
- rule
Name string - The rule name.
- topic
Id string - The topic id.
- topic
Name string - The topic name.
- user
Define RulesRules Rule User Define Rule[] - User-defined collection rules.
- container_
rules Sequence[RulesRule Container Rule] - Container collection rules.
- create_
time str - The creation time.
- exclude_
paths Sequence[RulesRule Exclude Path] - Collect the blacklist list.
- extract_
rules Sequence[RulesRule Extract Rule] - The extract rule.
- input_
type int - The collection type.
- log_
sample str - Log sample.
- log_
type str - The log type.
- modify_
time str - The modification time.
- paths Sequence[str]
- Collection path list.
- rule_
id str - The rule id.
- rule_
name str - The rule name.
- topic_
id str - The topic id.
- topic_
name str - The topic name.
- user_
define_ Sequence[Rulesrules Rule User Define Rule] - User-defined collection rules.
- container
Rules List<Property Map> - Container collection rules.
- create
Time String - The creation time.
- exclude
Paths List<Property Map> - Collect the blacklist list.
- extract
Rules List<Property Map> - The extract rule.
- input
Type Number - The collection type.
- log
Sample String - Log sample.
- log
Type String - The log type.
- modify
Time String - The modification time.
- paths List<String>
- Collection path list.
- rule
Id String - The rule id.
- rule
Name String - The rule name.
- topic
Id String - The topic id.
- topic
Name String - The topic name.
- user
Define List<Property Map>Rules - User-defined collection rules.
RulesRuleContainerRule
- Container
Name stringRegex - The name of the container to be collected.
- Env
Tag Dictionary<string, object> - Whether to add environment variables as log tags to raw log data.
- Exclude
Container Dictionary<string, object>Env Regex - The container environment variable blacklist is used to specify the range of containers not to be collected.
- Exclude
Container Dictionary<string, object>Label Regex - The container Label blacklist is used to specify the range of containers not to be collected.
- Include
Container Dictionary<string, object>Env Regex - The container environment variable whitelist specifies the container to be collected through the container environment variable. If the whitelist is not enabled, it means that all containers are specified to be collected.
- Include
Container Dictionary<string, object>Label Regex - The container label whitelist specifies the containers to be collected through the container label. If the whitelist is not enabled, all containers are specified to be collected.
- Kubernetes
Rules List<RulesRule Container Rule Kubernetes Rule> - Collection rules for Kubernetes containers.
- Stream string
- The collection mode.
- Container
Name stringRegex - The name of the container to be collected.
- Env
Tag map[string]interface{} - Whether to add environment variables as log tags to raw log data.
- Exclude
Container map[string]interface{}Env Regex - The container environment variable blacklist is used to specify the range of containers not to be collected.
- Exclude
Container map[string]interface{}Label Regex - The container Label blacklist is used to specify the range of containers not to be collected.
- Include
Container map[string]interface{}Env Regex - The container environment variable whitelist specifies the container to be collected through the container environment variable. If the whitelist is not enabled, it means that all containers are specified to be collected.
- Include
Container map[string]interface{}Label Regex - The container label whitelist specifies the containers to be collected through the container label. If the whitelist is not enabled, all containers are specified to be collected.
- Kubernetes
Rules []RulesRule Container Rule Kubernetes Rule - Collection rules for Kubernetes containers.
- Stream string
- The collection mode.
- container
Name StringRegex - The name of the container to be collected.
- env
Tag Map<String,Object> - Whether to add environment variables as log tags to raw log data.
- exclude
Container Map<String,Object>Env Regex - The container environment variable blacklist is used to specify the range of containers not to be collected.
- exclude
Container Map<String,Object>Label Regex - The container Label blacklist is used to specify the range of containers not to be collected.
- include
Container Map<String,Object>Env Regex - The container environment variable whitelist specifies the container to be collected through the container environment variable. If the whitelist is not enabled, it means that all containers are specified to be collected.
- include
Container Map<String,Object>Label Regex - The container label whitelist specifies the containers to be collected through the container label. If the whitelist is not enabled, all containers are specified to be collected.
- kubernetes
Rules List<RulesRule Container Rule Kubernetes Rule> - Collection rules for Kubernetes containers.
- stream String
- The collection mode.
- container
Name stringRegex - The name of the container to be collected.
- env
Tag {[key: string]: any} - Whether to add environment variables as log tags to raw log data.
- exclude
Container {[key: string]: any}Env Regex - The container environment variable blacklist is used to specify the range of containers not to be collected.
- exclude
Container {[key: string]: any}Label Regex - The container Label blacklist is used to specify the range of containers not to be collected.
- include
Container {[key: string]: any}Env Regex - The container environment variable whitelist specifies the container to be collected through the container environment variable. If the whitelist is not enabled, it means that all containers are specified to be collected.
- include
Container {[key: string]: any}Label Regex - The container label whitelist specifies the containers to be collected through the container label. If the whitelist is not enabled, all containers are specified to be collected.
- kubernetes
Rules RulesRule Container Rule Kubernetes Rule[] - Collection rules for Kubernetes containers.
- stream string
- The collection mode.
- container_
name_ strregex - The name of the container to be collected.
- env_
tag Mapping[str, Any] - Whether to add environment variables as log tags to raw log data.
- exclude_
container_ Mapping[str, Any]env_ regex - The container environment variable blacklist is used to specify the range of containers not to be collected.
- exclude_
container_ Mapping[str, Any]label_ regex - The container Label blacklist is used to specify the range of containers not to be collected.
- include_
container_ Mapping[str, Any]env_ regex - The container environment variable whitelist specifies the container to be collected through the container environment variable. If the whitelist is not enabled, it means that all containers are specified to be collected.
- include_
container_ Mapping[str, Any]label_ regex - The container label whitelist specifies the containers to be collected through the container label. If the whitelist is not enabled, all containers are specified to be collected.
- kubernetes_
rules Sequence[RulesRule Container Rule Kubernetes Rule] - Collection rules for Kubernetes containers.
- stream str
- The collection mode.
- container
Name StringRegex - The name of the container to be collected.
- env
Tag Map<Any> - Whether to add environment variables as log tags to raw log data.
- exclude
Container Map<Any>Env Regex - The container environment variable blacklist is used to specify the range of containers not to be collected.
- exclude
Container Map<Any>Label Regex - The container Label blacklist is used to specify the range of containers not to be collected.
- include
Container Map<Any>Env Regex - The container environment variable whitelist specifies the container to be collected through the container environment variable. If the whitelist is not enabled, it means that all containers are specified to be collected.
- include
Container Map<Any>Label Regex - The container label whitelist specifies the containers to be collected through the container label. If the whitelist is not enabled, all containers are specified to be collected.
- kubernetes
Rules List<Property Map> - Collection rules for Kubernetes containers.
- stream String
- The collection mode.
RulesRuleContainerRuleKubernetesRule
- Annotation
Tag Dictionary<string, object> - Whether to add Kubernetes Annotation as a log tag to the raw log data.
- Exclude
Pod Dictionary<string, object>Label Regex - Specify the containers not to be collected through the Pod Label blacklist, and not enable means to collect all containers.
- Include
Pod Dictionary<string, object>Label Regex - The Pod Label whitelist is used to specify containers to be collected. When the Pod Label whitelist is not enabled, it means that all containers are collected.
- Label
Tag Dictionary<string, object> - Whether to add Kubernetes Label as a log label to the original log data.
- Namespace
Name stringRegex - The name of the Kubernetes Namespace to be collected. If no Namespace name is specified, all containers will be collected. Namespace names support regular matching.
- Pod
Name stringRegex - The Pod name is used to specify the container to be collected. When no Pod name is specified, it means to collect all containers.
- Workload
Name stringRegex - Specify the container to be collected by the name of the workload. When no workload name is specified, all containers are collected. The workload name supports regular matching.
- Workload
Type string - Specify the container to be collected by the type of workload. Only one type can be selected. When no type is specified, it means to collect all types of containers.
- Annotation
Tag map[string]interface{} - Whether to add Kubernetes Annotation as a log tag to the raw log data.
- Exclude
Pod map[string]interface{}Label Regex - Specify the containers not to be collected through the Pod Label blacklist, and not enable means to collect all containers.
- Include
Pod map[string]interface{}Label Regex - The Pod Label whitelist is used to specify containers to be collected. When the Pod Label whitelist is not enabled, it means that all containers are collected.
- Label
Tag map[string]interface{} - Whether to add Kubernetes Label as a log label to the original log data.
- Namespace
Name stringRegex - The name of the Kubernetes Namespace to be collected. If no Namespace name is specified, all containers will be collected. Namespace names support regular matching.
- Pod
Name stringRegex - The Pod name is used to specify the container to be collected. When no Pod name is specified, it means to collect all containers.
- Workload
Name stringRegex - Specify the container to be collected by the name of the workload. When no workload name is specified, all containers are collected. The workload name supports regular matching.
- Workload
Type string - Specify the container to be collected by the type of workload. Only one type can be selected. When no type is specified, it means to collect all types of containers.
- annotation
Tag Map<String,Object> - Whether to add Kubernetes Annotation as a log tag to the raw log data.
- exclude
Pod Map<String,Object>Label Regex - Specify the containers not to be collected through the Pod Label blacklist, and not enable means to collect all containers.
- include
Pod Map<String,Object>Label Regex - The Pod Label whitelist is used to specify containers to be collected. When the Pod Label whitelist is not enabled, it means that all containers are collected.
- label
Tag Map<String,Object> - Whether to add Kubernetes Label as a log label to the original log data.
- namespace
Name StringRegex - The name of the Kubernetes Namespace to be collected. If no Namespace name is specified, all containers will be collected. Namespace names support regular matching.
- pod
Name StringRegex - The Pod name is used to specify the container to be collected. When no Pod name is specified, it means to collect all containers.
- workload
Name StringRegex - Specify the container to be collected by the name of the workload. When no workload name is specified, all containers are collected. The workload name supports regular matching.
- workload
Type String - Specify the container to be collected by the type of workload. Only one type can be selected. When no type is specified, it means to collect all types of containers.
- annotation
Tag {[key: string]: any} - Whether to add Kubernetes Annotation as a log tag to the raw log data.
- exclude
Pod {[key: string]: any}Label Regex - Specify the containers not to be collected through the Pod Label blacklist, and not enable means to collect all containers.
- include
Pod {[key: string]: any}Label Regex - The Pod Label whitelist is used to specify containers to be collected. When the Pod Label whitelist is not enabled, it means that all containers are collected.
- label
Tag {[key: string]: any} - Whether to add Kubernetes Label as a log label to the original log data.
- namespace
Name stringRegex - The name of the Kubernetes Namespace to be collected. If no Namespace name is specified, all containers will be collected. Namespace names support regular matching.
- pod
Name stringRegex - The Pod name is used to specify the container to be collected. When no Pod name is specified, it means to collect all containers.
- workload
Name stringRegex - Specify the container to be collected by the name of the workload. When no workload name is specified, all containers are collected. The workload name supports regular matching.
- workload
Type string - Specify the container to be collected by the type of workload. Only one type can be selected. When no type is specified, it means to collect all types of containers.
- annotation_
tag Mapping[str, Any] - Whether to add Kubernetes Annotation as a log tag to the raw log data.
- exclude_
pod_ Mapping[str, Any]label_ regex - Specify the containers not to be collected through the Pod Label blacklist, and not enable means to collect all containers.
- include_
pod_ Mapping[str, Any]label_ regex - The Pod Label whitelist is used to specify containers to be collected. When the Pod Label whitelist is not enabled, it means that all containers are collected.
- label_
tag Mapping[str, Any] - Whether to add Kubernetes Label as a log label to the original log data.
- namespace_
name_ strregex - The name of the Kubernetes Namespace to be collected. If no Namespace name is specified, all containers will be collected. Namespace names support regular matching.
- pod_
name_ strregex - The Pod name is used to specify the container to be collected. When no Pod name is specified, it means to collect all containers.
- workload_
name_ strregex - Specify the container to be collected by the name of the workload. When no workload name is specified, all containers are collected. The workload name supports regular matching.
- workload_
type str - Specify the container to be collected by the type of workload. Only one type can be selected. When no type is specified, it means to collect all types of containers.
- annotation
Tag Map<Any> - Whether to add Kubernetes Annotation as a log tag to the raw log data.
- exclude
Pod Map<Any>Label Regex - Specify the containers not to be collected through the Pod Label blacklist, and not enable means to collect all containers.
- include
Pod Map<Any>Label Regex - The Pod Label whitelist is used to specify containers to be collected. When the Pod Label whitelist is not enabled, it means that all containers are collected.
- label
Tag Map<Any> - Whether to add Kubernetes Label as a log label to the original log data.
- namespace
Name StringRegex - The name of the Kubernetes Namespace to be collected. If no Namespace name is specified, all containers will be collected. Namespace names support regular matching.
- pod
Name StringRegex - The Pod name is used to specify the container to be collected. When no Pod name is specified, it means to collect all containers.
- workload
Name StringRegex - Specify the container to be collected by the name of the workload. When no workload name is specified, all containers are collected. The workload name supports regular matching.
- workload
Type String - Specify the container to be collected by the type of workload. Only one type can be selected. When no type is specified, it means to collect all types of containers.
RulesRuleExcludePath
RulesRuleExtractRule
- Begin
Regex string - The first log line needs to match the regular expression.
- Delimiter string
- The delimiter of the log.
- Filter
Key List<RulesRegexes Rule Extract Rule Filter Key Regex> - The filter key list.
- Keys List<string>
- A list of field names. Log Service will parse the path sample (PathSample) into multiple fields according to the regular expression (Regex), and Keys is used to specify the field name of each field.
- Log
Regex string - The entire log needs to match the regular expression.
- Log
Templates List<RulesRule Extract Rule Log Template> - Automatically extract log fields according to the specified log template.
- Time
Format string - Parsing format of the time field.
- Time
Key string - The field name of the log time field.
- Un
Match stringLog Key - When uploading the failed log, the key name of the failed log.
- Un
Match boolUp Load Switch - Whether to upload the log of parsing failure.
- Begin
Regex string - The first log line needs to match the regular expression.
- Delimiter string
- The delimiter of the log.
- Filter
Key []RulesRegexes Rule Extract Rule Filter Key Regex - The filter key list.
- Keys []string
- A list of field names. Log Service will parse the path sample (PathSample) into multiple fields according to the regular expression (Regex), and Keys is used to specify the field name of each field.
- Log
Regex string - The entire log needs to match the regular expression.
- Log
Templates []RulesRule Extract Rule Log Template - Automatically extract log fields according to the specified log template.
- Time
Format string - Parsing format of the time field.
- Time
Key string - The field name of the log time field.
- Un
Match stringLog Key - When uploading the failed log, the key name of the failed log.
- Un
Match boolUp Load Switch - Whether to upload the log of parsing failure.
- begin
Regex String - The first log line needs to match the regular expression.
- delimiter String
- The delimiter of the log.
- filter
Key List<RulesRegexes Rule Extract Rule Filter Key Regex> - The filter key list.
- keys List<String>
- A list of field names. Log Service will parse the path sample (PathSample) into multiple fields according to the regular expression (Regex), and Keys is used to specify the field name of each field.
- log
Regex String - The entire log needs to match the regular expression.
- log
Templates List<RulesRule Extract Rule Log Template> - Automatically extract log fields according to the specified log template.
- time
Format String - Parsing format of the time field.
- time
Key String - The field name of the log time field.
- un
Match StringLog Key - When uploading the failed log, the key name of the failed log.
- un
Match BooleanUp Load Switch - Whether to upload the log of parsing failure.
- begin
Regex string - The first log line needs to match the regular expression.
- delimiter string
- The delimiter of the log.
- filter
Key RulesRegexes Rule Extract Rule Filter Key Regex[] - The filter key list.
- keys string[]
- A list of field names. Log Service will parse the path sample (PathSample) into multiple fields according to the regular expression (Regex), and Keys is used to specify the field name of each field.
- log
Regex string - The entire log needs to match the regular expression.
- log
Templates RulesRule Extract Rule Log Template[] - Automatically extract log fields according to the specified log template.
- time
Format string - Parsing format of the time field.
- time
Key string - The field name of the log time field.
- un
Match stringLog Key - When uploading the failed log, the key name of the failed log.
- un
Match booleanUp Load Switch - Whether to upload the log of parsing failure.
- begin_
regex str - The first log line needs to match the regular expression.
- delimiter str
- The delimiter of the log.
- filter_
key_ Sequence[Rulesregexes Rule Extract Rule Filter Key Regex] - The filter key list.
- keys Sequence[str]
- A list of field names. Log Service will parse the path sample (PathSample) into multiple fields according to the regular expression (Regex), and Keys is used to specify the field name of each field.
- log_
regex str - The entire log needs to match the regular expression.
- log_
templates Sequence[RulesRule Extract Rule Log Template] - Automatically extract log fields according to the specified log template.
- time_
format str - Parsing format of the time field.
- time_
key str - The field name of the log time field.
- un_
match_ strlog_ key - When uploading the failed log, the key name of the failed log.
- un_
match_ boolup_ load_ switch - Whether to upload the log of parsing failure.
- begin
Regex String - The first log line needs to match the regular expression.
- delimiter String
- The delimiter of the log.
- filter
Key List<Property Map>Regexes - The filter key list.
- keys List<String>
- A list of field names. Log Service will parse the path sample (PathSample) into multiple fields according to the regular expression (Regex), and Keys is used to specify the field name of each field.
- log
Regex String - The entire log needs to match the regular expression.
- log
Templates List<Property Map> - Automatically extract log fields according to the specified log template.
- time
Format String - Parsing format of the time field.
- time
Key String - The field name of the log time field.
- un
Match StringLog Key - When uploading the failed log, the key name of the failed log.
- un
Match BooleanUp Load Switch - Whether to upload the log of parsing failure.
RulesRuleExtractRuleFilterKeyRegex
RulesRuleExtractRuleLogTemplate
RulesRuleUserDefineRule
- Advanceds
List<Rules
Rule User Define Rule Advanced> - LogCollector extension configuration.
- Enable
Raw boolLog - Whether to upload raw logs.
- Fields Dictionary<string, object>
- Add constant fields to logs.
- Parse
Path List<RulesRules Rule User Define Rule Parse Path Rule> - Rules for parsing collection paths. After the rules are set, the fields in the collection path will be extracted through the regular expressions specified in the rules, and added to the log data as metadata.
- Plugins
List<Rules
Rule User Define Rule Plugin> - Plugin configuration. After the plugin configuration is enabled, one or more LogCollector processor plugins can be added to parse logs with complex or variable structures.
- List<Rules
Rule User Define Rule Shard Hash Key> - Rules for routing log partitions. Setting this parameter indicates that the HashKey routing shard mode is used when collecting logs, and Log Service will write the data to the shard containing the specified Key value.
- Tail
Files bool - LogCollector collection strategy, which specifies whether LogCollector collects incremental logs or full logs. The default is false, which means to collect all logs.
- Advanceds
[]Rules
Rule User Define Rule Advanced - LogCollector extension configuration.
- Enable
Raw boolLog - Whether to upload raw logs.
- Fields map[string]interface{}
- Add constant fields to logs.
- Parse
Path []RulesRules Rule User Define Rule Parse Path Rule - Rules for parsing collection paths. After the rules are set, the fields in the collection path will be extracted through the regular expressions specified in the rules, and added to the log data as metadata.
- Plugins
[]Rules
Rule User Define Rule Plugin - Plugin configuration. After the plugin configuration is enabled, one or more LogCollector processor plugins can be added to parse logs with complex or variable structures.
- []Rules
Rule User Define Rule Shard Hash Key - Rules for routing log partitions. Setting this parameter indicates that the HashKey routing shard mode is used when collecting logs, and Log Service will write the data to the shard containing the specified Key value.
- Tail
Files bool - LogCollector collection strategy, which specifies whether LogCollector collects incremental logs or full logs. The default is false, which means to collect all logs.
- advanceds
List<Rules
Rule User Define Rule Advanced> - LogCollector extension configuration.
- enable
Raw BooleanLog - Whether to upload raw logs.
- fields Map<String,Object>
- Add constant fields to logs.
- parse
Path List<RulesRules Rule User Define Rule Parse Path Rule> - Rules for parsing collection paths. After the rules are set, the fields in the collection path will be extracted through the regular expressions specified in the rules, and added to the log data as metadata.
- plugins
List<Rules
Rule User Define Rule Plugin> - Plugin configuration. After the plugin configuration is enabled, one or more LogCollector processor plugins can be added to parse logs with complex or variable structures.
- List<Rules
Rule User Define Rule Shard Hash Key> - Rules for routing log partitions. Setting this parameter indicates that the HashKey routing shard mode is used when collecting logs, and Log Service will write the data to the shard containing the specified Key value.
- tail
Files Boolean - LogCollector collection strategy, which specifies whether LogCollector collects incremental logs or full logs. The default is false, which means to collect all logs.
- advanceds
Rules
Rule User Define Rule Advanced[] - LogCollector extension configuration.
- enable
Raw booleanLog - Whether to upload raw logs.
- fields {[key: string]: any}
- Add constant fields to logs.
- parse
Path RulesRules Rule User Define Rule Parse Path Rule[] - Rules for parsing collection paths. After the rules are set, the fields in the collection path will be extracted through the regular expressions specified in the rules, and added to the log data as metadata.
- plugins
Rules
Rule User Define Rule Plugin[] - Plugin configuration. After the plugin configuration is enabled, one or more LogCollector processor plugins can be added to parse logs with complex or variable structures.
- Rules
Rule User Define Rule Shard Hash Key[] - Rules for routing log partitions. Setting this parameter indicates that the HashKey routing shard mode is used when collecting logs, and Log Service will write the data to the shard containing the specified Key value.
- tail
Files boolean - LogCollector collection strategy, which specifies whether LogCollector collects incremental logs or full logs. The default is false, which means to collect all logs.
- advanceds
Sequence[Rules
Rule User Define Rule Advanced] - LogCollector extension configuration.
- enable_
raw_ boollog - Whether to upload raw logs.
- fields Mapping[str, Any]
- Add constant fields to logs.
- parse_
path_ Sequence[Rulesrules Rule User Define Rule Parse Path Rule] - Rules for parsing collection paths. After the rules are set, the fields in the collection path will be extracted through the regular expressions specified in the rules, and added to the log data as metadata.
- plugins
Sequence[Rules
Rule User Define Rule Plugin] - Plugin configuration. After the plugin configuration is enabled, one or more LogCollector processor plugins can be added to parse logs with complex or variable structures.
- Sequence[Rules
Rule User Define Rule Shard Hash Key] - Rules for routing log partitions. Setting this parameter indicates that the HashKey routing shard mode is used when collecting logs, and Log Service will write the data to the shard containing the specified Key value.
- tail_
files bool - LogCollector collection strategy, which specifies whether LogCollector collects incremental logs or full logs. The default is false, which means to collect all logs.
- advanceds List<Property Map>
- LogCollector extension configuration.
- enable
Raw BooleanLog - Whether to upload raw logs.
- fields Map<Any>
- Add constant fields to logs.
- parse
Path List<Property Map>Rules - Rules for parsing collection paths. After the rules are set, the fields in the collection path will be extracted through the regular expressions specified in the rules, and added to the log data as metadata.
- plugins List<Property Map>
- Plugin configuration. After the plugin configuration is enabled, one or more LogCollector processor plugins can be added to parse logs with complex or variable structures.
- List<Property Map>
- Rules for routing log partitions. Setting this parameter indicates that the HashKey routing shard mode is used when collecting logs, and Log Service will write the data to the shard containing the specified Key value.
- tail
Files Boolean - LogCollector collection strategy, which specifies whether LogCollector collects incremental logs or full logs. The default is false, which means to collect all logs.
RulesRuleUserDefineRuleAdvanced
- Close
Eof bool - Whether to release the log file handle after reading to the end of the log file. The default is false.
- Close
Inactive int - The wait time to release the log file handle. When the log file has not written a new log for more than the specified time, release the handle of the log file.
- Close
Removed bool - After the log file is removed, whether to release the handle of the log file. The default is false.
- Close
Renamed bool - After the log file is renamed, whether to release the handle of the log file. The default is false.
- Close
Timeout int - The maximum length of time that LogCollector monitors log files. The unit is seconds, and the default is 0 seconds, which means that there is no limit to the length of time LogCollector monitors log files.
- Close
Eof bool - Whether to release the log file handle after reading to the end of the log file. The default is false.
- Close
Inactive int - The wait time to release the log file handle. When the log file has not written a new log for more than the specified time, release the handle of the log file.
- Close
Removed bool - After the log file is removed, whether to release the handle of the log file. The default is false.
- Close
Renamed bool - After the log file is renamed, whether to release the handle of the log file. The default is false.
- Close
Timeout int - The maximum length of time that LogCollector monitors log files. The unit is seconds, and the default is 0 seconds, which means that there is no limit to the length of time LogCollector monitors log files.
- close
Eof Boolean - Whether to release the log file handle after reading to the end of the log file. The default is false.
- close
Inactive Integer - The wait time to release the log file handle. When the log file has not written a new log for more than the specified time, release the handle of the log file.
- close
Removed Boolean - After the log file is removed, whether to release the handle of the log file. The default is false.
- close
Renamed Boolean - After the log file is renamed, whether to release the handle of the log file. The default is false.
- close
Timeout Integer - The maximum length of time that LogCollector monitors log files. The unit is seconds, and the default is 0 seconds, which means that there is no limit to the length of time LogCollector monitors log files.
- close
Eof boolean - Whether to release the log file handle after reading to the end of the log file. The default is false.
- close
Inactive number - The wait time to release the log file handle. When the log file has not written a new log for more than the specified time, release the handle of the log file.
- close
Removed boolean - After the log file is removed, whether to release the handle of the log file. The default is false.
- close
Renamed boolean - After the log file is renamed, whether to release the handle of the log file. The default is false.
- close
Timeout number - The maximum length of time that LogCollector monitors log files. The unit is seconds, and the default is 0 seconds, which means that there is no limit to the length of time LogCollector monitors log files.
- close_
eof bool - Whether to release the log file handle after reading to the end of the log file. The default is false.
- close_
inactive int - The wait time to release the log file handle. When the log file has not written a new log for more than the specified time, release the handle of the log file.
- close_
removed bool - After the log file is removed, whether to release the handle of the log file. The default is false.
- close_
renamed bool - After the log file is renamed, whether to release the handle of the log file. The default is false.
- close_
timeout int - The maximum length of time that LogCollector monitors log files. The unit is seconds, and the default is 0 seconds, which means that there is no limit to the length of time LogCollector monitors log files.
- close
Eof Boolean - Whether to release the log file handle after reading to the end of the log file. The default is false.
- close
Inactive Number - The wait time to release the log file handle. When the log file has not written a new log for more than the specified time, release the handle of the log file.
- close
Removed Boolean - After the log file is removed, whether to release the handle of the log file. The default is false.
- close
Renamed Boolean - After the log file is renamed, whether to release the handle of the log file. The default is false.
- close
Timeout Number - The maximum length of time that LogCollector monitors log files. The unit is seconds, and the default is 0 seconds, which means that there is no limit to the length of time LogCollector monitors log files.
RulesRuleUserDefineRuleParsePathRule
- Keys List<string>
- A list of field names. Log Service will parse the path sample (PathSample) into multiple fields according to the regular expression (Regex), and Keys is used to specify the field name of each field.
- Path
Sample string - Sample capture path for a real scene.
- Regex string
- Regular expression for extracting path fields. It must match the collection path sample, otherwise it cannot be extracted successfully.
- Keys []string
- A list of field names. Log Service will parse the path sample (PathSample) into multiple fields according to the regular expression (Regex), and Keys is used to specify the field name of each field.
- Path
Sample string - Sample capture path for a real scene.
- Regex string
- Regular expression for extracting path fields. It must match the collection path sample, otherwise it cannot be extracted successfully.
- keys List<String>
- A list of field names. Log Service will parse the path sample (PathSample) into multiple fields according to the regular expression (Regex), and Keys is used to specify the field name of each field.
- path
Sample String - Sample capture path for a real scene.
- regex String
- Regular expression for extracting path fields. It must match the collection path sample, otherwise it cannot be extracted successfully.
- keys string[]
- A list of field names. Log Service will parse the path sample (PathSample) into multiple fields according to the regular expression (Regex), and Keys is used to specify the field name of each field.
- path
Sample string - Sample capture path for a real scene.
- regex string
- Regular expression for extracting path fields. It must match the collection path sample, otherwise it cannot be extracted successfully.
- keys Sequence[str]
- A list of field names. Log Service will parse the path sample (PathSample) into multiple fields according to the regular expression (Regex), and Keys is used to specify the field name of each field.
- path_
sample str - Sample capture path for a real scene.
- regex str
- Regular expression for extracting path fields. It must match the collection path sample, otherwise it cannot be extracted successfully.
- keys List<String>
- A list of field names. Log Service will parse the path sample (PathSample) into multiple fields according to the regular expression (Regex), and Keys is used to specify the field name of each field.
- path
Sample String - Sample capture path for a real scene.
- regex String
- Regular expression for extracting path fields. It must match the collection path sample, otherwise it cannot be extracted successfully.
RulesRuleUserDefineRulePlugin
- Processors List<string>
- LogCollector plugin.
- Processors []string
- LogCollector plugin.
- processors List<String>
- LogCollector plugin.
- processors string[]
- LogCollector plugin.
- processors Sequence[str]
- LogCollector plugin.
- processors List<String>
- LogCollector plugin.
RulesRuleUserDefineRuleShardHashKey
- Hash
Key string - The HashKey of the log group is used to specify the partition (shard) to be written to by the current log group.
- Hash
Key string - The HashKey of the log group is used to specify the partition (shard) to be written to by the current log group.
- hash
Key String - The HashKey of the log group is used to specify the partition (shard) to be written to by the current log group.
- hash
Key string - The HashKey of the log group is used to specify the partition (shard) to be written to by the current log group.
- hash_
key str - The HashKey of the log group is used to specify the partition (shard) to be written to by the current log group.
- hash
Key String - The HashKey of the log group is used to specify the partition (shard) to be written to by the current log group.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.