I am trying to dynamically generate the apm indice based on global_labels
set in the apm agent, what's the best way to do it? I've tried ingest pipeline with script processor, I feel like it's over complicated any simpler way to do it?
The final index looks like apm-demo-0123456-metrics-2020.04.18
"labels": {
"app_owner": "0123456",
"app_family": "demo"
},