@Ashi
Potential option:
What record Reader and record writers are you using in your UpdateRecord processor?
What schema are you using for your records?
In order to add a new field, that new field needs to be defined in the records schema.
In your case the schema must contain the field "devicename".
Prior to UpdateRecord, you could use perhaps an ExtractText processor to extract the "rc01;rik2jc" value from the meHostName field to a flowfile.attribute.
Then will you be able to use UdpateRecord to apply a value to that new record field in the record writer.
Property: /devicename
value: ${flowfile.attribute:substringAfter(';')}
Please help our community thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.
Thank you,
Matt