The Wayback Machine - https://web.archive.org/web/20201014132929/https://github.com/groob/osquery-condition
Skip to content
master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Use osqueryd to update the Munki ConditionalItems.plist. You can run the binary as a munki preflight script. This utility assumes osquery is already running in your environment.

Usage

Usage of ./osquery-condition:
  -queries string
    	path to line delimited query file
  -socket string
    	path to osqueryd socket (default "/var/osquery/osquery.em")

Example:

sudo ./osquery-condition -queries ./sample_queries
sudo cat '/Library/Managed Installs/ConditionalItems.plist'

Creating queries

To create queries for osqueryd to run, write them in a text file, one line per query. Your queries are expected to return key/value pairs as results. For example, select * from system_info; would return a list of key/values. When updating the ConditionalItems.plist file, all the keys will be prefixed with osquery_.

About

No description or website provided.

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.