Belirtilen bir Logstore içindeki dizinleri sorgular.
İstek sözdizimi
aliyunlog log get_index_config --project_name=<value> --logstore_name=<value> [--access-id=<value>] [--access-key=<value>] [--sts-token=<value>] [--region-endpoint=<value>] [--client-name=<value>] [--jmes-filter=<value>] [--format-output=<value>] [--decode-output=<value>]
İstek parametreleri
Aşağıdaki tabloda get_index_config komutunun gerekli ve özel parametreleri açıklanmaktadır.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Log Service komut satırı arabiriminin (CLI) genel parametreleri hakkında bilgi için bkz. Genel parametreler.
Örnekler
-
Örnek istekler
Varsayılan hesabı kullanarak logstore-a adlı bir Logstore'un dizinlerini alın.
aliyunlog log get_index_config --project_name="aliyun-test-project" --logstore_name="logstore-a"Dizinleri belirtilen bir dosyaya kaydetmek için aşağıdaki komutu çalıştırın:
aliyunlog log get_index_config --project_name="aliyun-test-project" --logstore_name="logstore-a" >>export_index_config.json -
Örnek yanıtlar
{ "index_mode": "v2", "keys": { "key1": { "caseSensitive": false, "doc_value": true, "token": [ ",", " ", "'", "\"", ";", "=", "(", ")", "[", "]", "{", "}", "?", "@", "&", "<", ">", "/", ":", "\n", "\t" ], "type": "text" }, "key2": { "caseSensitive": false, "doc_value": true, "token": [ ",", " ", "'", "\"", ";", "=", "(", ")", "[", "]", "{", "}", "?", "@", "&", "<", ">", "/", ":", "\n", "\t" ], "type": "text" }, "key3": { "caseSensitive": false, "doc_value": true, "token": [ ",", " ", "'", "\"", ";", "=", "(", ")", "[", "]", "{", "}", "?", "@", "&", "<", ">", "/", ":", "\n", "\t" ], "type": "text" }, "key4": { "caseSensitive": false, "doc_value": true, "token": [ ",", " ", "'", "\"", ";", "=", "(", ")", "[", "]", "{", "}", "?", "@", "&", "<", ">", "/", ":", "\n", "\t" ], "type": "text" } }, "lastModifyTime": 0, "line": { "caseSensitive": false, "chn": false, "token": [ ",", " ", "'", "\"", ";", "=", "(", ")", "[", "]", "{", "}", "?", "@", "&", "<", ">", "/", ":", "\n", "\t" ] }, "storage": "pg", "ttl": 30 }
Hata kodları
Bir hata mesajı döndürülürse ilgili API işleminin hata kodlarına göre hatayı giderin. Daha fazla bilgi için bkz. Hata kodları.