osquery-1/specs/posix/last.table
artemdinaburg d4a3fe2452 Windows Daemon/Shell: Initial support for Windows tables (#2182)
Preparation for Windows Tables. We need a Windows process table so that the daemon will run
2016-06-23 16:04:11 -07:00

13 lines
454 B
Plaintext

table_name("last")
description("System logins and logouts.")
schema([
Column("username", TEXT, "Entry username"),
Column("tty", TEXT, "Entry terminal"),
Column("pid", INTEGER, "Process (or thread) ID"),
Column("type", INTEGER, "Entry type, according to ut_type types (utmp.h)"),
Column("time", INTEGER, "Entry timestamp"),
Column("host", TEXT, "Entry hostname"),
])
attributes(cacheable=True)
implementation("last@genLastAccess")