Mengambil informasi konfigurasi pipeline Logtail.
Deskripsi operasi
Wilayah UK (London) didukung. Wilayah yang didukung terus diperbarui.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:GetLogtailPipelineConfig |
get |
*All Resource
|
|
None |
Sintaks permintaan
GET /pipelineconfigs/{configName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| configName |
string |
Yes |
Nama konfigurasi pipeline Logtail. |
test-config |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
Nama proyek. |
test-project |
Elemen respons
|
Element |
Type |
Description |
Example |
| LogtailPipelineConfig |
Konfigurasi pipeline Logtail. |
Contoh
Respons sukses
JSONformat
{
"configName": "test-config",
"logSample": "127.0.0.1 - - [10/Jun/2022:12:36:49 +0800] \"GET /index.html HTTP/1.1\" 200",
"global": {
"TopicType": "custom",
"TopicFormat": "aaa",
"EnableAlwaysOnline": true,
"EnableTimestampNanosecond": true,
"UsingOldContentTag": true
},
"inputs": [
{
"Type": "input_file",
"FilePaths": [
"/home/**/*.log"
],
"MaxDirSearchDepth": 10,
"Multiline": {
"StartPattern": "\\d+"
},
"TailSizeKB": 1024
}
],
"processors": [
{
"Type": "processor_regex",
"SourceKey": "content",
"Regex": "(\\d+).*([^;])",
"Keys": [
"k1",
"k2"
]
}
],
"aggregators": [
{
"Type": "aggregator_shardhash",
"SourceKeys": [
"__source__"
]
}
],
"flushers": [
{
"Type": "flusher_sls",
"Logstore": "test_logstore",
"Endpoint": "cn-hangzhou-intranet.aliyuncs.com",
"Region": "cn-hangzhou",
"FlowControlExpireTime": 2,
"MaxSendRate": 3,
"EnableShardHash": true,
"TelemetryType": "log"
}
],
"createTime": 1655176807,
"lastModifyTime": 1655176807,
"task": {
"Type": "task_example"
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.