IBM Support

DataPower log event message truncated when using xsl:message to output a custom log message

Question & Answer


Question

Why is the WebSphere DataPower log event message truncated when I use xsl:message to output a custom log message from my XSLT style sheet?

Answer

The WebSphere DataPower log event text is limited to a maximum length of 2048 bytes. Log text length over 2048 bytes is truncated. This limitation applies to every log priority and every type of log including the log output from xsl:message. This limitation currently exists on every firmware level.

Note: If log text over 2048 bytes is required, use the Log Action.

The Log Action is designed to be used with an off-device logger that accepts a message and records them to a file store of your choice. It can be used to log the message context into any log target.

You can find more information about the Log Action in Section 5.1.3 of following redbook:


Or in the DataPower Information Center:

[{"Product":{"code":"SS9H2Y","label":"IBM DataPower Gateway"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF009","label":"Firmware"}],"Version":"4.0.2;4.0.1;3.8.2","Edition":"Edition Independent","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
08 June 2021

UID

swg21447824