fleet/schema/tables/file_lines.yml

25 lines
728 B
YAML
Raw Normal View History

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