Skip to content
This repository has been archived by the owner on Aug 28, 2018. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamgilbert committed Aug 15, 2015
1 parent 42f2a9b commit 86357d9
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

*.pkg
20 changes: 20 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
USE_PKGBUILD=1
include /usr/local/share/luggage/luggage.make
PACKAGE_VERSION=0.0.1
TITLE=sal-osquery-conf
PACKAGE_NAME=${TITLE}
REVERSE_DOMAIN=com.github.salopensource
PAYLOAD=\
pack-logging \
pack-osquery \
pack-Library-LaunchDaemons-com.facebook.osqueryd.plist

pack-logging:
@sudo mkdir -p ${WORK_D}/private/var/log/osquery/
@sudo mkdir -p ${WORK_D}/private/etc/newsyslog.d/
@sudo ${INSTALL} -m 644 -g wheel -o root "com.facebook.osqueryd.conf" ${WORK_D}/private/etc/newsyslog.d

pack-osquery:
@sudo mkdir -p ${WORK_D}/private/var/osquery/osquery.conf.d
@sudo ${INSTALL} -m 644 -g wheel -o root "osquery.conf" ${WORK_D}/private/var/osquery
@sudo ${INSTALL} -m 644 -g wheel -o root "sal.conf" ${WORK_D}/private/var/osquery/osquery.conf.d
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# osquery-conf
A LaunchDaemon and configuration file for using osquery with Sal

## Usage
* Download [The Lugagge](https://github.com/unixorn/luggage)
* ``cd`` into the cloned directory
* ``make pkg``
3 changes: 3 additions & 0 deletions com.facebook.osqueryd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
# Keep this small so we can ship them easier
/var/log/osquery/osqueryd.results.log root:wheel 600 50 50 * NZ
23 changes: 23 additions & 0 deletions com.facebook.osqueryd.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>KeepAlive</key>
<true/>
<key>Disabled</key>
<false/>
<key>OnDemand</key>
<false/>
<key>Label</key>
<string>com.facebook.osqueryd</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/osqueryd</string>
<string>--log_result_events=false</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>ThrottleInterval</key>
<integer>60</integer>
</dict>
</plist>
13 changes: 13 additions & 0 deletions osquery.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"options": {
"host_identifier": "uuid",
"schedule_splay_percent": 10
},

"schedule": {
},


"packs": {
}
}
7 changes: 7 additions & 0 deletions sal.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"options": {},
"schedule": {},
"packs": {
"sal": "/var/osquery/sal_packs/sal.conf"
}
}

0 comments on commit 86357d9

Please sign in to comment.