question

Upvote
Accepted
54 5 5 9

Activate full message logs for RSSL connections in RFA C++

For SSLED connections, when I add a "sslapi.cnf" file, I get traces including all messages between RFA and the infra.

For RSSL connections, I would like to know the equivalent of "sslapi.cnf" file. When I activate RSSL traces with the setting "traceMsg", I don't get all messages send or received from the infra.

treprfarfa-apic++rssllogging
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
7.6k 15 6 9

Below is additional RFA example configuration I used to log all messages. <Connection_RSSL> is you RSSL connection in RFA configuration file. We need to increase traceMsgMaxMsgSize to capture a large message such as Dictionary because sometime the size of the dictionary response larger than default traceMsgMaxMsgSize. If you wan to log message hex you can just change traceMsgHex to true. You can find additional RFA configuration from RFA Configuration guide.

\Connections\<Connection_RSSL>\connectionType	= "RSSL"
\Connections\<Connection_RSSL>\rsslPort 	= "<RSSL Port>"
\Connections\<Connection_RSSL>\hostName		= "<ADS/Provider Hostname>"
\Connections\<Connection_RSSL>\traceMsg = false
\Connections\<Connection_RSSL>\traceMsgToFile = true
\Connections\<Connection_RSSL>\tracePing = true
\Connections\<Connection_RSSL>\traceMsgFileName   = "RSSLConsumerTrace"
\Connections\<Connection_RSSL>\traceMsgDomains = "all"
\Connections\<Connection_RSSL>\traceRespMsg = true
\Connections\<Connection_RSSL>\traceReqMsg = true
\Connections\<Connection_RSSL>\traceMsgHex = false 
\Connections\<Connection_RSSL>\traceMsgMaxMsgSize = 200000000
\Connections\<Connection_RSSL>\traceMsgMultipleFiles = true
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1.2k 23 31 44

The parameters for tracing are detailed in the RFA Config Guide document, "Chapter 3 : User-Defined Namespace Configuration Parameters" and permit filtering out of different messages.

By default with `traceMsg` or `traceMsgToFile` only RSSL pings are filtered out.

An example file configuration may look like this:

\Connections\X\connectionType = "RSSL"
\Connections\X\rsslPort = "14002"
\Connections\X\serverList = "ads1,ads2"
\Connections\X\traceMsgToFile = "True"
\Connections\X\tracePing = "True"
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
54 5 5 9

Thanks for your answers.

Actually some filters were set to "true", that's why I didn't get all messages I expected:

\Connections\Connection_SSLED_RMDS_Sub\traceFilterOutRequests="True"
\Connections\Connection_SSLED_RMDS_Sub\traceFilterOutCloses="True"
\Connections\Connection_SSLED_RMDS_Sub\traceFilterOutStatuses="True"
\Connections\Connection_SSLED_RMDS_Sub\traceFilterOutRefreshes="True"

If I set theses settings to "false", I have all messages.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.