Skip to content

Instantly share code, notes, and snippets.

View c0psrul3's full-sized avatar

Mike c0psrul3

View GitHub Profile
@sivel
sivel / inventory2json.py
Last active December 19, 2023 01:54
Ansible inventory to dynamic inventory JSON output, accepts all inventory input formats
import sys
import json
from ansible.parsing.dataloader import DataLoader
try:
from ansible.inventory.manager import InventoryManager
A24 = True
except ImportError:
from ansible.vars import VariableManager
@blachniet
blachniet / consul-filebeat.yml
Last active October 27, 2021 01:42
Filebeat configuration for Consul
#=========================== Filebeat prospectors =============================
filebeat.prospectors:
- input_type: log
paths:
- C:\ProgramData\Consul\logs\*
multiline.pattern: ^(==>|\s*\d{4}/\d{2}/\d{2})
multiline.negate: true
multiline.match: after
#================================ General =====================================