


"command": "osqueryi -json -pack it-compliance", This pack defines 32 different queries, for all sorts of things: Let’s take the it-compliance pack as an example - on a Linux system Osquery installs it at /user/share/osquery/packs/nf. Hey Osquery peeps! If this sounds interesting to you, find me on the Sensu Community Slack or poke me on Twitter so we can have a conversation. Though, I’d love to talk to someone about building an osqueryd integration to send output into the Sensu event pipeline for queries scheduled and executed by osqueryd. You can also run them interactively with osqueryi inside your Sensu check hooks, which may be more advantageous than osqueryd scheduling in some situations, as you can capture extensive system state context in a just-in-time manner when a check fails. You can schedule these packs to run at certain times using osqueryd and have the results shipped to a supported log aggregator. Out-of-the box Osquery comes with some interesting pre-defined query packs, including: hardware-monitoring, incident-response, and it-compliance packs (just to name a few). When I need to run multiple queries, I find it best to define a dedicated query pack, which would make it as easy as calling osqueryi -pack packname. You do get the small benefit of JSON-like output but you’re still chaining shell commands together.
OSQUERY PACKS SERIES
How is this easier than running a series of shell commands chained together? Admittedly, it’s not that much easier. That hook command may look pretty complicated with two different SQL statements run back to back. Remove that file to return back to zero return status. To have check-file-exists.rb return a non-zero status and cause the hook command to run, create the file /tmp/WARNING. "command": "osqueryi -json \"SELECT * from mounts where path=':::db.disk.mount|/:::' \" osqueryi -json \"select * from listening_ports \" ", Here’s a toy Osquery check hook for the check-file-exists.rb command provided from sensu-plugins-filesystem-checks: When used as a check hook, Osquery results give a useful system snapshot to pass along as part of a check result. What does this have to do with Sensu? These queries are great mechanisms to add heaps of context into your Sensu checks via check hooks.
OSQUERY PACKS CODE
Osquery’s SQL syntax is a huge time saver and cuts down on the amount of brittle glue code I have to maintain. Without Osquery, I would most likely build my own shell script glue to parse the output of multiple tools like netstat, ps, pwdx, and lsof. On Linux, sudo is required, as access to some of the information - like the listening port process id - is restricted. That’s a SQL expression for listing process information associated with known bound listening ports. | fleetdm.Sudo osqueryi -json "SELECT DISTINCT process.name, listening.port, listening.address, listening,path, process.pid, process.cmdline, process.cwd, process.root FROM processes AS process JOIN listening_ports AS listening ON process.pid = listening.pid " Today Fleetdm share some exciting news: Fleetdm has received a $5 million seed round of funding from CRV, Mike Arpaia, Nico Waisman of Lyft, Greg Martin of Sumo Logic, Jack Naglieri of Panther Labs, Ezra Olubi of Stripe, and Sid Sijbrandij to accelerate its progress. | Fleetdm received financing of $5M in seed round of funding on Jan 20th 22'. | Fleetdm launches “Show query” optionįleetdm added a “Show query” option to the live query results view. | Fleetdm launches Identity Provider-Initiated Single Sign-Onįleetdm has introduced Identity Provider-Initiated (IdP-initiated) Single Sign-On (SSO) as a configurable option in Fleet. | Fleetdm launches Admin, Maintainerįleetdm is pleased to announce the introduction of the Admin, Maintainer, and Observer users roles in Fleet! | Fleetdm received financing of $20M in Series A round on Apr 28th 22'.įleet, a startup offering a service that helps to track and manage enterprise devices like laptops, today announced that it raised $20 million in a Series A round led by CRV with participation from angel investors including GitLab CEO Sid Sijbrandij. In the previous release of Fleet 4.1.0, Fleetdm introduced the Schedule feature that lets you add queries which are executed on your devices at regular intervals without having to understand osquery packs. It’s been another exciting month at Fleet, and Fleetdm is proud to announce the release of Fleet 4.5.0, which brings with it new and improved features for the osquery and Fleet community. Fleetdm launched Fleet 4.5.0 on Nov 19th 21'.
