Hello all,
I am trying to make a small scripted processor (via InvokeScriptedProcessor using a template created by @mburgess https://gist.github.com/mattyb149/fa02e1060b0a6dc9f2a3c119863e862b ) that acts as a separate reusable logger that uses the dynamic properties as the log info and message then writes it to disk. I tried simply using getattribute, but of course, the dynamic data had not been added as an attribute yet (and, honestly, I would rather it didn't, but I don't think I have much of a choice if I am not writing an actual Java processor?).
Is there a way to get this data using python if it has not yet been added as an attribute? If so, once I write my log file, is there a way to remove those properties from the flowFile instead of them being added as attributes once my processor has completed its objective?
Thanks,
-id