- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Host Check-in to Sourcetype

itsmevic
Communicator
03-23-2020
08:46 AM
Hi,
We have a sourcetype type called "WinHostMon" and many hosts report into it. Does anyone have any SPL laying around that would allow me to query the last time a host checked in with that particular Sourcetype?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

woodcock
Esteemed Legend
03-23-2020
09:53 AM
Like this:
| tstats max(_indextime) AS time_event_was_indexed max(_time) AS time_event_happened WHERE index="*" AND sourcetype="WinHostMon" BY host
| sort 1 - time_event_was_indexed
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dindu
Contributor
03-23-2020
09:16 AM
Hi,
Try the below SPL.Modify based on your need.
|tstats count where sourcetype=WinHostMon by host,_time,sourcetype
|table host,sourcetype,_time
|sort - _time
|head 1
