community.general.logentries (0.2.1) — module

Module for tracking logs via logentries.com

Authors: Ivan Vanderbyl (@ivanvanderbyl)

Install collection

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


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.2.1

Description

Sends logs to LogEntries in realtime

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: 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.
- name: 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