You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "syslog protocol, tcp or udp. The value can be tcp or udp. It is effective only when LogType is service_syslog. Other types do not need to be filled in.",
134
134
},
135
135
"address": {
136
136
Type: schema.TypeString,
137
137
Optional: true,
138
-
Description: "syslog system log collection specifies the address and port that the collector listens to.",
138
+
Description: "syslog system log collection specifies the address and port that the collector listens to. This parameter is only valid when LogType is service_syslog. It does not need to be filled in for other types.",
139
139
},
140
140
"parse_protocol": {
141
141
Type: schema.TypeString,
142
142
Optional: true,
143
-
Description: "parse protocol.",
143
+
Description: "parse protocol. This parameter is only valid when LogType is service_syslog. It does not need to be filled in for other types.",
144
144
},
145
145
"metadata_type": {
146
146
Type: schema.TypeInt,
147
147
Optional: true,
148
-
Description: "metadata type.",
148
+
Description: "metadata type. 0: Do not use metadata information; 1: Use machine group metadata; 2: Use user-defined metadata; 3: Use collection configuration path. Note: COS import does not support this field.",
*`log_type` - (Optional, String) Type of the log to be collected. Valid values: json_log: log in JSON format; delimiter_log: log in delimited format; minimalist_log: minimalist log; multiline_log: log in multi-line format; fullregex_log: log in full regex format. Default value: minimalist_log.
55
55
*`output` - (Optional, String) Log topic ID (TopicId) of collection configuration.
56
-
*`path` - (Optional, String) Log collection path containing the filename.
57
-
*`user_define_rule` - (Optional, String) Custom collection rule, which is a serialized JSON string.
56
+
*`path` - (Optional, String) Log collection path containing the filename. Required for document collection.
57
+
*`user_define_rule` - (Optional, String) Custom collection rule, which is a serialized JSON string. Required when LogType is user_define_log.
58
58
59
59
The `exclude_paths` object supports the following:
60
60
@@ -63,23 +63,23 @@ The `exclude_paths` object supports the following:
63
63
64
64
The `extract_rule` object supports the following:
65
65
66
-
*`address` - (Optional, String) syslog system log collection specifies the address and port that the collector listens to.
66
+
*`address` - (Optional, String) syslog system log collection specifies the address and port that the collector listens to. This parameter is only valid when LogType is service_syslog. It does not need to be filled in for other types.
67
67
*`backtracking` - (Optional, Int) Size of the data to be rewound in incremental collection mode. Default value: -1 (full collection).
68
68
*`begin_regex` - (Optional, String) First-Line matching rule, which is valid only if log_type is multiline_log or fullregex_log.
69
69
*`delimiter` - (Optional, String) Delimiter for delimited log, which is valid only if log_type is delimiter_log.
70
70
*`filter_key_regex` - (Optional, List) Log keys to be filtered and the corresponding regex.
*`is_gbk` - (Optional, Int) GBK encoding. Default 0. Note: - Currently, when the value is 0, it means UTF-8 encoding.
72
72
*`json_standard` - (Optional, Int) standard json. Default 0.
73
73
*`keys` - (Optional, Set) Key name of each extracted field. An empty key indicates to discard the field. This parameter is valid only if log_type is delimiter_log. json_log logs use the key of JSON itself.
74
74
*`log_regex` - (Optional, String) Full log matching rule, which is valid only if log_type is fullregex_log.
*`meta_tags` - (Optional, List) metadata tags. Note: - Required when MetadataType is 2. - COS import does not support this field.
76
+
*`metadata_type` - (Optional, Int) metadata type. 0: Do not use metadata information; 1: Use machine group metadata; 2: Use user-defined metadata; 3: Use collection configuration path. Note: COS import does not support this field.
77
+
*`parse_protocol` - (Optional, String) parse protocol. This parameter is only valid when LogType is service_syslog. It does not need to be filled in for other types.
*`protocol` - (Optional, String) syslog protocol, tcp or udp.
79
+
*`protocol` - (Optional, String) syslog protocol, tcp or udp. The value can be tcp or udp. It is effective only when LogType is service_syslog. Other types do not need to be filled in.
80
80
*`time_format` - (Optional, String) Time field format. For more information, please see the output parameters of the time format description of the strftime function in C language.
81
81
*`time_key` - (Optional, String) Time field key name. time_key and time_format must appear in pair.
0 commit comments