utility to show logins like sftp

From: void <void_at_f-m.fm>
Date: Tue, 03 Jan 2023 14:18:19 UTC
I'm looking for something that would show logins with "non-interactive"
shells like sftp over a configurable time period, but have drawn a blank.
Thought it'd be in base? 

Ideally the output would be something like who(1) and lastlogin(8)

tia,
--