The SLO lookup file that I use to filter and specify SLO configurations contains these columns (more info than needed really): lookup file: hi2_slo_config COLUMNS: slo_spec_version, slo_name, slo_description, slo_service, slo_env, slo_domain, slo_type, slo_class, slo_lob, slo_severity, slo_category, slo_product, slo_eventtype, slo_time_isrolling, slo_time_count, slo_time_unit, slo_timeslices, slo_budget_method, slo_op, slo_threshold, slo_docref, sli_name, sli_type, sli_source, sli_sourcetype, sli_metric_name, sli_dimensions_metric, sli_dimensions_alert, slo_flag_mock, slo_flag_snow, slo_msg_id_snow, slo_flag_mm, slo_msg_id_mm, slo_webhook_id_mm, slo_flag_email, slo_msg_id_email, slo_msg_dest_email I use the sli_dimensions_alert field to define the alert naming conventions. Here are two examples (I want to be able to customize sli_dimensions_alert as desired): * sli_dimensions_alert="env,service_name,type,class,product,resource,lob" * sli_dimensions_alert="env,service_name,type,class" I've split and joined the sli_dimensions_alert field using the following: | eval alert_name=mvjoin(split(replace(sli_dimensions_alert," ",""), ","), "-") That eval creates the following: alert_name="env-service_name-type-class-product-resource-lob" alert_name="env-service_name-type-class" I want to substitute/replace/map the fields env, service_name, type, class, product, resource, lob, etc with the value for those fields that come from my source. Example values in previous post. I haven't nailed it with mvmap and am trying a for command to loop concatenation. Having a hard time with it. I was thinking I could create a macro that passes in the CSV field (e.g. sli_dimensions_alert="env,service_name,type,class,product,resource,lob") and loop process it with a for command. Struggling with that. I'm hoping there's a simpler solution that hasn't come to mind.
... View more