{"id":2099,"date":"2019-01-19T16:36:19","date_gmt":"2019-01-19T13:36:19","guid":{"rendered":"http:\/\/kifarunix.com\/?p=2099"},"modified":"2024-03-11T22:03:05","modified_gmt":"2024-03-11T19:03:05","slug":"how-to-install-osquery-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/how-to-install-osquery-on-ubuntu-18-04\/","title":{"rendered":"How to Install Osquery on Ubuntu 18.04"},"content":{"rendered":"\n

In this guide, we are going to learn how to install osquery on Ubuntu 18.04. Osquery<\/a> is an opensource tool that queries an operating system as if it were a relational database. It leverage SQL-like queries to gather Operating System information for performance, security, compliance audit analysis. It runs on multiple platforms such as Linux, FreeBSD, MacOS, Windows systems.<\/p>\n\n\n\n

Installing Osquery on Ubuntu 18.04<\/h2>\n\n\n\n

The default Ubuntu repositories does not contain the osquery package. However, osquery publishes an apt repository for each stable release. To add osquery apt repository to Ubuntu 18.04, create the osquery source list;<\/p>\n\n\n\n

echo \"deb [arch=amd64] https:\/\/pkg.osquery.io\/deb deb main\" | sudo tee \/etc\/apt\/sources.list.d\/osquery.list<\/pre>\n\n\n\n

Import the repository signing keys<\/p>\n\n\n\n

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1484120AC4E9F8A1A577AEEE97A80C63C9D8B80B<\/pre>\n\n\n\n

Update your system packages<\/p>\n\n\n\n

sudo apt update<\/pre>\n\n\n\n

Once the update is done, install osquery.<\/p>\n\n\n\n

sudo apt install osquery<\/pre>\n\n\n\n

Components of osquery<\/h2>\n\n\n\n

Osquery package installs three basic components;<\/p>\n\n\n\n