---
title: FortiOS Log Custom Log
slug: homologacao-atmosphere/fortios-log-custom-log
description: Learn how to create a custom log field in FortiOS with this comprehensive document. Discover the essential parameters and subfields needed for configuring the custom log field, along with a helpful example YAML configuration. Find out how the module retur
createdAt: 2021-10-04T13:53:34.000Z
---

Cria campo de log customizado



Extende fragmentos da documentação dos módulos [FortiOS](https://app.archbee.io/docs/qhqZWWA92JYWAihQOL_T5/GK6TcLwJeGCEKg2lsbTV1) e [FotiOS API](https://app.archbee.io/docs/qhqZWWA92JYWAihQOL_T5/jZvvf9N1aUJbMuXZ5pmUO).

| Parâmetros         | Tipo       | Escolhas \| Valor Padrão | Descrição                                 |
| ------------------ | ---------- | ------------------------ | ----------------------------------------- |
| log\_custom\_field | dictionary | null (default)           | Configura campos customizados de log      |
| state              | string     | present<br />absent      | Indica se deve criar ou remover o objeto. |

## Subcampos da opção log\_custom\_field

| Parâmetro       | Tipo   | Escolhas \| Valor Padrão | Descrição                    |
| --------------- | ------ | ------------------------ | ---------------------------- |
| id - *required* | string |                          | Identificador único do campo |
| name            | string |                          | Nome do campo                |
| value           | string |                          | Valor do campo               |



## Exemplos

```yaml
  - name: Configure custom log fields.
    fortios_log_custom_field:
      host: "{{ host }}"
      username: "{{ username }}"
      password: "{{ password }}"
      vdom: "{{ vdom }}"
      https: "False"
      state: "present"
      log_custom_field:
        id: "1"
        name: "arbitrary_name"
        value: "arbitrary_value"
```



## Valores Retornados

Este módulo extende os mesmos valores retornados do módulo base fortios.
