mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
d0cfa7bbb3
* 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
22 lines
681 B
YAML
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 |