Skip to content

Osquery

services.osquery.enable

Whether to enable osqueryd daemon. Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/osquery.nix

services.osquery.flags

Attribute set of flag names and values to be written to the osqueryd flagfile. For more information, refer to https://osquery.readthedocs.io/en/stable/installation/cli-flags.

Type: attribute set of string

Default

{ }

Example

{config_refresh = "10";}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/osquery.nix

services.osquery.flags.database_path

Path used for the database file. Type: path

Default

"/var/lib/osquery/osquery.db"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/osquery.nix

services.osquery.flags.logger_path

Base directory used for logging. Type: path

Default

"/var/log/osquery"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/osquery.nix

services.osquery.flags.pidfile

Path used for pid file. Type: path

Default

"/run/osquery/osqueryd.pid"

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/osquery.nix

services.osquery.settings

Configuration to be written to the osqueryd JSON configuration file. To understand the configuration format, refer to https://osquery.readthedocs.io/en/stable/deployment/configuration/#configuration-components.

Type: attribute set

Default

{ }

Example

{options = {utc = false;};}

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/services/monitoring/osquery.nix