Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions packages/osquery/_dev/build/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# OSQuery Integration

The OSQuery integration collects and decodes the result logs written by
[`osqueryd`](https://osquery.readthedocs.io/en/latest/introduction/using-osqueryd/)
in the JSON format. To set up `osqueryd` follow the osquery installation
instructions for your operating system and configure the `filesystem` logging
driver (the default). Make sure UTC timestamps are enabled.

## Compatibility

The OSQuery integration was tested with logs from osquery version 2.10.2.
Since the results are written in the JSON format, it is likely that this module
works with any version of osquery.

This module is available on Linux, macOS, and Windows.

## Logs

### OSQuery result

This is the OSQuery `result` dataset.

{{event "result"}}

{{fields "result"}}
5 changes: 5 additions & 0 deletions packages/osquery/_dev/deploy/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM alpine

COPY ./osquery.log .

ENTRYPOINT [ "/bin/sh" ]
8 changes: 8 additions & 0 deletions packages/osquery/_dev/deploy/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '2.3'
services:
osquery:
tty: true
build: .
volumes:
- ${SERVICE_LOGS_DIR}:/var/log
command: -c "cp /osquery.log /var/log"
10 changes: 10 additions & 0 deletions packages/osquery/_dev/deploy/docker/osquery.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{"name":"pack_osquery-monitoring_schedule","hostIdentifier":"ubuntu-xenial","calendarTime":"Mon Jan 8 14:51:55 2018 UTC","unixTime":"1515423115","epoch":"0","counter":"0","decorations":{"host_uuid":"72E1287B-D1BC-4FC6-B9D8-64F4352776A9","username":"ubuntu"},"columns":{"average_memory":"0","avg_system_time":"0","avg_user_time":"0","executions":"38","interval":"60","last_executed":"1515423094","name":"pack_ossec-rootkit_55808.a_worm","output_size":"0","wall_time":"0"},"action":"added"}
{"name":"pack_osquery-monitoring_schedule","hostIdentifier":"ubuntu-xenial","calendarTime":"Mon Jan 8 14:51:55 2018 UTC","unixTime":"1515423115","epoch":"0","counter":"0","decorations":{"host_uuid":"72E1287B-D1BC-4FC6-B9D8-64F4352776A9","username":"ubuntu"},"columns":{"average_memory":"0","avg_system_time":"0","avg_user_time":"0","executions":"40","interval":"60","last_executed":"1515423113","name":"pack_ossec-rootkit_adore_rootkit","output_size":"0","wall_time":"0"},"action":"added"}
{"name":"pack_osquery-monitoring_schedule","hostIdentifier":"ubuntu-xenial","calendarTime":"Mon Jan 8 14:51:55 2018 UTC","unixTime":"1515423115","epoch":"0","counter":"0","decorations":{"host_uuid":"72E1287B-D1BC-4FC6-B9D8-64F4352776A9","username":"ubuntu"},"columns":{"average_memory":"0","avg_system_time":"0","avg_user_time":"0","executions":"37","interval":"60","last_executed":"1515423092","name":"pack_ossec-rootkit_adore_worm","output_size":"0","wall_time":"0"},"action":"added"}
{"name":"pack_osquery-monitoring_schedule","hostIdentifier":"ubuntu-xenial","calendarTime":"Mon Jan 8 14:51:55 2018 UTC","unixTime":"1515423115","epoch":"0","counter":"0","decorations":{"host_uuid":"72E1287B-D1BC-4FC6-B9D8-64F4352776A9","username":"ubuntu"},"columns":{"average_memory":"0","avg_system_time":"0","avg_user_time":"0","executions":"41","interval":"60","last_executed":"1515423065","name":"pack_ossec-rootkit_ajakit_rootkit","output_size":"0","wall_time":"0"},"action":"added"}
{"name":"pack_osquery-monitoring_schedule","hostIdentifier":"ubuntu-xenial","calendarTime":"Mon Jan 8 14:51:55 2018 UTC","unixTime":"1515423115","epoch":"0","counter":"0","decorations":{"host_uuid":"72E1287B-D1BC-4FC6-B9D8-64F4352776A9","username":"ubuntu"},"columns":{"average_memory":"0","avg_system_time":"0","avg_user_time":"0","executions":"40","interval":"60","last_executed":"1515423075","name":"pack_ossec-rootkit_anonoiyng_rootkit","output_size":"0","wall_time":"0"},"action":"added"}
{"name":"pack_osquery-monitoring_schedule","hostIdentifier":"ubuntu-xenial","calendarTime":"Mon Jan 8 14:51:55 2018 UTC","unixTime":"1515423115","epoch":"0","counter":"0","decorations":{"host_uuid":"72E1287B-D1BC-4FC6-B9D8-64F4352776A9","username":"ubuntu"},"columns":{"average_memory":"0","avg_system_time":"0","avg_user_time":"0","executions":"43","interval":"60","last_executed":"1515423081","name":"pack_ossec-rootkit_apa_kit","output_size":"0","wall_time":"0"},"action":"added"}
{"name":"pack_osquery-monitoring_schedule","hostIdentifier":"ubuntu-xenial","calendarTime":"Mon Jan 8 14:51:55 2018 UTC","unixTime":"1515423115","epoch":"0","counter":"0","decorations":{"host_uuid":"72E1287B-D1BC-4FC6-B9D8-64F4352776A9","username":"ubuntu"},"columns":{"average_memory":"0","avg_system_time":"0","avg_user_time":"0","executions":"40","interval":"60","last_executed":"1515423113","name":"pack_ossec-rootkit_ark_rootkit","output_size":"0","wall_time":"0"},"action":"added"}
{"name":"pack_osquery-monitoring_schedule","hostIdentifier":"ubuntu-xenial","calendarTime":"Mon Jan 8 14:51:55 2018 UTC","unixTime":"1515423115","epoch":"0","counter":"0","decorations":{"host_uuid":"72E1287B-D1BC-4FC6-B9D8-64F4352776A9","username":"ubuntu"},"columns":{"average_memory":"0","avg_system_time":"0","avg_user_time":"0","executions":"39","interval":"60","last_executed":"1515423086","name":"pack_ossec-rootkit_bash_door","output_size":"0","wall_time":"0"},"action":"added"}
{"name":"pack_osquery-monitoring_schedule","hostIdentifier":"ubuntu-xenial","calendarTime":"Mon Jan 8 14:51:55 2018 UTC","unixTime":"1515423115","epoch":"0","counter":"0","decorations":{"host_uuid":"72E1287B-D1BC-4FC6-B9D8-64F4352776A9","username":"ubuntu"},"columns":{"average_memory":"0","avg_system_time":"0","avg_user_time":"0","executions":"38","interval":"60","last_executed":"1515423094","name":"pack_ossec-rootkit_beastkit_rootkit","output_size":"0","wall_time":"0"},"action":"added"}
{"name":"pack_osquery-monitoring_schedule","hostIdentifier":"ubuntu-xenial","calendarTime":"Mon Jan 8 14:51:55 2018 UTC","unixTime":"1515423115","epoch":"0","counter":"0","decorations":{"host_uuid":"72E1287B-D1BC-4FC6-B9D8-64F4352776A9","username":"ubuntu"},"columns":{"average_memory":"0","avg_system_time":"0","avg_user_time":"0","executions":"45","interval":"60","last_executed":"1515423112","name":"pack_ossec-rootkit_bmbl_rootkit","output_size":"0","wall_time":"0"},"action":"added"}
Loading