log-tcp-data.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


void LogTcpDataLogRegister (void)
OutputInitResult LogTcpDataLogInitCtx (ConfNode *)
 Create a new http log LogFileCtx. More...

Detailed Description

Function Documentation

OutputInitResult LogTcpDataLogInitCtx ( ConfNode conf)

Create a new http log LogFileCtx.

confPointer to ConfNode containing this loggers configuration.
NULL if failure, LogFileCtx* to the file_ctx if succesful

Definition at line 228 of file log-tcp-data.c.

References ConfigGetLogDirectory(), ConfNodeLookupChildValue(), OutputInitResult_::ctx, OutputCtx_::data, DEFAULT_LOG_FILENAME, OutputCtx_::DeInit, LogTcpDataFileCtx_::dir, LogTcpDataFileCtx_::file, LogTcpDataFileCtx_::file_ctx, LogTcpDataFileCtx_::log_dir, LogFileFreeCtx(), LogFileNewCtx(), ConfNode_::name, OutputInitResult_::ok, SC_ERR_INVALID_ARGUMENT, SC_ERR_TCPDATA_LOG_GENERIC, SCCalloc, SCConfLogOpenGeneric(), SCFree, SCLogDebug, SCLogError, SCLogInfo, SCMalloc, SCMkDir, STREAMING_HTTP_BODIES, STREAMING_TCP_DATA, strlcpy(), LogTcpDataFileCtx_::type, and unlikely.

Referenced by LogTcpDataLogRegister().

Here is the call graph for this function:

Here is the caller graph for this function:

void LogTcpDataLogRegister ( void  )

Definition at line 62 of file log-tcp-data.c.

References LOGGER_TCP_DATA, LogTcpDataLogger(), LogTcpDataLogInitCtx(), LogTcpDataLogThreadDeinit(), LogTcpDataLogThreadInit(), MODULE_NAME, OutputRegisterStreamingModule(), STREAMING_HTTP_BODIES, and STREAMING_TCP_DATA.

Referenced by OutputRegisterLoggers().

Here is the call graph for this function:

Here is the caller graph for this function: