community.general.logentries (8.5.0) — module

Module for tracking logs via logentries.com

Authors: Ivan Vanderbyl (@ivanvanderbyl)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Sends logs to LogEntries in realtime

Usage examples

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

Inputs

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

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

state:
    choices:
    - present
    - absent
    - followed
    - unfollowed
    default: present
    description:
    - following state of the log
    required: false
    type: str

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