DataPower

 View Only

 "Internal Error (from client)" when attempting to create Log Target with LogTrigger stanza using XML Management interface

Jump to  Best Answer
Tyler Courtney Hayward's profile image
Tyler Courtney Hayward posted Thu February 05, 2026 05:10 AM

I have a support ticket where I was asked to gather debug logs on specific error codes using the instructions found here: https://www.ibm.com/support/pages/troubleshooting-intermittent-network-errors-datapower?view=full

We try to automate as much of this as possible using the SOMA interface. First, I manually created the config through the WebGUI first and then exported it so I can fire it at any appliance I need to.

Creating (set-config) this new log target works, but without any LogTriggers:

curl -s -k -u user:password -d '<?xml version="1.0"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:man="http://www.datapower.com/schemas/management"><env:Header/><env:Body><man:request domain="default"><man:set-config><LogTarget name="pmr-log"><mAdminState>enabled</mAdminState><Type>file</Type><Priority>normal</Priority><SoapVersion>soap11</SoapVersion><Format>text</Format><TimestampFormat>zulu</TimestampFormat><FixedFormat>off</FixedFormat><Size>15000</Size><LocalFile>logtemp:///pmr-log</LocalFile><ArchiveMode>rotate</ArchiveMode><UploadMethod>ftp</UploadMethod><Rotate>3</Rotate><UseANSIColor>off</UseANSIColor><SyslogFacility>user</SyslogFacility><RateLimit>100</RateLimit><MaxConnections>1</MaxConnections><ConnectTimeout>60</ConnectTimeout><IdleTimeout>15</IdleTimeout><ActiveTimeout>0</ActiveTimeout><FeedbackDetection>off</FeedbackDetection><IdenticalEventSuppression>off</IdenticalEventSuppression><IdenticalEventPeriod>10</IdenticalEventPeriod><SSLClientConfigType>client</SSLClientConfigType><RetryInterval>1</RetryInterval><RetryAttempts>1</RetryAttempts><LongRetryInterval>20</LongRetryInterval><LogPrecision>second</LogPrecision><EventBufferSize>2048</EventBufferSize><LogEvents><Class class="LogLabel">all</Class><Priority>debug</Priority></LogEvents></LogTarget></man:set-config></man:request></env:Body></env:Envelope>' https://datapower/service/mgmt/3.0 

Adding in the LogTriggers causes the call to fail with "Internal Error (from client)":

curl -s -k -u user:password -d '<?xml version="1.0"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:man="http://www.datapower.com/schemas/management"><env:Header/><env:Body><man:request domain="default"><man:set-config><LogTarget name="pmr-log"><mAdminState>enabled</mAdminState><Type>file</Type><Priority>normal</Priority><SoapVersion>soap11</SoapVersion><Format>text</Format><TimestampFormat>zulu</TimestampFormat><FixedFormat>off</FixedFormat><Size>15000</Size><LocalFile>logtemp:///pmr-log</LocalFile><ArchiveMode>rotate</ArchiveMode><UploadMethod>ftp</UploadMethod><Rotate>3</Rotate><UseANSIColor>off</UseANSIColor><SyslogFacility>user</SyslogFacility><RateLimit>100</RateLimit><MaxConnections>1</MaxConnections><ConnectTimeout>60</ConnectTimeout><IdleTimeout>15</IdleTimeout><ActiveTimeout>0</ActiveTimeout><FeedbackDetection>off</FeedbackDetection><IdenticalEventSuppression>off</IdenticalEventSuppression><IdenticalEventPeriod>10</IdenticalEventPeriod><LogTriggers><ID>0x8d200052</ID><Expression/><OnlyOnce>on</OnlyOnce><StopProcessing>on</StopProcessing><Command>no packet-capture-advanced all temporary:///capture.pcap; logging target pmr-log; admin-state disabled; exit; save error-report</Command></LogTriggers><LogTriggers><ID>0x8580005c</ID><Expression/><OnlyOnce>on</OnlyOnce><StopProcessing>on</StopProcessing><Command>no packet-capture-advanced all temporary:///capture.pcap; logging target pmr-log; admin-state disabled; exit; save error-report</Command></LogTriggers><LogTriggers><ID>0x80e00648</ID><Expression/><OnlyOnce>on</OnlyOnce><StopProcessing>on</StopProcessing><Command>no packet-capture-advanced all temporary:///capture.pcap; logging target pmr-log; admin-state disabled; exit; save error-report</Command></LogTriggers><SSLClientConfigType>client</SSLClientConfigType><RetryInterval>1</RetryInterval><RetryAttempts>1</RetryAttempts><LongRetryInterval>20</LongRetryInterval><LogPrecision>second</LogPrecision><EventBufferSize>2048</EventBufferSize><LogEvents><Class class="LogLabel">all</Class><Priority>debug</Priority></LogEvents></LogTarget></man:set-config></man:request></env:Body></env:Envelope>' https://datapower/service/mgmt/3.0

I have tried doing this in two steps using modify-config, but I receive the same error.

Anyone, am I missing something really obvious here? Any ideas?

Joseph Morgan's profile image
Joseph Morgan  Best Answer

What version of firmware are you on?

I notice, at least now ( I have no idea when these new fields were added ), there are two more required fields in the LogTriggers.  One is "CommandsGlobalMode", which is a simple toggle on or off.  The other is "AccessProfile".  Both can be null, but the elements must exist.  So, try adding these two elements to each of the log triggers:

<CommandsGlobalMode>on</CommandsGlobalMode>

<AccessProfile/>

Tyler Courtney Hayward's profile image
Tyler Courtney Hayward

Joseph, we are on 10.6.0.7 and 10.6.0.3. Your suggestion solved the issue, thank you for the assist!