fleet/schema/tables/file_lines.yml
Guillaume Ross d0cfa7bbb3
Add MacAdmins extension tables to schema (#8377)
* Adding tables from the macadmins extension pack

Part 1!

* Adding the 2nd set of macadmins extension tables

Will review in another commit tomorrow before submitting PR

* Fixing typos and example queries
2022-10-21 13:49:11 +00:00

22 lines
681 B
YAML

name: file_lines
notes: Requires [macadmins-extension](https://github.com/macadmins/osquery-extension/), which is included by default on osquery packages 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