diff --git a/command/agent/user_event.go b/command/agent/user_event.go index 64891981f..163b59975 100644 --- a/command/agent/user_event.go +++ b/command/agent/user_event.go @@ -157,6 +157,11 @@ func (a *Agent) shouldProcessUserEvent(msg *UserEvent) bool { } if msg.ServiceFilter != "" { + // Handle "consul" service on server nodes + if a.server != nil && msg.ServiceFilter == "consul" { + return true + } + re, err := regexp.Compile(msg.ServiceFilter) if err != nil { a.logger.Printf("[ERR] agent: Failed to parse service filter '%s' for event '%s': %v",