mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 17:28:54 +00:00
7d9ca2cee7
- Create `/configuration-files/` directory inside of `/1-Using-Fleet` directory. This directory contains example Fleet configuration files in yaml format. Replaces the `/examples` directory. - Create `/standard-query-library/` directory inside of `/1-Using-Fleet` directory. This directory contains the new `standard-query-library.yml`. This file will act as the source of community contributions to the standard query library. - Edit references to `/examples` directory
70 lines
2.1 KiB
YAML
70 lines
2.1 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: options
|
|
spec:
|
|
config:
|
|
options:
|
|
distributed_interval: 3
|
|
distributed_tls_max_attempts: 3
|
|
logger_plugin: tls
|
|
logger_tls_endpoint: /api/v1/osquery/log
|
|
logger_tls_period: 10
|
|
decorators:
|
|
load:
|
|
- "SELECT version FROM osquery_info"
|
|
- "SELECT uuid AS host_uuid FROM system_info"
|
|
always:
|
|
- "SELECT user AS username FROM logged_in_users WHERE user <> '' ORDER BY time LIMIT 1"
|
|
interval:
|
|
3600: "SELECT total_seconds AS uptime FROM uptime"
|
|
overrides:
|
|
# Note configs in overrides take precedence over the default config defined
|
|
# under the config key above. Hosts receive overrides based on the platform
|
|
# returned by `SELECT platform FROM os_version`. In this example, the base
|
|
# config would be used for Windows and CentOS hosts, while Mac and Ubuntu
|
|
# hosts would receive their respective overrides.
|
|
platforms:
|
|
darwin:
|
|
options:
|
|
distributed_interval: 10
|
|
distributed_tls_max_attempts: 10
|
|
logger_plugin: tls
|
|
logger_tls_endpoint: /api/v1/osquery/log
|
|
logger_tls_period: 300
|
|
disable_tables: chrome_extensions
|
|
docker_socket: /var/run/docker.sock
|
|
file_paths:
|
|
users:
|
|
- /Users/%/Library/%%
|
|
- /Users/%/Documents/%%
|
|
etc:
|
|
- /etc/%%
|
|
ubuntu:
|
|
options:
|
|
distributed_interval: 10
|
|
distributed_tls_max_attempts: 3
|
|
logger_plugin: tls
|
|
logger_tls_endpoint: /api/v1/osquery/log
|
|
logger_tls_period: 60
|
|
schedule_timeout: 60
|
|
docker_socket: /etc/run/docker.sock
|
|
file_paths:
|
|
homes:
|
|
- /root/.ssh/%%
|
|
- /home/%/.ssh/%%
|
|
etc:
|
|
- /etc/%%
|
|
tmp:
|
|
- /tmp/%%
|
|
exclude_paths:
|
|
homes:
|
|
- /home/not_to_monitor/.ssh/%%
|
|
tmp:
|
|
- /tmp/too_many_events/
|
|
decorators:
|
|
load:
|
|
- "SELECT * FROM cpuid"
|
|
- "SELECT * FROM docker_info"
|
|
interval:
|
|
3600: "SELECT total_seconds AS uptime FROM uptime"
|