osquery-1/specs/posix/process_envs.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

15 lines
513 B
Plaintext

table_name("process_envs")
description("A key/value table of environment variables for each process.")
schema([
Column("pid", INTEGER, "Process (or thread) ID", index=True),
Column("key", TEXT, "Environment variable name"),
Column("value", TEXT, "Environment variable value"),
])
implementation("system/processes@genProcessEnvs")
examples([
"select * from process_envs where pid = 1",
'''select pe.*
from process_envs pe, (select * from processes limit 10) p
where p.pid = pe.pid;'''
])