Hi Ujwol,
As you suggested configured the Apache to print Transaction ID in access log as below
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{User-Agent}i\" \"%{Host}i\" \"%{SM_TRANSACTIONID}i\"" myformat
CustomLog "|'C:/CA/secure-proxy/httpd/bin/rotatelogs.exe' 'C:/CA/secure-proxy/httpd/logs/access_log' 10M" myformat
After these changes the access_log content looks like:
192.168.68.131 - - [26/Oct/2017:16:06:00 +0800] "GET /affwebservices/public/saml2sso?SMASSERTIONREF=QUERY&SPID=SP1 HTTP/1.1" 200 3512 "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)" "iamserver.mydomain.com:9090" "-"
The TransactionID value is not shown in the log.