Dynamically assign xml target with xpath

Is it possible to dynamically create an xml target based on the value of an xpath?

I can't get below to work correctly.
I would want the value of target to be the value of the xpath:

/measInfo/@measInfoId", "TARGET

  xml {
    source => "message"
    xpath => [
        "/measInfo/@measInfoId", "TARGET",
        "/measInfo/granPeriod/@endTime", "endTime"
    ]   # End of xpath
    target => "%{[TARGET]}"

  } 

Is this possible??

Thanks

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.