Hi, I have two values in payload the host name and IP Address, which I need to access separately:
"transform" : {
"type" : "script",
"status" : "success",
"payload" : {
"_value" : [
[
"web01.host.local",
"10.10.10.10"
]
]
}
},
Executing {{ctx.payload._value}}
concatenates both values web01.host.local, 10.10.10.10
I'm looking for something as follow (however it does not work):
{{ctx.payload._value.0}}
it should resolve to web01.host.local
{{ctx.payload._value.1}}
it should resolve to 10.10.10.10
Thanks in advance