Go to the documentation of this file.
24 #ifndef SURICATA_UTIL_LOGOPENFILE_H
25 #define SURICATA_UTIL_LOGOPENFILE_H
32 #ifdef HAVE_LIBHIREDIS
75 #ifdef HAVE_LIBHIREDIS
82 #ifdef HAVE_LIBHIREDIS
83 RedisSetup redis_setup;
162 #define LOGFILE_RECONN_MIN_TIME 500
165 #define LOGFILE_ROTATE_INTERVAL 0x04
struct LogFileCtx_ LogFileCtx
bool SCLogOpenThreadedFile(const char *log_path, const char *append, LogFileCtx *parent_ctx)
struct LogThreadedFileCtx_ LogThreadedFileCtx
struct LogFileTypeCtx_ LogFileTypeCtx
int(* Write)(const char *buffer, int buffer_len, struct LogFileCtx_ *fp)
struct ThreadLogFileHashEntry ThreadLogFileHashEntry
ThreadId internal_thread_id
LogThreadedFileCtx * threads
@ LOGFILE_TYPE_UNIX_DGRAM
@ LOGFILE_TYPE_UNIX_STREAM
int LogFileWrite(LogFileCtx *file_ctx, MemBuffer *buffer)
struct LogFileCtx_ * parent
int LogFileFreeCtx(LogFileCtx *)
LogFileFreeCtx() Destroy a LogFileCtx (Close the file and free memory)
int SCConfLogOpenGeneric(ConfNode *conf, LogFileCtx *, const char *, int)
open a generic output "log file", which may be a regular file or a socket
ThreadLogFileHashEntry * entry
int SCConfLogReopen(LogFileCtx *)
Reopen a regular log file with the side-affect of truncating it.
LogFileCtx * LogFileEnsureExists(ThreadId thread_id, LogFileCtx *lf_ctx)
LogFileEnsureExists() Ensure a log file context for the thread exists.
void(* Close)(struct LogFileCtx_ *fp)
LogFileCtx * LogFileNewCtx(void)
LogFileNewCtx() Get a new LogFileCtx.
Structure used to define an EVE output file type plugin.