Hello all, I'm currently working on figuring how to create a list of as mentioned in the title with the last seen field.
This field will show when the host was last seen in our logs.
It's kind of similar to the solution below but will only list last seen time for all hosts.
Thank you in advance for your assistance.
https://answers.splunk.com/answers/332987/how-to-search-the-list-of-devices-that-have-sent-l.html
Like this?
| tstats latest(_time) as latest where (index=* earliest=-1mon@mon latest=-0h@h) by index host source sourcetype
| convert ctime(latest)
Like this?
| tstats latest(_time) as latest where (index=* earliest=-1mon@mon latest=-0h@h) by index host source sourcetype
| convert ctime(latest)
Thank you so much Jaime! Worked out perfectly and extremely fast search.