Have trouble referencing values and log line in promtail template stage

I found the solution in Promtail - rewriting output (and using internal labels) - #2 by wrightsonm
The pack does exactly what I want