mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 02:18:53 +00:00
36 lines
812 B
C++
36 lines
812 B
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#include <boost/thread.hpp>
|
|
|
|
#include <glog/logging.h>
|
|
|
|
#include "osquery/config.h"
|
|
#include "osquery/config/plugin.h"
|
|
#include "osquery/core.h"
|
|
#include "osquery/logger.h"
|
|
#include "osquery/logger/plugin.h"
|
|
#include "osquery/registry.h"
|
|
#include "osquery/scheduler.h"
|
|
|
|
int main(int argc, char* argv[]) {
|
|
osquery::core::initOsquery(argc, argv);
|
|
|
|
LOG(INFO) << "Listing all plugins";
|
|
|
|
LOG(INFO) << "Logger plugins:";
|
|
for (const auto& it : REGISTERED_LOGGER_PLUGINS) {
|
|
LOG(INFO) << " - " << it.first;
|
|
}
|
|
|
|
LOG(INFO) << "Config plugins:";
|
|
for (const auto& it : REGISTERED_CONFIG_PLUGINS) {
|
|
LOG(INFO) << " - " << it.first;
|
|
}
|
|
|
|
boost::thread scheduler_thread(osquery::scheduler::initialize);
|
|
|
|
scheduler_thread.join();
|
|
|
|
return 0;
|
|
}
|