suricata
output-filestore.c File Reference
#include "suricata-common.h"
#include "output-filestore.h"
#include "stream-tcp.h"
#include "feature.h"
#include "output.h"
#include "output-json-file.h"
#include "util-conf.h"
#include "util-misc.h"
#include "util-path.h"
#include "util-print.h"
Include dependency graph for output-filestore.c:

Go to the source code of this file.

Data Structures

struct  OutputFilestoreCtx_
 
struct  OutputFilestoreLogThread_
 

Macros

#define MODULE_NAME   "OutputFilestore"
 
#define SHA256_STRING_LEN   (SC_SHA256_LEN * 2)
 
#define LEAF_DIR_MAX_LEN   4
 
#define FILESTORE_PREFIX_MAX   (PATH_MAX - SHA256_STRING_LEN - LEAF_DIR_MAX_LEN)
 
#define WARN_ONCE(wot_type, ...)
 

Typedefs

typedef struct OutputFilestoreCtx_ OutputFilestoreCtx
 
typedef struct OutputFilestoreLogThread_ OutputFilestoreLogThread
 

Enumerations

enum  WarnOnceTypes {
  WOT_OPEN, WOT_WRITE, WOT_UNLINK, WOT_RENAME,
  WOT_SNPRINTF, WOT_MAX
}
 

Functions

void OutputFilestoreRegister (void)
 
void OutputFilestoreRegisterGlobalCounters (void)
 

Macro Definition Documentation

◆ FILESTORE_PREFIX_MAX

#define FILESTORE_PREFIX_MAX   (PATH_MAX - SHA256_STRING_LEN - LEAF_DIR_MAX_LEN)

Definition at line 40 of file output-filestore.c.

◆ LEAF_DIR_MAX_LEN

#define LEAF_DIR_MAX_LEN   4

Definition at line 39 of file output-filestore.c.

◆ MODULE_NAME

#define MODULE_NAME   "OutputFilestore"

Definition at line 34 of file output-filestore.c.

◆ SHA256_STRING_LEN

#define SHA256_STRING_LEN   (SC_SHA256_LEN * 2)

Definition at line 38 of file output-filestore.c.

◆ WARN_ONCE

#define WARN_ONCE (   wot_type,
  ... 
)
Value:
do { \
if (!once_errs[wot_type]) { \
once_errs[wot_type] = true; \
SCLogWarning(__VA_ARGS__); \
} \
} while (0)

Definition at line 76 of file output-filestore.c.

Typedef Documentation

◆ OutputFilestoreCtx

◆ OutputFilestoreLogThread

Enumeration Type Documentation

◆ WarnOnceTypes

Enumerator
WOT_OPEN 
WOT_WRITE 
WOT_UNLINK 
WOT_RENAME 
WOT_SNPRINTF 
WOT_MAX 

Definition at line 61 of file output-filestore.c.

Function Documentation

◆ OutputFilestoreRegister()

void OutputFilestoreRegister ( void  )

Definition at line 506 of file output-filestore.c.

References LOGGER_FILE_STORE, MODULE_NAME, and OutputRegisterFiledataModule().

Here is the call graph for this function:

◆ OutputFilestoreRegisterGlobalCounters()

void OutputFilestoreRegisterGlobalCounters ( void  )

Definition at line 516 of file output-filestore.c.

References StatsRegisterGlobalCounter().

Referenced by PreRunInit().

Here is the call graph for this function:
Here is the caller graph for this function: