return TM_ECODE_OK;
}
-static void AlertDebugLogExitPrintStats(ThreadVars *tv, void *data)
-{
- AlertDebugLogThread *aft = (AlertDebugLogThread *)data;
- if (aft == NULL) {
- return;
- }
-}
-
static void AlertDebugLogDeInitCtx(OutputCtx *output_ctx)
{
if (output_ctx != NULL) {
{
OutputRegisterPacketModule(LOGGER_ALERT_DEBUG, MODULE_NAME, "alert-debug",
AlertDebugLogInitCtx, AlertDebugLogLogger, AlertDebugLogCondition,
- AlertDebugLogThreadInit, AlertDebugLogThreadDeinit,
- AlertDebugLogExitPrintStats);
+ AlertDebugLogThreadInit, AlertDebugLogThreadDeinit, NULL);
}
TmEcode AlertFastLogThreadInit(ThreadVars *, void *, void **);
TmEcode AlertFastLogThreadDeinit(ThreadVars *, void *);
-void AlertFastLogExitPrintStats(ThreadVars *, void *);
void AlertFastLogRegisterTests(void);
static void AlertFastLogDeInitCtx(OutputCtx *);
{
OutputRegisterPacketModule(LOGGER_ALERT_FAST, MODULE_NAME, "fast",
AlertFastLogInitCtx, AlertFastLogger, AlertFastLogCondition,
- AlertFastLogThreadInit, AlertFastLogThreadDeinit,
- AlertFastLogExitPrintStats);
+ AlertFastLogThreadInit, AlertFastLogThreadDeinit, NULL);
AlertFastLogRegisterTests();
}
return TM_ECODE_OK;
}
-void AlertFastLogExitPrintStats(ThreadVars *tv, void *data)
-{
- AlertFastLogThread *aft = (AlertFastLogThread *)data;
- if (aft == NULL) {
- return;
- }
-
- //SCLogInfo("Fast log output wrote %" PRIu64 " alerts", aft->file_ctx->alerts);
-}
-
/**
* \brief Create a new LogFileCtx for "fast" output style.
* \param conf The configuration node for this output.
return TM_ECODE_OK;
}
-/**
- * \brief Function to print the total alert while closing the engine
- *
- * \param tv Pointer to the output threadvars
- * \param data Pointer to the AlertSyslogThread data
- */
-static void AlertSyslogExitPrintStats(ThreadVars *tv, void *data)
-{
- AlertSyslogThread *ast = (AlertSyslogThread *)data;
- if (ast == NULL) {
- return;
- }
-}
-
static int AlertSyslogCondition(ThreadVars *tv, const Packet *p)
{
return (p->alerts.cnt > 0 ? TRUE : FALSE);
#ifndef OS_WIN32
OutputRegisterPacketModule(LOGGER_ALERT_SYSLOG, MODULE_NAME, "syslog",
AlertSyslogInitCtx, AlertSyslogLogger, AlertSyslogCondition,
- AlertSyslogThreadInit, AlertSyslogThreadDeinit,
- AlertSyslogExitPrintStats);
+ AlertSyslogThreadInit, AlertSyslogThreadDeinit, NULL);
#endif /* !OS_WIN32 */
}
TmEcode LogHttpLogThreadInit(ThreadVars *, void *, void **);
TmEcode LogHttpLogThreadDeinit(ThreadVars *, void *);
-void LogHttpLogExitPrintStats(ThreadVars *, void *);
static void LogHttpLogDeInitCtx(OutputCtx *);
int LogHttpLogger(ThreadVars *tv, void *thread_data, const Packet *, Flow *f, void *state, void *tx, uint64_t tx_id);
{
OutputRegisterTxModule(LOGGER_HTTP, MODULE_NAME, "http-log",
LogHttpLogInitCtx, ALPROTO_HTTP, LogHttpLogger, LogHttpLogThreadInit,
- LogHttpLogThreadDeinit, LogHttpLogExitPrintStats);
+ LogHttpLogThreadDeinit, NULL);
}
#define LOG_HTTP_MAXN_NODES 64
return TM_ECODE_OK;
}
-void LogHttpLogExitPrintStats(ThreadVars *tv, void *data)
-{
- LogHttpLogThread *aft = (LogHttpLogThread *)data;
- if (aft == NULL) {
- return;
- }
-
- //SCLogInfo("HTTP logger logged %" PRIu32 " requests", aft->uri_cnt);
-}
-
/** \brief Create a new http log LogFileCtx.
* \param conf Pointer to ConfNode containing this loggers configuration.
* \return NULL if failure, LogFileCtx* to the file_ctx if succesful
TmEcode LogStatsLogThreadInit(ThreadVars *, void *, void **);
TmEcode LogStatsLogThreadDeinit(ThreadVars *, void *);
-void LogStatsLogExitPrintStats(ThreadVars *, void *);
static void LogStatsLogDeInitCtx(OutputCtx *);
typedef struct LogStatsFileCtx_ {
return TM_ECODE_OK;
}
-void LogStatsLogExitPrintStats(ThreadVars *tv, void *data)
-{
- LogStatsLogThread *aft = (LogStatsLogThread *)data;
- if (aft == NULL) {
- return;
- }
-}
-
/** \brief Create a new http log LogFileCtx.
* \param conf Pointer to ConfNode containing this loggers configuration.
* \return NULL if failure, LogFileCtx* to the file_ctx if succesful
{
OutputRegisterStatsModule(LOGGER_STATS, MODULE_NAME, "stats",
LogStatsLogInitCtx, LogStatsLogger, LogStatsLogThreadInit,
- LogStatsLogThreadDeinit, LogStatsLogExitPrintStats);
+ LogStatsLogThreadDeinit, NULL);
}
TmEcode LogTcpDataLogThreadInit(ThreadVars *, void *, void **);
TmEcode LogTcpDataLogThreadDeinit(ThreadVars *, void *);
-void LogTcpDataLogExitPrintStats(ThreadVars *, void *);
static void LogTcpDataLogDeInitCtx(OutputCtx *);
int LogTcpDataLogger(ThreadVars *tv, void *thread_data, const Flow *f, const uint8_t *data, uint32_t data_len, uint64_t tx_id, uint8_t flags);
void LogTcpDataLogRegister (void) {
OutputRegisterStreamingModule(LOGGER_TCP_DATA, MODULE_NAME, "tcp-data",
LogTcpDataLogInitCtx, LogTcpDataLogger, STREAMING_TCP_DATA,
- LogTcpDataLogThreadInit, LogTcpDataLogThreadDeinit,
- LogTcpDataLogExitPrintStats);
+ LogTcpDataLogThreadInit, LogTcpDataLogThreadDeinit, NULL);
OutputRegisterStreamingModule(LOGGER_TCP_DATA, MODULE_NAME, "http-body-data",
LogTcpDataLogInitCtx, LogTcpDataLogger, STREAMING_HTTP_BODIES,
- LogTcpDataLogThreadInit, LogTcpDataLogThreadDeinit,
- LogTcpDataLogExitPrintStats);
+ LogTcpDataLogThreadInit, LogTcpDataLogThreadDeinit, NULL);
}
typedef struct LogTcpDataFileCtx_ {
return TM_ECODE_OK;
}
-void LogTcpDataLogExitPrintStats(ThreadVars *tv, void *data) {
- LogTcpDataLogThread *aft = (LogTcpDataLogThread *)data;
- if (aft == NULL) {
- return;
- }
-}
-
/** \brief Create a new http log LogFileCtx.
* \param conf Pointer to ConfNode containing this loggers configuration.
* \return NULL if failure, LogFileCtx* to the file_ctx if succesful