yanosliger_dev.datadog_logger

Here’s a simplified translation of your text:


Adding Custom Logs in Datadog

To set this up, you need the following details:

  • log_file_path: The full path to the log file you want to include.
  • log_file_owner: The user or owner who has access to the log file.
  • logger_name: The name you want to use to identify this service in Datadog.
  • adm_group_required: Whether the Datadog agent needs to be added to the admin group to access these logs.

By default, it uses the syslog.

How to Use

---
- hosts:
    - all
  become: yes
  roles:
    - role: yanosliger_dev.datadog_smartmon
  vars:
    - log_file_path: /var/log/syslog
    - log_file_owner: syslog
    - logger_name: customlog
    - adm_group_required: True/False

This provides a clear guide on how to add custom logs in Datadog while outlining the necessary variables and a sample usage format.

Informazioni sul progetto

Adds a logger for multiple logfiles in datadog

Installa
ansible-galaxy install yanosliger_dev.datadog_logger
Licenza
Unknown
Download
86
Proprietario