Jeff, Would if be feasible for you use UpdateAttribute (which I believe is part of MiNiFi core processors) and use the ${hostname(true)} Expression language function?
More about it can be found here: https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#hostname Cheers On Wed, Apr 26, 2017 at 12:39 AM, Jeff Zemerick <jzemer...@apache.org> wrote: > When processing data in NiFi that was received via MiNiFi edge devices I > need to be able to identify the source of the data. All of the data on the > edge devices will be pulled from a database and will not contain any data > that self-identifies the source. My attempt to solve this was to write a > processor that reads a configuration file on the edge device to get its > device ID and put that ID as an attribute in the flowfile. This appears to > work, but, I was wondering if there is a more recommended approach? > > Thanks, > Jeff >