mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +00:00
4784217b57
Updating documentation of Fleetd tables as part of the oncall duty. Updating the json used by Fleet using the following command: ```sh cd website ./node_modules/sails/bin/sails.js run generate-merged-schema ``` Samples: ![Screenshot 2023-02-20 at 17 20 55](https://user-images.githubusercontent.com/2073526/220192112-69a116e4-badb-4328-92d3-9a2a6f8657fe.png) ![Screenshot 2023-02-20 at 17 21 09](https://user-images.githubusercontent.com/2073526/220192117-dfa06c69-2166-47d4-99c3-e108911e2084.png) @mikermcneil @eashaw: `generate-merged-schema` generates a different output every time it's executed. Guess: It seems it should sort the output lexicograhically?
25 lines
728 B
YAML
25 lines
728 B
YAML
name: file_lines
|
|
notes: This table is not a core osquery table. It is included as part of [Fleetd](https://fleetdm.com/docs/using-fleet/orbit), the osquery manager from Fleet. Fleetd can be built with [fleetctl](https://fleetdm.com/docs/using-fleet/adding-hosts#osquery-installer).
|
|
description: Allows reading an arbitrary file.
|
|
platforms:
|
|
- darwin
|
|
- windows
|
|
- linux
|
|
evented: false
|
|
examples: >-
|
|
Output the content of `/etc/hosts` line by line.
|
|
|
|
```
|
|
|
|
SELECT * FROM file_lines WHERE path='/etc/hosts';
|
|
|
|
```
|
|
columns:
|
|
- name: path
|
|
description: Path of the file to read.
|
|
required: true
|
|
type: text
|
|
- name: line
|
|
description: Output of the file, line by line.
|
|
required: false
|
|
type: text |