mirror of
https://github.com/valitydev/osquery-1.git
synced 2024-11-08 10:23:54 +00:00
418e6495c0
The first draft of the remote logger for osquery. This should give a rough idea of how the code will be structured and function. RFC please. At the advice of @theopolis, I removed the category type and added the http_logger key. We figure this should be more efficient and doesn't have to be known at compile time.
18 lines
436 B
C++
18 lines
436 B
C++
#include <vector>
|
|
#include <string>
|
|
#include <osquery/registry.h>
|
|
#include <osquery/logger.h>
|
|
#include <osquery/filesystem.h>
|
|
|
|
namespace osquery {
|
|
class HTTPLoggerPlugin : public LoggerPlugin {
|
|
private:
|
|
unsigned log_num;
|
|
|
|
public:
|
|
Status setUp();
|
|
Status logString(const std::string& s);
|
|
Status init(const std::string& name, const std::vector<StatusLogLine>& log);
|
|
Status logStatus(const std::vector<StatusLogLine>& log);
|
|
};
|
|
} |