There are firewall rules configured in NSX to use Identity Based Firewall ( IDFW ) but logins are not being detected by Guest Introspection when a user logs into Windows. Please go through KB 377600 first. Proceed with this KB login if login messages are not seen in nsx-syslog.log in the ESXi host.
NSX-T 3.x
NSX 4.x
vDefend Firewall
See the following KB for general troubleshooting on Identity Based Firewall ( IDFW ) using Guest Introspection https://knowledge.broadcom.com/external/article/377600
grep 'USER_SESSION_EVENT_TYPE_USER_LOGIN' /var/log/proton/nsxapi.log
2024-09-17T21:57:30.365Z INFO IDFW-Vertical1 LoginLogoutEventListener 4692 FIREWALL [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] 1/1: Add event: [USER_SESSION_EVENT_TYPE_USER_LOGIN] user: [######\####] VM-session: ####..####/4, timestamp: 2024/09/17 21:57:18
2024-09-17T21:57:30.368Z INFO IDFW-Vertical1 IdfwEventProcessorImpl 4692 FIREWALL [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] 1/1: Process login event: [USER_SESSION_EVENT_TYPE_USER_LOGIN] user: [######\####] VM-session: ####..####/4, timestamp: 2024/09/17 21:57:18
egrep "SESSION_TYPE_CONNECT|SESSION_TYPE_LOGON|SESSION_TYPE_DISCONNECT" /var/run/log/nsx-syslog.log
2024-03-14T10:24:42.984Z nsx-opsagent[531333]: NSX 531333 - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="ctxteng" tid="531419" level="INFO"] Context: Session dump - vcUuid: ########-####-####-####-############, dfwKey: , sid: , uid: -1, type: SESSION_TYPE_DISCONNECT, user name: , domain name: , session id: 2, client ip: , ip version: 65535, timestamp: 1710411882984, group count: 0, group hash: 0
2024-03-14T10:24:47.528Z nsx-opsagent[531333]: NSX 531333 - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="ctxteng" tid="531415" level="INFO"] Context: Session dump - vcUuid: ########-####-####-####-############, dfwKey: , sid: , uid: -1, type: SESSION_TYPE_CONNECT, user name: , domain name: , session id: 2, client ip: , ip version: 65535, timestamp: 1710411887526, group count: 0, group hash: 0
2024-03-14T10:24:48.519Z nsx-opsagent[531333]: NSX 531333 - [nsx@6876 comp="nsx-esx" subcomp="opsagent" s2comp="ctxteng" tid="531418" level="INFO"] Context: Session dump - vcUuid: ########-####-####-####-############, dfwKey: S-#-#-##-##########-##########-##########-###, sid: S-#-#-##-##########-##########-##########-###, uid: -1, type: SESSION_TYPE_LOGON, user name: ####, domain name: ######, session id: 2, client ip: ##.##.##.##, ip version: 0, timestamp: 1710411888500, group count: 15, group
See the following KB for general troubleshooting on Identity Based Firewall ( IDFW ) using Guest Introspection https://knowledge.broadcom.com/external/article/377600
[logging]
log = true
vsep.level = debug
vsep.handler = file
vsep.data = c:/Windows/Temp/vsep.log