You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The vCenter parser does not extract the hostname of the vCenter Syslog.
To Reproduce
Steps to reproduce the behavior:
Execute KQL search vCenterV2
See error
Expected behavior
Hostname (in the example below, VDIVCSA-P-01-01) should be extracted with a field name "Hostname"
Screenshots
Desktop (please complete the following information):
OS: Windows 11
Browser: Google Chrome
Version: 131.0.6778.205
Additional context
We have had a modified version of the parser provided from issue#11542. If any modifications are required, please use the latest version of the modified parser from that issue.
Modified Parser Code
let vCenter_Login =() {
vcenter_CL
| where Message has ("UserLoginSessionEvent")
| parse Message with * "Event [" EventId:string "] [1-1] [" EventTime:datetime "] [" EventType:string "] [" EventSeverity "]" * "[User " DomainName:string "\\" Username:string "@" SourceIP " logged in as " UserAgent:string "]" *
| extend DomainName = iff(isnull(DomainName), "", DomainName)
| extend Username = iff(isnull(Username), DomainName, Username)
| parse Message with * "Event [" EventId:string "] [1-1] [" EventTime:datetime "] [" EventType:string "] [" EventSeverity "]" * "[User " Username:string "@" SourceIP " logged in as " UserAgent:string "]" *
| extend Username = iff(isnull(Username), DomainName, Username)
};
let vCenter_Logout =() {
vcenter_CL
| where Message has ("UserLogoutSessionEvent")
| parse Message with * "Event [" EventId:string "] [1-1] [" EventTime:datetime "] [" EventType:string "] [" EventSeverity "]" * "[User " DomainName:string "\\" Username:string "@" SourceIP " logged out (login time:" LoginTime:string ", number of API invocations: " APIInvocationCount:dynamic ", user agent:" UserAgent:string ")]" *
| extend DomainName = iff(isnull(DomainName), "", DomainName)
| extend Username = iff(isnull(Username), DomainName, Username)
| parse Message with * "Event [" EventId:string "] [1-1] [" EventTime:datetime "] [" EventType:string "] [" EventSeverity "]" * "[User " Username:string "@" SourceIP " logged out (login time:" LoginTime:string ", number of API invocations: " APIInvocationCount:dynamic ", user agent:" UserAgent:string ")]" *
| extend Username = iff(isnull(Username), DomainName, Username)
};
let vCenter_Role=() {
vcenter_CL
| where Message has_any("RoleAddedEvent","RoleRemovedEvent")
| parse Message with * " " * " " Hostname:string "vpxd" * "Event [" EventId:string "] [1-1] [" EventTime:datetime "] [" EventType:string "] [" EventSeverity:string "]" * "[New role " RoleName:string " " Operation:string "]" *
};
let vCenter_RoleModified=() {
vcenter_CL
| where Message has ("RoleUpdatedEvent")
| parse Message with * " " * " " Hostname:string "vpxd" * "Event [" EventId:string "] [1-1] [" EventTime:datetime "] [" EventType:string "] [" EventSeverity:string "]" * "Previous name: " OldRoleName:string ", new name "NewRoleName:string " Added privileges: " AddedPriviledges:string " Removed privileges: " RemovedPriviledges:string "]" *
};
union vCenter_Login,vCenter_Logout,vCenter_Role,vCenter_RoleModified
| extend ClientIP = SourceIP
Syslog Message Example
Jan 8 11:56:13 VDIVCSA-P-01-01 vpxd[7058] Event [50736315] [1-1] [2025-01-08T11:56:13.977736Z] [vim.event.UserLogoutSessionEvent] [info] [VDIP.LOCAL\Administrator] [] [50736315] [User VDIP.LOCAL\[email protected] logged out (login time: Wednesday, 08 January, 2025 11:56:13 AM, number of API invocations: 1, user agent: Apache-CXF/3.4.10)]
The text was updated successfully, but these errors were encountered:
Describe the bug
The vCenter parser does not extract the hostname of the vCenter Syslog.
To Reproduce
Steps to reproduce the behavior:
vCenterV2
Expected behavior
Hostname (in the example below, VDIVCSA-P-01-01) should be extracted with a field name "Hostname"
Screenshots
Desktop (please complete the following information):
Additional context
We have had a modified version of the parser provided from issue#11542. If any modifications are required, please use the latest version of the modified parser from that issue.
Modified Parser Code
Syslog Message Example
The text was updated successfully, but these errors were encountered: