Skip to content

groob/osquery-condition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published