Apprise supports tagging services in configuration files to organize them (e.g., devops, critical). Use the --tag (-g) switch to filter which services receive a notification.
Tag Logic
- OR Logic (Union): Specify
-g multiple times to notify services that have either tag. - AND Logic (Intersection): Separate tags with a comma to notify services that have both tags.
Priority and Retries
Tags can include a priority prefix (N:tag) or a retry suffix (tag:N).
- Escalation (no prefix):
-g alerts dispatches priority-1 entries first. If they succeed, it returns early. If they fail, it triggers the next priority level as an escalation chain. - Exclusive (with prefix):
-g "2:alerts" notifies only services whose alerts tag has priority 2. - Per-call retry:
-g "alerts:3" retries each matched service up to 3 times for this specific call. - Combined:
-g "2:alerts:3" uses exclusive priority-2 filter with up to 3 retries.
Examples:
# OR Logic: Notify 'devops' OR 'admin'
apprise -vv -t "Union Test" --config=~/apprise.yml -g devops -g admin
# AND Logic: Notify 'devops' AND 'critical'
apprise -vv -t "Intersection Test" --config=~/apprise.yml -g devops,critical
# Escalation: priority-1 first; skip priority-5 if all succeed
apprise -vv -t "Alert" --config=~/apprise.yml -g alerts
# Exclusive: only priority-2 alert services
apprise -vv -t "Alert" --config=~/apprise.yml -g "2:alerts"
# With retry override: retry each matched service up to 3 times
apprise -vv -t "Alert" --config=~/apprise.yml -g "alerts:3"
# OR Logic: Notify any service tagged 'devops' OR 'admin'
apprise -vv -t "Union Test" \
--config=~/apprise.yml \
-g devops -g admin