> For the complete documentation index, see [llms.txt](https://docs.scepman.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.scepman.com/pt/configuracao-do-scepman/application-settings/dependencies-azure-services/logging.md).

# Registo

{% hint style="info" %}
Estas definições devem ser aplicadas apenas ao SCEPman App Service, não ao Certificate Master. Consulte [Definições do SCEPman](/pt/configuracao-do-scepman/application-settings.md).

Aplicável à versão 2.4 e superior
{% endhint %}

## AppConfig:LoggingConfig:DataCollectionEndpointUri

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

{% hint style="info" %}
O registo via DCE é possível na versão 3.0 e superior
{% endhint %}

**Valor:** Uri

**Descrição:**

O Uri do endpoint de recolha de dados é o destino para o qual o SCEPman envia os seus registos. Isto utiliza o DCE predefinido da Data Collection Rule que é criada automaticamente numa implementação padrão.

## AppConfig:LoggingConfig:RuleId

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

{% hint style="info" %}
O registo via DCE é possível na versão 3.0 e superior
{% endhint %}

**Valor:** Cadeia de caracteres

**Descrição:**

Este é o identificador exclusivo da Data Collection Rule a ser utilizada pelo SCEPman.

## AppConfig:LoggingConfig:WorkspaceId

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

**Valor:** GUID

**Descrição:**

O WorkspaceID do seu Log Analytics Workspace (mostrado na Visão geral do workspace). Esta é uma definição obrigatória se quiser usar o Azure Monitor, juntamente com SharedKey.

## AppConfig:LoggingConfig:SharedKey

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

**Valor:** Cadeia de caracteres

**Descrição:**

Use uma das duas chaves do Log Analytics Workspace. Elas são apresentadas se aceder ao seu SCEPman Log Analytics Workspace e navegar para Definições/Agentes, onde pode expandir a secção "Log Analytics agent instructions". Use a chave Primária ou a Secundária.

Esta é uma configuração obrigatória se quiser usar Azure Monitor, em conjunto com WorkspaceId.

## AppConfig:LoggingConfig:AzureOfferingDomain

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

**Valor:** Cadeia de caracteres

**Descrição:**

Se o workspace não estiver na Nuvem Global do Azure, pode configurar aqui o domínio da oferta. O predefinido é 'azure.com'.

{% hint style="danger" %}
As alterações podem prejudicar o seu serviço!
{% endhint %}

## AppConfig:LoggingConfig:LogLevel

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

**Valor:** *Rastreio*, *Depuração*, *Informação*, *Aviso*, *Erro*, ou *Fatal*

**Descrição:**

O nível mínimo de registo a ser registado. O predefinido é 'Info'. Apenas serão registadas entradas de registo com um nível igual ou superior ao nível de registo configurado.

Note que, se configurar esta definição para 'Trace' ou 'Debug', a saída de registo pode conter dados pessoais, como UPNs ou endereços IP de utilizadores. Se quiser evitar dados pessoais na saída de registo, deve configurar esta definição para 'Info' ou superior.

## AppConfig:LoggingConfig:AzureEventHubConnectionString

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

{% hint style="info" %}
O registo no Azure Event Hub é possível na versão 2.5 e superior
{% endhint %}

**Valor:** Cadeia de caracteres

**Descrição:**

A cadeia de ligação para o seu Azure Event Hub. Se quiser usar o Azure Event Hub, tem de configurar esta definição ou [AppConfig:LoggingConfig:AzureEventHubServiceUri](#appconfig-loggingconfig-azureeventhubserviceuri). Se usar AzureEventHubConnectionString, esta tem de incluir as informações de autenticação.

## AppConfig:LoggingConfig:AzureEventHubName

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

{% hint style="info" %}
O registo no Azure Event Hub é possível na versão 2.5 e superior
{% endhint %}

**Valor:** Cadeia de caracteres

**Descrição:**

O nome do seu Azure Event Hub. Esta é uma configuração obrigatória se quiser usar Azure Event Hub.

## AppConfig:LoggingConfig:AzureEventHubPartitionKey

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

{% hint style="info" %}
O registo no Azure Event Hub é possível na versão 2.5 e superior
{% endhint %}

**Valor:** Cadeia de caracteres

**Descrição:**

A chave de partição do seu Azure Event Hub. A configuração desta é opcional. Se não a definir, o valor predefinido será '0'.

## AppConfig:LoggingConfig:AzureEventHubServiceUri

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

{% hint style="info" %}
O registo no Azure Event Hub com Identidade Gerida é possível na versão 2.8 e superior
{% endhint %}

**Valor:** Cadeia de caracteres

Descrição: O URI do serviço do Azure Event Hub. Se quiser usar o Azure Event Hub, tem de configurar esta definição ou [AppConfig:LoggingConfig:AzureEventHubConnectionString](#appconfig-loggingconfig-azureeventhubconnectionstring). Se usar AzureEventHubServiceUri, o SCEPman/Certificate Master autenticar-se-á com a sua Identidade Gerida no serviço Azure Event Hub.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.scepman.com/pt/configuracao-do-scepman/application-settings/dependencies-azure-services/logging.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
