檢視亞馬遜OpenSearch擷取管道 - Amazon OpenSearch 服務

本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。

檢視亞馬遜OpenSearch擷取管道

您可以使用AWS Management Console、或OpenSearch擷取 API 檢視有關 Amazon 擷取管道的AWS CLI詳細資料。OpenSearch

檢視管道
  1. 登入 Amazon Ser OpenSearch vice 主控台,網址為 https://console.aws.amazon.com/aos/home

  2. 在左側導覽窗格中選擇「管道」。

  3. (選擇性) 若要檢視具有特定狀態的配管,請選擇「任何狀態」(Any status) 並選取要篩選依據的狀態。

    配管可能為下列狀態:

    • Creating— 正在建立配管。

    • Active— 管線處於作用中狀態並準備擷取資料。

    • Updating— 正在更新管線。

    • Deleting正在刪除配管。

    • Create failed— 無法建立配管。

    • Update failed— 無法更新管線。

    • Starting— 管道正在啟動。

    • Start failed— 管道無法啟動。

    • Stopping— 正在停止管線。

    • Stopped— 管道已停止,且可以隨時重新啟動。

當管道位於Create failedCreatingStopped狀態時,您不會針對擷取 OCU 付費。Deleting

若要使用檢視管線AWS CLI,請傳送清單管線要求:

aws osis list-pipelines

該請求返回所有現有管道的列表:

{ "NextToken": null, "Pipelines": [ {, "CreatedAt": 1.671055851E9, "LastUpdatedAt": 1.671055851E9, "MaxUnits": 4, "MinUnits": 2, "PipelineArn": "arn:aws:osis:us-west-2:123456789012:pipeline/log-pipeline", "PipelineName": "log-pipeline", "Status": "ACTIVE", "StatusReason": { "Description": "The pipeline is ready to ingest data." } }, "CreatedAt": 1.671055851E9, "LastUpdatedAt": 1.671055851E9, "MaxUnits": 2, "MinUnits": 8, "PipelineArn": "arn:aws:osis:us-west-2:123456789012:pipeline/another-pipeline", "PipelineName": "another-pipeline", "Status": "CREATING", "StatusReason": { "Description": "The pipeline is being created. It is not able to ingest data." } } ] }

若要取得單一管線的相關資訊,請使用 get-pipeline 指令:

aws osis get-pipeline --pipeline-name "my-pipeline"

要求會傳回指定管線的組態資訊:

{ "Pipeline": { "PipelineName": "my-pipeline", "PipelineArn": "arn:aws:osis:us-east-1:123456789012:pipeline/my-pipeline", "MinUnits": 9, "MaxUnits": 10, "Status": "ACTIVE", "StatusReason": { "Description": "The pipeline is ready to ingest data." }, "PipelineConfigurationBody": "log-pipeline:\n source:\n http:\n processor:\n - grok:\n match:\nlog: [ '%{COMMONAPACHELOG}' ]\n - date:\n from_time_received: true\n destination: \"@timestamp\"\n sink:\n - opensearch:\n hosts: [ \"https://search-mdp-performance-test-duxkb4qnycd63rpy6svmvyvfpi.us-east-1.es.amazonaws.com\" ]\n index: \"apache_logs\"\n aws_sts_role_arn: \"arn:aws:iam::123456789012:role/my-domain-role\"\n aws_region: \"us-east-1\"\n aws_sigv4: true",, "CreatedAt": "2022-10-01T15:28:05+00:00", "LastUpdatedAt": "2022-10-21T21:41:08+00:00", "IngestEndpointUrls": [ "my-pipeline-123456789012.us-east-1.osis.amazonaws.com" ] } }

若要使用OpenSearch擷取 API 檢視OpenSearch擷取管道,請呼叫ListPipelinesGetPipeline作業。