Title
#general
z

Zach Zeid

04/21/2020, 5:43 PM
interesting. i'm asking because I'm seeing incomplete results from
select * from shell_history;
I would've presumed it'd be able to get the history for all users. I haven't seen anything from today
zwass

zwass

04/21/2020, 5:46 PM
You need to
SELECT * FROM users JOIN shell_history USING (uid)
z

Zach Zeid

04/21/2020, 5:49 PM
yeah I've done that too, same thing. I enabled historydatetime in the bash_profile of the user, and I get the last unix time stamp from yesterday (1587415304)
CptOfEvilMinions

CptOfEvilMinions

04/22/2020, 3:25 PM
@zaibimed Osquery reads from all files with the following name convention:
.*_history
. So if your shell creates a file named
.bash_hst
or just
.history
it will not work.