# ログ記録

{% hint style="info" %}
これらの設定は Certificate Master ではなく、SCEPman App Service にのみ適用してください。こちらを参照してください [SCEPman Settings](/ja/scepman-gou-cheng/application-settings.md).

バージョン 2.4 以降に適用されます
{% endhint %}

## AppConfig:LoggingConfig:DataCollectionEndpointUri

*Linux: AppConfig\_\_LoggingConfig\_\_*&#x44;ataCollectionEndpointUri

{% hint style="info" %}
DCE を使用したログ記録は、バージョン 3.0 以降で可能です
{% endhint %}

**値:** Uri

**説明:**

データ収集エンドポイント Uri は、SCEPman がログを送信する宛先です。これは、標準デプロイメントで自動的に作成される Data Collection Rule の既定の DCE を利用します。

## AppConfig:LoggingConfig:RuleId

*Linux: AppConfig\_\_LoggingConfig\_\_*&#x52;uleId

{% hint style="info" %}
DCE を使用したログ記録は、バージョン 3.0 以降で可能です
{% endhint %}

**値:** String

**説明:**

これは、SCEPman で使用される Data Collection Rule の一意の識別子です。

## AppConfig:LoggingConfig:WorkspaceId

*Linux: AppConfig\_\_LoggingConfig\_\_WorkspaceId*

**値:** GUID

**説明:**

Log Analytics Workspace の WorkspaceID です（ワークスペースの概要に表示されます）。Azure Monitor を SharedKey とともに使用したい場合、これは必須の設定です。

## AppConfig:LoggingConfig:SharedKey

*Linux: AppConfig\_\_LoggingConfig\_\_SharedKey*

**値:** String

**説明:**

Log Analytics Workspace の 2 つのキーのいずれかを使用します。SCEPman Log Analytics Workspace にアクセスして Settings/Agents に移動すると表示され、そこで「Log Analytics agent instructions」セクションを展開できます。Primary キーまたは Secondary キーのどちらかを使用してください。

Azure Monitor を WorkspaceId とともに使用する場合、これは必須の設定です。

## AppConfig:LoggingConfig:AzureOfferingDomain

*Linux: AppConfig\_\_LoggingConfig\_\_AzureOfferingDomain*

**値:** String

**説明:**

ワークスペースが Global Azure Cloud にない場合は、ここで提供ドメインを構成できます。既定値は 'azure.com' です。

{% hint style="danger" %}
変更するとサービスに悪影響を及ぼす可能性があります！
{% endhint %}

## AppConfig:LoggingConfig:LogLevel

*Linux: AppConfig\_\_LoggingConfig\_\_LogLevel*

**値:** *Trace*, *Debug*, *Info*, *Warn*, *Error*、または *Fatal*

**説明:**

ログに記録する最小ログレベルです。既定値は 'Info' です。構成されたログレベル以上のエントリのみが記録されます。

この設定を 'Trace' または 'Debug' にすると、ログ出力に UPN やユーザーの IP アドレスなどの個人データが含まれる場合があります。ログ出力に個人データを含めたくない場合は、この設定を 'Info' 以上にしてください。

## AppConfig:LoggingConfig:AzureEventHubConnectionString

*Linux: AppConfig\_\_LoggingConfig\_\_AzureEventHubConnectionString*

{% hint style="info" %}
Azure Event Hub へのログ記録は、バージョン 2.5 以降で可能です
{% endhint %}

**値:** String

**説明:**

Azure Event Hub への接続文字列です。Azure Event Hub を使用したい場合は、この設定を構成するか、または [AppConfig:LoggingConfig:AzureEventHubServiceUri](#appconfig-loggingconfig-azureeventhubserviceuri)を指定する必要があります。AzureEventHubConnectionString を使用する場合は、認証情報を含める必要があります。

## AppConfig:LoggingConfig:AzureEventHubName

*Linux: AppConfig\_\_LoggingConfig\_\_AzureEventHubName*

{% hint style="info" %}
Azure Event Hub へのログ記録は、バージョン 2.5 以降で可能です
{% endhint %}

**値:** String

**説明:**

Azure Event Hub の名前です。Azure Event Hub を使用する場合、これは必須の設定です。

## AppConfig:LoggingConfig:AzureEventHubPartitionKey

*Linux: AppConfig\_\_LoggingConfig\_\_AzureEventHubPartitionKey*

{% hint style="info" %}
Azure Event Hub へのログ記録は、バージョン 2.5 以降で可能です
{% endhint %}

**値:** String

**説明:**

Azure Event Hub のパーティション キーです。この設定は任意です。設定しない場合、既定値は '0' になります。

## AppConfig:LoggingConfig:AzureEventHubServiceUri

*Linux: AppConfig\_\_LoggingConfig\_\_AzureEventHubServiceUri*

{% hint style="info" %}
マネージド ID を使用した Azure Event Hub へのログ記録は、バージョン 2.8 以降で可能です
{% endhint %}

**値:** String

説明: Azure Event Hub の Service URI です。Azure Event Hub を使用したい場合は、この設定を構成するか、または [AppConfig:LoggingConfig:AzureEventHubConnectionString](#appconfig-loggingconfig-azureeventhubconnectionstring)を指定する必要があります。AzureEventHubServiceUri を使用する場合、SCEPman/Certificate Master はそのマネージド ID を使用して Azure Event Hub Service に対して認証します。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.scepman.com/ja/scepman-gou-cheng/application-settings/dependencies-azure-services/logging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
