Created 08-17-2016 03:21 PM
I am using PutSyslog and need to pass in the content of the flow file.
Q 1 - Is there a way to reference the content of flow file directly within the MessageBody field of the PutSyslog processor?
Q 2 - If not, how do I add the content of the flow file as processor so that I can pass the attribute to the MessageBody?
Created 08-17-2016 05:01 PM
The ExtractText processor is used to pull up text from the content of a flow file into an attribute. You should be able to add a property like "message.body" with a value of "(.*)" to ExtractText to get it to extract everything.
Keep in mind this only makes sense for small messages. Attributes are held in memory and if you did this with a huge flow file you could blow up the memory of your Java process.
Created 08-17-2016 05:01 PM
The ExtractText processor is used to pull up text from the content of a flow file into an attribute. You should be able to add a property like "message.body" with a value of "(.*)" to ExtractText to get it to extract everything.
Keep in mind this only makes sense for small messages. Attributes are held in memory and if you did this with a huge flow file you could blow up the memory of your Java process.
Created 05-03-2019 02:30 PM
This resulted in error: "message.body is invalid when validated against (.*) because message.body is not supported property"
Created 11-26-2024 09:11 AM
Just for clarification you have to use this now - (?s)(^.*$)