Title
#general
h

Hamish Earp

11/22/2022, 9:22 AM
Hello, I'm trying to figure out how to get a username string from a process_events without querying the users table at every execution. We're hitting performance issues with a user table holding a large number of entires.. sadly logged_in_users does not appear to contain any id data. Anyone have any performance tips here ?
Mike Myers

Mike Myers

11/22/2022, 5:46 PM
Hi Hamish, maybe one of the new tables that uses different process event subsystems would be helpful. But that depends on which platform you are querying. Is it Windows?
h

Hamish Earp

11/22/2022, 9:08 PM
Using Linux.. centos
Mike Myers

Mike Myers

11/23/2022, 4:36 PM
If it is a somewhat recent kernel, 5.4 or later, @alessandrogario has a PR with a new higher performance process events table https://github.com/osquery/osquery/pull/7773
a

alessandrogario

11/23/2022, 7:43 PM
We should add users and groups to that!