|
Parameter |
Type |
Description |
Example |
|---|---|---|---|
|
object |
OSSExportConfiguration |
||
| fromTime |
integer |
The start time of the time range. If the value is set to 1, the shipping starts from the first entry of data in the Logstore. |
1718380800 |
| logstore |
string |
The name of the Logstore. |
my-logstore |
| roleArn |
string |
The ARN of the RAM role used to read Simple Log Service data. Specify the ARN of your RAM role. |
acs:ram::1234567890:role/aliyunlogdefaultrole |
| sink |
object |
The configuration for shipping data to OSS. |
|
| bucket |
string |
OSS Bucket |
my-bucket |
| bufferInterval |
integer |
The shipping interval. Valid values: 300 to 900. Unit: seconds. |
300 |
| bufferSize |
integer |
The size of the shipped object. Valid values: 5 to 256. Unit: MB. |
256 |
| compressionType |
string |
The compression type. Four compression types are supported: snappy, gzip, zstd, and none. |
snappy |
| contentDetail |
object |
The content details of the OSS object. Note: The value of this parameter is in JSON format and must be updated based on the value of the contentType parameter. |
|
|
any |
When the value of contentType is JSON, the detailed parameters of contentDetail are as follows:
When the value of contentType is csv, the detailed parameters of contentDetail are as follows:
When the value of contentType is parquet, the detailed parameters of contentDetail are as follows:
When the value of contentType is orc, the detailed parameters of contentDetail are as follows:
|
{ "columns": [ "your log key1", "your log key2", "your log key3", ], "delimiter": " ", "header": true, "lineFeed": "\n", "null": "-", "quote": "\"" }, |
|
| contentType |
string |
The storage format of the OSS object. Four formats are supported: json, parquet, csv, and orc. |
csv |
| delaySec |
integer |
The delayed shipping time. Note
|
123 |
| delaySeconds |
integer |
The delayed shipping time. The specified time cannot exceed the data retention period of the destination Logstore. |
900 |
| enableDynamicPartition |
boolean |
Specifies whether to enable dynamic partitioning. This parameter takes effect only for OSS data shipping. |
service=${service}/%Y/%m/%d/%H/%M |
| endpoint |
string |
|
https://oss-cn-hangzhou-internal.aliyuncs.com |
| errorOutputPrefix |
string |
The directory for failed data. This parameter takes effect only for OSS data shipping. |
error/{errorType}/ |
| pathFormat |
string |
The partition format. For more information, see Partition format. |
%Y/%m/%d/%H/%M |
| pathFormatType |
string |
The type of the partition format. |
time |
| prefix |
string |
The prefix of the OSS object. |
prefix-demo/ |
| roleArn |
string |
The ARN of the RAM role used to write data to OSS. Specify the ARN of your RAM role. |
acs:ram::1234567890:role/aliyunlogdefaultrole |
| suffix |
string |
The suffix of the OSS object. |
.json |
| timeZone |
string |
The time zone. For more information, see Time zone list. |
+0800 |
| sourceSecureTransport |
boolean |
Specifies whether to use secure transport. |
true |
| toTime |
integer |
The end time of the time range. If the value is set to 0, the task runs continuously until it is manually stopped. |
1718380800 |