fleet/docs/01-Using-Fleet/standard-query-library
Omereshone Kelvin 5a2ed6f395
Add 3 queries to the standard query library (#3138)
Queries:
- Get applications hogging memory
- Get Mac and Linux machines with unencrypted primary disks
- Get servers with root login in the last 24 hours
2021-12-03 17:13:41 -05:00
..
README.md fix code block and indentation (#2672) 2021-10-28 10:24:52 -05:00
standard-query-library.yml Add 3 queries to the standard query library (#3138) 2021-12-03 17:13:41 -05:00

Standard query library

Fleet's standard query library includes a growing collection of useful queries for organizations deploying Fleet and osquery.

Importing the queries in Fleet

After cloning the fleetdm/fleet repo, import the queries using fleetctl:

fleetctl apply -f docs/01-Using-Fleet/standard-query-library/standard-query-library.yml

Contributors

Want to add your own query?

  1. Please copy the following yaml section and paste it at the bottom of the standard-query-library.yml file.
---
apiVersion: v1
kind: query
spec:
  name: What is your query called? Please use a human readable query name.
  platforms: What operating systems support your query? This can usually be determined by the osquery tables included in your query. Heading to the https://osquery.io/schema webpage to see which operating systems are supported by the tables you include.
  description: Describe your query. What does information does your query reveal?
  query: Insert query here
  purpose: What is the goal of running your query? Ex. Detection
  remediation: Are there any remediation steps to resolve the detection triggered by your query? If not, insert "N/A."
  contributors: zwass,mike-j-thomas
  1. Replace each field and submit a pull request to the fleetdm/fleet GitHub repository.

For instructions on submitting pull requests to Fleet check out the Committing Changes section in the Contributors documentation.

Additional resources

Listed below are great resources that contain additional queries.