community.general.loganalytics (8.5.0) — callback

Posts task results to Azure Log Analytics

| "added in version" 2.4.0 of community.general"

Authors: Cyrus Li (@zhcli) <cyrus1006@gmail.com>

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

This callback plugin will post task results in JSON formatted to an Azure Log Analytics workspace.

Credits to authors of splunk callback plugin.


Requirements

Inputs

    
shared_key:
    description: Shared key to connect to Azure log analytics workspace.
    env:
    - name: WORKSPACE_SHARED_KEY
    ini:
    - key: shared_key
      section: callback_loganalytics
    required: true

workspace_id:
    description: Workspace ID of the Azure log analytics workspace.
    env:
    - name: WORKSPACE_ID
    ini:
    - key: workspace_id
      section: callback_loganalytics
    required: true