I want to get last seen of host with dbconnect, a...
# fleet
n
I want to get last seen of host with dbconnect, and I cant find that field, does someone know where is stored?
j
host_seen_times
?
n
there is not such filed at host table
k
host_seen_times
is a table in the database.
n
oh oops thanks
k
Easy one to miss 🙂 Just to add a little flavor,
host_seen_times.seen_time
is updated every time a host communicates with the Fleet server for any reason.
As a side note, I'd recommend pulling information through the API rather than from the database directly. We make frequent changes to the database structure but the API generally stays static (and we make some noise when things change there).