UiPath Documentation
automation-suite
2022.4
false
Automation Suite インストール ガイド
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。 新しいコンテンツの翻訳は、およそ 1 ~ 2 週間で公開されます。

ロボット ログを Elasticsearch に保存する

ロボット ログを Elasticsearch サーバーに保存する場合、基本構成と高度な構成の 2 種類の構成を使用できます。

基本構成では既定の機能が提供され、事前設定済みの Elasticsearch NLog ターゲットがアクティブ化されます。ターゲットは、バッファリング ターゲットにラップされた Elasticsearch ターゲットで構成されます。ほとんどのシナリオでは、この種類の構成で十分です。

ただし、ルールをさらにカスタマイズする必要がある場合は、高度な構成による方法を使用できます。

注:

ロボット ログを Elasticsearch サーバーに保存するオプションは、オプションを構成した後にのみ有効となり、過去にさかのぼっては適用されません。つまり、オプションの構成時にデータベースにすでに存在していたログにはアクセスできなくなります。ログを取得および表示できるのは 1 つの保存先のみからであるためです。

基本構成​

  1. Locate the uipath application in the ArgoCD interface.

  2. 左上隅の [APP DETAILS] ボタンをクリックしてから、[PARAMETERS] タブに移動します。

  3. [EDIT] をクリックし、次のパラメーターを右側の列で指定した値に変更したうえで、例を独自の値に置き換えます。

    パラメーター値 (Value)
    global.userInputs.orchestratorRobotLogsElasticUri例: https://elastic.example.com:9200

    末尾にスラッシュを入れないようにしてください。
    global.userInputs.orchestratorRobotLogsElasticAuthUsername例: elastic-user
    global.userInputs.orchestratorRobotLogsElasticAuthPassword例: elastic-password
  4. 変更を保存します。

  5. uipath アプリケーションを同期し、healthy ステートの応答を見ながら、プロセスが完了するまで待機します。

You can also configure robot logs to be saved to an Elasticsearch server by editing the cluster_config.json file.

基本構成でサポートされるのは Elasticsearch バージョン 7.x です。Elasticsearch 8.x の場合は、高度な構成を使用する必要があります。

高度な設定​

重要:

次の手順に従って変更を加えると、システム全体の機能と安定性に悪影響を及ぼす可能性があります。変更を加えるのは、変更の影響を理解している場合だけにすることをお勧めします。

高度な構成では、NLog.config ターゲットを完全にカスタマイズできます。

  1. Follow the basic configuration steps described above.
  2. ConfigMap の orchestrator-customconfig で nlog.json のパラメーターを編集します。
    1. 次のサンプルに基づいて、/tmp/nlog.custom.json ファイルを作成します。
    2. Use ./orchestrator_configurator.sh -l /tmp/nlog.custom.json to update ConfigMap in the Orchestrator Configurator Tool.

高度な構成では Elasticsearch バージョン 8.x もサポートされます。

Elasticsearch 7.x のサンプル:

{
  "Nlog": {
    "targets": {
      "robotElasticBuffer": {
        "flushTimeout": 1000,
        "bufferSize": 1000,
        "slidingTimeout": false,
        "target": {
          "uri": "https://elastic.example.com:9200",
          "requireAuth": true,
          "username": "elastic-user",
          "password": "elastic-password",
          "index": "${event-properties:item=indexName}-${date:format=yyyy.MM}",
          "documentType": "logEvent",
          "includeAllProperties": true,
          "layout": "${message}",
          "excludedProperties": "agentSessionId,tenantId,indexName"
        }
      }
    }
  }
}
{
  "Nlog": {
    "targets": {
      "robotElasticBuffer": {
        "flushTimeout": 1000,
        "bufferSize": 1000,
        "slidingTimeout": false,
        "target": {
          "uri": "https://elastic.example.com:9200",
          "requireAuth": true,
          "username": "elastic-user",
          "password": "elastic-password",
          "index": "${event-properties:item=indexName}-${date:format=yyyy.MM}",
          "documentType": "logEvent",
          "includeAllProperties": true,
          "layout": "${message}",
          "excludedProperties": "agentSessionId,tenantId,indexName"
        }
      }
    }
  }
}

Elasticsearch 8.x のサンプル:

{
  "Nlog": {
    "targets": {
      "robotElasticBuffer": {
        "flushTimeout": 1000,
        "bufferSize": 1000,
        "slidingTimeout": false,
        "target": {
          "uri": "https://elastic.example.com:9200",
          "requireAuth": true,
          "username": "elastic-user",
          "password": "elastic-password",
          "index": "${event-properties:item=indexName}-${date:format=yyyy.MM}",
          "documentType": "",
          "includeAllProperties": true,
          "layout": "${message}",
          "excludedProperties": "agentSessionId,tenantId,indexName"
        }
      }
    }
  }
}
{
  "Nlog": {
    "targets": {
      "robotElasticBuffer": {
        "flushTimeout": 1000,
        "bufferSize": 1000,
        "slidingTimeout": false,
        "target": {
          "uri": "https://elastic.example.com:9200",
          "requireAuth": true,
          "username": "elastic-user",
          "password": "elastic-password",
          "index": "${event-properties:item=indexName}-${date:format=yyyy.MM}",
          "documentType": "",
          "includeAllProperties": true,
          "layout": "${message}",
          "excludedProperties": "agentSessionId,tenantId,indexName"
        }
      }
    }
  }
}
  • 基本構成​
  • 高度な設定​

このページは役に立ちましたか?

接続

ヘルプ リソース サポート(opens in new window)

学習する UiPath アカデミー(opens in new window)

質問する UiPath フォーラム(opens in new window)

最新情報を取得