Splunk Search

How to get the Vcenter each VM since poweroff state,

sivajiy
New Member

Below query i am able to get the snap date. i need to capture correct date and timing.

index=vmware-inv sourcetype="vmware:inv:vm" host="*****" 
| dedup moid sortby time 
| spath changeSet.summary.runtime.powerState output=powerState 
| spath changeSet.name output=name 
| makemv delim=" " time 
| eval time=mvindex(time,0) 
| stats latest(powerState) as PowerState by moid,name,time
| search PowerState=PoweredOff 
| sort time
0 Karma

richgalloway
SplunkTrust
SplunkTrust

Please share a sample event with private data hidden and identify the field(s) you wish to capture.

---
If this reply helps you, Karma would be appreciated.
0 Karma

sivajiy
New Member

i am getting the out put like below but this is capturing the first snapshot time, but i need out put when it's poweredoff
vm-***** sevm-KMS-27 2013-04-17 poweredOff
vm-***** V11-2-L1Con6 2015-03-03 poweredOff

0 Karma

richgalloway
SplunkTrust
SplunkTrust

I see "poweredOff". Isn't that what you want? If not, please share the raw events and what you want from them.

---
If this reply helps you, Karma would be appreciated.
0 Karma

sivajiy
New Member

Can someone help me on this !!!!

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...