Is it possible to add the namespace information in the slack connector?
i.e
Rule {{context.rule.name}} with severity {{context.rule.severity}} generated {{state.signals_count}} alerts in the {{context.data_stream.namespace}} namespace.
I don't see the option in the mustache syntax, but maybe it's possible?
Sorry, not sure what "namespace" is then - I thought you were referring to Kibana spaces.
I assume then it must be something specific to the rule you are using. Which rule type are you using? The rule types provide the context variables ... it seems like a SIEM-related alert, but could you validate?
The drop-down list next to the text editor should show all the variables available, and rule-specific variables are always in the context object container. If it's not listed, it likely isn't available, in which case you could open a feature request issue in Kibana for it:
(note, the link to the "create new issue" page is below in the GitHub ad box - not sure why it did that kind of formatting on it ...)
I believe you're talking about this namespace field correct?
If so, it'll exist on each individual alert document, so you'll need to loop over the alerts and fetch each one (instead of it being on the root context obj itself).
I just tested with the following template and was able to retrieve the data_stream.namespace off each alert generated:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.