Splunk Enterprise

about vm

dall
Path Finder

from logs how i ll get number of vms present in that server

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Can you provide a sample of the logs you are talking about?

0 Karma

dall
Path Finder

<166>2020-09-15T07:35:03.809Z  Hostd: info hostd[2100274] [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/5b33d479-61618708-d3cd-d094665b5e96/rptauto-w10-spc/rptauto-w10-spc.vmx] Send config update invoked

<164>2020-09-15T12:26:54.076Z Hostd: warning hostd[2099584] [Originator@6876 sub=Hostsvc.VFlashManager opID=1bcbeabf user=root] GetVFlashResourceRuntimeInfo: vFlash is not licensed, not supported

<164>2020-09-15T12:26:45.410Z  Hostd: warning hostd[2100273] [Originator@6876 sub=VigorStatsProvider(000000848d91e700)] AddVirtualMachine: VM '62' already registered

<164>2020-09-15T12:26:45.409Z Hostd: warning hostd[2100273] [Originator@6876 sub=VigorStatsProvider(000000848d91e700)] AddVirtualMachine: VM '119' already registered

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Hi @dall 

Thanks. So what part of these log entries identifies the vm? Is it Originator@xxx, where xxx is different for each vm? What identifies the server? is it hostd:[yyy] where yyy is the server id? If so, you can extract these two from the logs and use stats to count them

| rex field=_raw "hostd\[(?<server>[^\]]*)\]\s\[Originator\@(?<vm>[^\s]*)"
| stats dc(vm) as vms by server

 

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...