For some reason, flowfile attributes that are accessible throughout the rest of the flow are not accessible when going through the MonitorActivity processor and PutEmail processor. The idea is to take a user created attribute that works throughout the rest of the flow and put it in an email message after MonitorAlert triggers. Has anyone seen this behavior? Below are screenshot to assist in troubleshooting.
Relevant portion of FlowFile
Config of MonitorActivity
Config for PutEmail
Data Provenance showing HOST attribute in Create Filename, the processor right before MonitorActivity
Data Provenance for Monitor Activity showing how HOST isn't shown
It looks like the file where you are looking for the attribute of "host" is the file that is generated by the "Monitor Activity" processor, not the other file that is being sent into the Monitor activity processor (the one that has the host attribute).
To fix this just add an update attribute processor after the "Monitor Activity" processor and create the host attrbiute and pass that into the put email.
Hope this help!