x-pack/osquerybeat/ext/osquery-extension/docs/tables/elastic_host_groups.md
% This file is generated! See ext/osquery-extension/cmd/gentables.
Host system group information from /etc/group (e.g. when running in a container with hostfs mounted)
Query group information from the host system's /etc/group file when running in a container. Reads from the path given by hostfs (default /hostfs); set ELASTIC_OSQUERY_HOSTFS to override. Use for container security auditing, host inventory, and compliance checks.
| Column | Type | Description |
|---|---|---|
gid | BIGINT | Unsigned int64 group ID |
gid_signed | BIGINT | Signed int64 version of gid |
groupname | TEXT | Canonical local group name |
SELECT * FROM elastic_host_groups;
SELECT * FROM elastic_host_groups WHERE groupname = 'docker';
SELECT * FROM elastic_host_groups WHERE gid = 0;
SELECT groupname, gid FROM elastic_host_groups WHERE gid < 1000 ORDER BY gid;
host_usersgroups