Solutions
Device management
Remotely manage, and protect laptops and mobile devices.
Orchestration
Automate tasks across devices, from app installs to scripts.
Software management
Inventory, patch, and manage installed software.
Infrastructure as code
See every change, undo any error, repeat every success.
Extend Fleet
Integrate your favorite tools with Fleet.
More
Device management
Remotely manage, and protect laptops and mobile devices.
Orchestration
Automate tasks across devices, from app installs to scripts.
Software management
Inventory, patch, and manage installed software.
Infrastructure as code
See every change, undo any error, repeat every success.
Extend Fleet
Integrate your favorite tools with Fleet.
Fleet uses osquery tables to query operating system, hardware, and software data. Each table provides specific data for analysis and filtering.
Apple
Linux
Windows
ChromeOS
file_contents
Allows reading an arbitrary file. The entire contents of the file are returned as a single row.
| Column | Type | Description |
|---|---|---|
| contents | text | Contents of the file |
| path | text | Path of the file to read. Required in WHERE clause |
Output the content of /etc/hosts.
SELECT * FROM file_contents WHERE path='/etc/hosts';See also file_lines for reading a file line by line.