2014-07-31 00:35:19 +00:00
|
|
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
|
|
|
|
#include <boost/thread.hpp>
|
|
|
|
|
2014-08-21 21:35:51 +00:00
|
|
|
#include <glog/logging.h>
|
|
|
|
|
|
|
|
#include "osquery/config.h"
|
|
|
|
#include "osquery/config/plugin.h"
|
2014-08-05 23:13:55 +00:00
|
|
|
#include "osquery/core.h"
|
2014-08-21 21:35:51 +00:00
|
|
|
#include "osquery/logger.h"
|
|
|
|
#include "osquery/logger/plugin.h"
|
|
|
|
#include "osquery/registry.h"
|
2014-07-31 00:35:19 +00:00
|
|
|
#include "osquery/scheduler.h"
|
|
|
|
|
2014-08-30 11:06:21 +00:00
|
|
|
int main(int argc, char* argv[]) {
|
2014-08-05 23:13:55 +00:00
|
|
|
osquery::core::initOsquery(argc, argv);
|
2014-07-31 00:35:19 +00:00
|
|
|
|
2014-08-21 21:35:51 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2014-07-31 00:35:19 +00:00
|
|
|
boost::thread scheduler_thread(osquery::scheduler::initialize);
|
|
|
|
|
|
|
|
scheduler_thread.join();
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|