ansible.builtin.logentries (v2.9.27) — module

Module for tracking logs via logentries.com

| "added in version" 1.6 of ansible.builtin"

Authors: Ivan Vanderbyl (@ivanvanderbyl)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Sends logs to LogEntries in realtime

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Track nginx logs
- logentries:
    path: /var/log/nginx/access.log
    state: present
    name: nginx-access-log
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Stop tracking nginx logs
- logentries:
    path: /var/log/nginx/error.log
    state: absent

Inputs

    
name:
    description:
    - name of the log
    required: false

path:
    description:
    - path to a log file
    required: true

state:
    choices:
    - present
    - absent
    default: present
    description:
    - following state of the log
    required: false

logtype:
    description:
    - type of the log
    required: false