This doesn't need to be registered from suricata.c. And moving
it to the init function makes sure its only registered if
the logger is actually enabled.
SCLogInfo("enabling pid as a part of all file names");
}
+ StatsRegisterGlobalCounter("file_store.open_files",
+ LogFilestoreOpenFilesCounter);
+
result.ctx = output_ctx;
result.ok = true;
SCReturnCT(result, "OutputInitResult");
}
-
-void LogFilestoreInitConfig(void)
-{
- StatsRegisterGlobalCounter("file_store.open_files", LogFilestoreOpenFilesCounter);
-}
-
-
void LogFilestoreRegister (void)
{
OutputRegisterFiledataModule(LOGGER_FILE_STORE, MODULE_NAME, "file",
#include "host-storage.h"
#include "util-lua.h"
-#include "log-filestore.h"
#ifdef HAVE_RUST
#include "rust.h"
DefragInit();
FlowInitConfig(FLOW_QUIET);
IPPairInitConfig(FLOW_QUIET);
- LogFilestoreInitConfig();
StreamTcpInitConfig(STREAM_VERBOSE);
AppLayerParserPostStreamSetup();
AppLayerRegisterGlobalCounters();