Trimming smtracedefault.log messages

Idea created by SungHoon_Kim Employee on Mar 3, 2016
    Not planned
    Score4
    • redsa10
    • SamatBoA
    • SungHoon_Kim
    • Karmeng

    Following is a single Authentication and has generated 14KB of trace log.

    Most of the message that are not critical and taking up space is "Enter function" and "Leave function" (not doubting that we need to log that message).

    It would be good if we can shorten it to "*EF" and "*LF".

    This change would easily trim 1KB out of 14KB.

    Replacing "Start of call" to "*SC" and "Return from call" to "*RC" would trim another 0.5KB.

     

    This would allow some customers to generate smtracedefault.log in their extremely busy Policy Servers.

     

    [13:38:40.892][7032][SmAuthUser.cpp:1399][][][][][][][][][][][][][][][][][Enter function CSmAuthUser::CSmAuthUser]

    [13:38:40.892][7032][SmAuthUser.cpp:1447][][][][][][][][][][][][][][][][][Leave function CSmAuthUser::CSmAuthUser]

    [13:38:40.892][7032][Sm_Auth_Message.cpp:500][][][][][][][][][][][][][][][][][Enter function CSm_Auth_Message::ProcessMessage]

    [13:38:40.892][7032][AgentAuth.cpp:36][][][][][][][][][][][][][][][][][Enter function CSm_Auth_Message::ProcessAgentMessage]

    [13:38:40.892][7032][AgentAuth.cpp:87][s23/r3][][][agent.iis][][][][][][][][][][][][][** Received request from agent]

    [13:38:40.892][7032][AgentAuth.cpp:326][][][][][][][][][][][][][][][][][Enter function CSm_Auth_Message::AnalyzeAgentAuthMessage]

    [13:38:40.892][7032][AgentAuth.cpp:371][][][][][][][true][][][][][][][][][][Leave function CSm_Auth_Message::AnalyzeAgentAuthMessage]

    [13:38:40.892][7032][Sm_Auth_Message.cpp:751][][][][][][][][][][][][][][][][][Enter function CSm_Auth_Message::AuthenticateUser]

    [13:38:40.892][7032][Sm_Auth_Message.cpp:783][][][][agent.iis][][][][smuser][][/html/a.html][][][][][][][Authenticating user.]

    [13:38:40.892][7032][SmAuthUser.cpp:6080][][][][][][][][][][][][][][][][][Enter function CSmAuthUser::InitRequestContext]

    [13:38:40.892][7032][SmAuthUser.cpp:6097][][][][][][][ok][][][][][][][][][][Leave function CSmAuthUser::InitRequestContext]

    [13:38:40.892][7032][Sm_Auth_Message.cpp:555][][][][][][][][][][][][][][][][][Enter function CSm_Auth_Message::BreakupPassword]

    [13:38:40.892][7032][Sm_Auth_Message.cpp:646][][][][][][][ok][][][][][][][][][][Leave function CSm_Auth_Message::BreakupPassword]

    [13:38:40.892][7032][SmAuthUser.cpp:3917][][][][][][][][][][][][][][][][][Enter function CSmAuthUser::AuthenticateUserDir]

    [13:38:40.892][7032][SmDsObj.cpp:75][][LDAP:][][][][][][][][][][][][][][][Start of call LookupProvider.]

    [13:38:40.892][7032][SmDsProviderMap.cpp:109][][][][][][][][][][][][][][][][][Enter function CSmDsProviderMap::LookupProvider]

    [13:38:40.892][7032][SmDsProviderMap.cpp:204][][][][][][][Ok][][][][][][][][][][Leave function CSmDsProviderMap::LookupProvider]

    [13:38:40.892][7032][SmDsObj.cpp:77][][][][][][][Ok][][][][][][][][][][Return from call LookupProvider.]

    [13:38:40.892][7032][SmDsDir.cpp:66][][About to initialize directory, Oid='0e-5088b617-9bcf-485b-aa2c-39f5289a5609', Name='SSO LAB Domain Users'][][][][][][][][][][][][][][][Start of call InitDir.]

    [13:38:40.892][7032][SmDsLdapProvider.cpp:1370][][][][][][][][][][][][][][][][][Using LDAP server bank #1]

    [13:38:40.892][7032][SmDsDir.cpp:81][][][][][][][][][][][][][][][][][Return from call InitDir.]

    [13:38:40.892][7032][SmDsObj.cpp:94][][][][][][][][][][][][][][][][][Start of call IsValid.]

    [13:38:40.892][7032][SmDsObj.cpp:96][][][][][][][true][][][][][][][][][][Return from call IsValid.]

    [13:38:40.892][7032][SmDsDir.cpp:194][][Get dir connection object.][][][][][][][][][][][][][][][Start of call GetDirConnectionObject.]

    [13:38:40.892][7032][SmDsDir.cpp:196][][][][][][][Ok][][][][][][][][][][Return from call GetDirConnectionObject.]

    [13:38:40.892][7032][SmDsDir.cpp:202][][Get dir raw handle][][][][][][][][][][][][][][][Start of call GetDirRawHandle.]

    [13:38:40.892][7032][SmDsDir.cpp:204][][][][][][][Ok][][][][][][][][][][Return from call GetDirRawHandle.]

    [13:38:40.892][7032][SmAuthUser.cpp:5108][][][][][][][][][][][][][][][][][Enter function CSmAuthUser::Authenticate]

    [13:38:40.892][7032][SmAuthHtml.cpp:279][][][][][][][][][][][][][][][][][Enter function SmAuthenticate]

    [13:38:40.892][7032][SmAuthHtml.cpp:284][][][][][][][6][][][][][][][][][][Leave function SmAuthenticate]

    [13:38:40.892][7032][SmAuthUser.cpp:1695][][][][][][][][][][][][][][][][][Enter function CSmAuthUser::SavePasswordState]

    [13:38:40.892][7032][SmAuthUser.cpp:1697][][][][][][][false][][][][][][][][][][Leave function CSmAuthUser::SavePasswordState]

    [13:38:40.892][7032][SmAuthUser.cpp:5376][][][][][][][6][][][][][][][][][][Leave function CSmAuthUser::Authenticate]

    [13:38:40.892][7032][SmDsDir.cpp:272][][User ='smuser'][][][][][][][][][][][][][][][Start of call IsValidUsername.]

    [13:38:40.892][7032][SmDsDir.cpp:274][][][][][][][true][][][][][][][][][][Return from call IsValidUsername.]

    [13:38:40.892][7032][SmDsDir.cpp:425][][Advanced search, Root='DC=SSO,DC=LAB',Filter='(samaccountname=smuser)'][][][][][][][][][][][][][][][Start of call Search.]

    [13:38:40.892][7032][SmDsAliases.cpp:328][][][][][][][][][][][][][][][][][Enter function CSmDsAliases::GetSmDsAliases]

    [13:38:40.892][7032][SmDsAliases.cpp:377][][][][][][][true][][][][][][][][][][Leave function CSmDsAliases::GetSmDsAliases]

    [13:38:40.986][7032][SmDsLdapConnMgr.cpp:1201][][][][][][][][][][][][][][][][][LDAP search of (samaccountname=smuser) took 0 seconds and 93600 microseconds]

    [13:38:40.986][7032][SmDsLdapConnMgr.cpp:1201][][][][][][][][][][][][][][][][][LDAP search of (&(samaccountname=smuser)(objectclass=*)) took 0 seconds and 0 microseconds]

    [13:38:40.986][7032][SmDsLdapConnMgr.cpp:1201][][][][][][][][][][][][][][][][][LDAP search of (&(samaccountname=smuser)(objectclass=*)) took 0 seconds and 0 microseconds]

    [13:38:40.986][7032][SmDsLdapConnMgr.cpp:1201][][][][][][][][][][][][][][][][][LDAP search of (&(samaccountname=smuser)(objectclass=*)) took 0 seconds and 0 microseconds]

    [13:38:40.986][7032][SmDsLdapProvider.cpp:2244][][(Search) Base: 'DC=SSO,DC=LAB', Filter: '(samaccountname=smuser)'. Status: 1 entries][][][][][][][][][][][][][][][Ldap Search callout succeeds.]

    [13:38:40.986][7032][SmDsDir.cpp:446][][][][][][][true][][][][][][][][][][Return from call Search.]

    [13:38:40.986][7032][SmDsObj.cpp:75][][LDAP:][][][][][][][][][][][][][][][Start of call LookupProvider.]

    [13:38:40.986][7032][SmDsProviderMap.cpp:109][][][][][][][][][][][][][][][][][Enter function CSmDsProviderMap::LookupProvider]

    [13:38:40.986][7032][SmDsProviderMap.cpp:204][][][][][][][Ok][][][][][][][][][][Leave function CSmDsProviderMap::LookupProvider]

    [13:38:40.986][7032][SmDsObj.cpp:77][][][][][][][Ok][][][][][][][][][][Return from call LookupProvider.]

    [13:38:40.986][7032][SmDsUser.cpp:95][][About to initialize User 'CN=smuser,CN=Users,DC=sso,DC=lab' in dir 'SSO LAB Domain Users'][][][][][][][][][][][][][][][Start of call InitUser.]

    [13:38:40.986][7032][SmDsUser.cpp:106][][][][][][][][][][][][][][][][][Return from call InitUser.]

    [13:38:40.986][7032][SmDsObj.cpp:94][][][][][][][][][][][][][][][][][Start of call IsValid.]

    [13:38:40.986][7032][SmDsObj.cpp:96][][][][][][][true][][][][][][][][][][Return from call IsValid.]

    [13:38:40.986][7032][SmPasswordCheck.cpp:2730][][][][][][][][][][][][][][][][][Enter function CSmPasswordCheck::PreProcessPassword]

    [13:38:40.986][7032][SmPasswordCheck.cpp:397][][][][][][][][][][][][][][][][][Enter function CSmPasswordCheck::FindApplicablePasswordPolicies]

    [13:38:40.986][7032][SmPasswordCheck.cpp:448][][][][][][][true][][][][][][][][][][Leave function CSmPasswordCheck::FindApplicablePasswordPolicies]

    [13:38:40.986][7032][SmPasswordCheck.cpp:2768][][][][][][][true][][][][][][][][][][Leave function CSmPasswordCheck::PreProcessPassword]

    [13:38:40.986][7032][SmAuthUser.cpp:5108][][][][][][][][][][][][][][][][][Enter function CSmAuthUser::Authenticate]

    [13:38:40.986][7032][SmAuthUser.cpp:5259][][][LDAP://192.168.201.101 192.168.201.102/CN=smuser,CN=Users,DC=sso,DC=lab][][][][][smuser][SSO LAB Domain Users][][][][][][][][Authenticating user by the auth scheme]

    [13:38:40.986][7032][SmAuthHtml.cpp:279][][][][][][][][][][][][][][][][][Enter function SmAuthenticate]

    [13:38:40.986][7032][SmAuthUser.cpp:841][][][][][][][][][][][][][][][][][Enter function AuthenticateDsUser]

    [13:38:40.986][7032][SmDsObj.cpp:94][][][][][][][][][][][][][][][][][Start of call IsValid.]

    [13:38:40.986][7032][SmDsObj.cpp:96][][][][][][][true][][][][][][][][][][Return from call IsValid.]

    [13:38:40.986][7032][SmDsUser.cpp:229][][User ='CN=smuser,CN=Users,DC=sso,DC=lab'][][][][][][][][][][][][][][][Start of call AuthenticateUser.]

    [13:38:40.986][7032][SmDsUser.cpp:238][][][][][][][true][][][][][][][][][][Return from call AuthenticateUser.]

    [13:38:40.986][7032][SmAuthUser.cpp:875][][][][][][][0][][][][][][][][][][Leave function AuthenticateDsUser]

    [13:38:40.986][7032][SmAuthHtml.cpp:526][][][][][][][2][][][][][][][][][][Leave function SmAuthenticate]

    [13:38:40.986][7032][SmAuthUser.cpp:1695][][][][][][][][][][][][][][][][][Enter function CSmAuthUser::SavePasswordState]

    [13:38:40.986][7032][SmAuthUser.cpp:1697][][][][][][][false][][][][][][][][][][Leave function CSmAuthUser::SavePasswordState]

    [13:38:40.986][7032][SmAuthUser.cpp:5399][][][][][][][][][][][][][][][][][Enter function CSmAuthUser::ValidateAuth]

    [13:38:40.986][7032][SmAuthUser.cpp:5606][][][][][][][][][][][][][][][][][Enter function CSmAuthUser::CheckPasswordPolicies]

    [13:38:40.986][7032][SmAuthUser.cpp:5612][][][][][][][][][][][][][][][][][Leave function CSmAuthUser::CheckPasswordPolicies]

    [13:38:40.986][7032][SmAuthUser.cpp:5506][][][][][][][][][][][][][][][][][Leave function CSmAuthUser::ValidateAuth]

    [13:38:40.986][7032][SmAuthUser.cpp:5376][][][][][][][2][][][][][][][][][][Leave function CSmAuthUser::Authenticate]

    [13:38:40.986][7032][SmDsUser.cpp:271][][User ='CN=smuser,CN=Users,DC=sso,DC=lab'][][][][][][][][][][][][][][][Start of call GetDisabledUserState.]

    [13:38:40.986][7032][SmDsObj.cpp:94][][][][][][][][][][][][][][][][][Start of call IsValid.]

    [13:38:40.986][7032][SmDsObj.cpp:96][][][][][][][true][][][][][][][][][][Return from call IsValid.]

    [13:38:40.986][7032][SmDsUser.cpp:290][][][][][][][true][][][][][][][][][][Return from call GetDisabledUserState.]

    [13:38:40.986][7032][SmDsDir.cpp:210][][][][][][][][][][][][][][][][][Start of call FreeDirConnectionObject.]

    [13:38:40.986][7032][SmDsDir.cpp:211][][][][][][][][][][][][][][][][][Return from call FreeDirConnectionObject.]

    [13:38:40.986][7032][SmAuthUser.cpp:5069][][][][][][][true][][][][][][][][][][Leave function CSmAuthUser::AuthenticateUserDir]

    [13:38:40.986][7032][SmDsUser.cpp:980][][][][][][][][][][][][][][][][][Enter function CSmDsUser::FlushModifiedAttributeCache]

    [13:38:40.986][7032][SmDsUser.cpp:1007][][][][][][][true][][][][][][][][][][Leave function CSmDsUser::FlushModifiedAttributeCache]

    [13:38:40.986][7032][Sm_Auth_Message.cpp:1511][][][][][][][][][][][][][][][][][SessionAssurance is not enabled.]

    [13:38:40.986][7032][Sm_Auth_Message.cpp:4060][][][][][][][][][][][][][][][][][Enter function CSm_Auth_Message::SetAuthContext]

    [13:38:40.986][7032][Sm_Auth_Message.cpp:4280][][][][][][][][][][][][][][][][][Leave function CSm_Auth_Message::SetAuthContext]

    [13:38:40.986][7032][Sm_Auth_Message.cpp:101][][][Cleaning up][][][][][][][][][][][][][][SmSamlDataContext::~SmSamlDataContext: Cleaning up]

    [13:38:40.986][7032][Sm_Auth_Message.cpp:4295][][][][][][][][][][][][][][][][][Enter function CSm_Auth_Message::SendReply]

    [13:38:40.986][7032][SmAuthHtml.cpp:114][][][][][][][][][][][][][][][][][Enter function SmAuthQuery]

    [13:38:40.986][7032][SmAuthHtml.cpp:241][][][][][][][0][][][][][][][][][][Leave function SmAuthQuery]

    [13:38:40.986][7032][Sm_Auth_Message.cpp:4629][s23/r3][][][agent.iis][][][][smuser][SSO LAB Domain Users][][][][][][][][** Status: Authenticated. ]

    [13:38:40.986][7032][Sm_Auth_Message.cpp:4633][][][][][][][][][][][][][][][][][Leave function CSm_Auth_Message::SendReply]

    [13:38:40.986][7032][Sm_Auth_Message.cpp:1850][][][][][][][ok][][][][][][][][][][Leave function CSm_Auth_Message::AuthenticateUser]

    [13:38:40.986][7032][AgentAuth.cpp:317][][][][][][][1699][][][][][][][][][][Leave function CSm_Auth_Message::ProcessAgentMessage]

    [13:38:40.986][7032][Sm_Auth_Message.cpp:513][][][][][][][1699][][][][][][][][][][Leave function CSm_Auth_Message::ProcessMessage]

    [13:38:40.986][7032][SmDsDir.cpp:89][][Release DS Provider handle.][][][][][][][][][][][][][][][Start of call Release.]

    [13:38:40.986][7032][SmDsDir.cpp:91][][][][][][][][][][][][][][][][][Return from call Release.]

    [13:38:40.986][7032][SmDsAliases.cpp:384][][][][][][][][][][][][][][][][][Enter function CSmDsAliases::Release]

    [13:38:40.986][7032][SmDsAliases.cpp:390][][][][][][][false][][][][][][][][][][Leave function CSmDsAliases::Release]

    [13:38:40.986][7032][SmDsUser.cpp:165][][Release DS Provider handle.][][][][][][][][][][][][][][][Start of call Release.]

    [13:38:40.986][7032][SmDsUser.cpp:167][][][][][][][][][][][][][][][][][Return from call Release.]

    [13:38:40.986][7032][SmAuthUser.cpp:1452][][][][][][][][][][][][][][][][][Enter function CSmAuthUser::~CSmAuthUser]

    [13:38:40.986][7032][SmAuthUser.cpp:1504][][][][][][][][][][][][][][][][][Leave function CSmAuthUser::~CSmAuthUser]

    [13:38:42.140][6240][SmAuthUser.cpp:1399][][][][][][][][][][][][][][][][][Enter function CSmAuthUser::CSmAuthUser]

    [13:38:42.140][6240][SmAuthUser.cpp:1447][][][][][][][][][][][][][][][][][Leave function CSmAuthUser::CSmAuthUser]

    [13:38:42.140][6240][Sm_Auth_Message.cpp:500][][][][][][][][][][][][][][][][][Enter function CSm_Auth_Message::ProcessMessage]

    [13:38:42.140][6240][AgentAuth.cpp:36][][][][][][][][][][][][][][][][][Enter function CSm_Auth_Message::ProcessAgentMessage]

    [13:38:42.140][6240][AgentAuth.cpp:326][][][][][][][][][][][][][][][][][Enter function CSm_Auth_Message::AnalyzeAgentAuthMessage]

    [13:38:42.140][6240][AgentAuth.cpp:371][][][][][][][true][][][][][][][][][][Leave function CSm_Auth_Message::AnalyzeAgentAuthMessage]

    [13:38:42.140][6240][Sm_Auth_Message.cpp:4295][][][][][][][][][][][][][][][][][Enter function CSm_Auth_Message::SendReply]

    [13:38:42.140][6240][Sm_Auth_Message.cpp:4633][][][][][][][][][][][][][][][][][Leave function CSm_Auth_Message::SendReply]

    [13:38:42.140][6240][AgentAuth.cpp:317][][][][][][][110][][][][][][][][][][Leave function CSm_Auth_Message::ProcessAgentMessage]

    [13:38:42.140][6240][Sm_Auth_Message.cpp:513][][][][][][][110][][][][][][][][][][Leave function CSm_Auth_Message::ProcessMessage]

    [13:38:42.140][6240][SmAuthUser.cpp:1452][][][][][][][][][][][][][][][][][Enter function CSmAuthUser::~CSmAuthUser]

    [13:38:42.140][6240][SmAuthUser.cpp:1504][][][][][][][][][][][][][][][][][Leave function CSmAuthUser::~CSmAuthUser]