mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-07 09:58:54 +00:00
262833c86a
This commit adds logger plugin implementations for the Amazon Kinesis (https://aws.amazon.com/kinesis/) and Kinesis Firehose (https://aws.amazon.com/kinesis/firehose/) services. To support these plugins there are a number of utility classes and functions for AWS authentication, configuration and API integration. The logger plugin implementations take advantage of the BufferedLogForwarder base class for reliable buffering and batch sending of logs. In their current implementations, the logger plugins only support sending of result logs to these AWS services.
18 lines
799 B
CMake
18 lines
799 B
CMake
file(GLOB OSQUERY_LOGGER "*.cpp")
|
|
ADD_OSQUERY_LIBRARY(TRUE osquery_logger ${OSQUERY_LOGGER})
|
|
|
|
file(GLOB OSQUERY_LOGGER_PLUGINS "plugins/*.cpp")
|
|
ADD_OSQUERY_LIBRARY(FALSE osquery_logger_plugins ${OSQUERY_LOGGER_PLUGINS})
|
|
ADD_OSQUERY_LINK_ADDITIONAL("aws-cpp-sdk-kinesis")
|
|
ADD_OSQUERY_LINK_ADDITIONAL("aws-cpp-sdk-firehose")
|
|
ADD_OSQUERY_LINK_ADDITIONAL("aws-cpp-sdk-core")
|
|
|
|
file(GLOB OSQUERY_LOGGER_TESTS "tests/*.cpp")
|
|
ADD_OSQUERY_TEST(TRUE ${OSQUERY_LOGGER_TESTS})
|
|
|
|
# Keep the logger testing in the additional to test filesystem logging.
|
|
# There is a significant difference between the Glog-backed filesystem plugin
|
|
# and other, which use a Glog sink. They must be tested in tandem.
|
|
file(GLOB OSQUERY_LOGGER_PLUGIN_TESTS "plugins/tests/*.cpp")
|
|
ADD_OSQUERY_TEST(FALSE ${OSQUERY_LOGGER_PLUGIN_TESTS})
|