Absent Member.
Absent Member.
315 views

Smart Connector Dynamic Mapping

Just wondering if there is a way to map the contents of one field to another.  This is not a static entry that can be blanketed across all events.  Given a certain event ID I need to move the hostname from deviceCustomString to targetHostName, but I can't seem to find any documentation on doing a non-static map.

Any help is appreciated

Labels (1)
0 Likes
2 Replies
Absent Member.
Absent Member.

you can do this with additional regexparsing

you need to create the following

<ArcHome>/current/user/agent/fcp/addionalregexparsing/<agentType>/regex.0.sdkrfilereader.properties

the file will contain

------------------------------------------------------

source.field=event.deviceCustomString1

regex= (.*)

token.count=1

token[0].name=token1

token[0].type=String

event.targetHostName=token1

------------------------------------------------------

restart the connector...

all the contents of deviceCustomString1 will now go into targetHostName

0 Likes
Fleet Admiral
Fleet Admiral

Look for "Using Parser-Like Expressions in Map Files" in the flex connector development guide. This would enable using map files for dynamic mapping.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.