Skip to content

Instantly share code, notes, and snippets.

View rylnd's full-sized avatar

Ryland Herrick rylnd

View GitHub Profile
@rylnd
rylnd / fix_affected_rule.sh
Last active July 8, 2022 17:23 — forked from spong/bulk_add_actions_to_all_rules.sh
Bulk Update Rules' API Keys
#!/usr/bin/env bash
KIBANA_URI="${KIBANA_URL:-"http://localhost:5601"}"
KIBANA_USR="${KIBANA_USER:-"elastic"}"
KIBANA_PWD="${KIBANA_PASS:-"changeme"}"
KIBANA_SPACE="${SPACE_ID:-""}"
if [ -n "$KIBANA_SPACE" ]; then
SPACE_PART="s/${KIBANA_SPACE}/"
fi