suricata
|
#include "suricata-common.h"
#include "debug.h"
#include "detect.h"
#include "pkt-var.h"
#include "conf.h"
#include "threads.h"
#include "threadvars.h"
#include "tm-threads.h"
#include "util-print.h"
#include "util-unittest.h"
#include "util-debug.h"
#include "app-layer-parser.h"
#include "output.h"
#include "app-layer-ssh.h"
#include "app-layer.h"
#include "util-privs.h"
#include "util-buffer.h"
#include "util-logopenfile.h"
#include "util-crypt.h"
#include "output-json.h"
#include "output-json-ssh.h"
Go to the source code of this file.
Data Structures | |
struct | OutputSshCtx_ |
struct | JsonSshLogThread_ |
Macros | |
#define | MODULE_NAME "LogSshLog" |
#define | DEFAULT_LOG_FILENAME "ssh.json" |
Typedefs | |
typedef struct OutputSshCtx_ | OutputSshCtx |
typedef struct JsonSshLogThread_ | JsonSshLogThread |
Functions | |
void | JsonSshLogJSON (json_t *tjs, SshState *ssh_state) |
void | JsonSshLogRegister (void) |
Implements SSH JSON logging portion of the engine.
Definition in file output-json-ssh.c.
#define DEFAULT_LOG_FILENAME "ssh.json" |
Definition at line 183 of file output-json-ssh.c.
#define MODULE_NAME "LogSshLog" |
Definition at line 53 of file output-json-ssh.c.
typedef struct JsonSshLogThread_ JsonSshLogThread |
typedef struct OutputSshCtx_ OutputSshCtx |
void JsonSshLogJSON | ( | json_t * | tjs, |
SshState * | ssh_state | ||
) |
Definition at line 67 of file output-json-ssh.c.
References JsonSshLogThread_::buffer, OutputSshCtx_::cfg, SshState_::cli_hdr, CreateJSONHeader(), OutputCtx_::data, OutputSshCtx_::file_ctx, JSON_OUTPUT_BUFFER_SIZE, JsonAddCommonOptions(), JsonSshLogJSON(), LOG_DIR_FLOW, LogFileFreeCtx(), MemBufferCreateNew(), MemBufferFree(), MemBufferReset, OutputJSONBuffer(), SshHeader_::proto_version, SCFree, SCJsonString(), SCLogDebug, SCMalloc, SshHeader_::software_version, SshState_::srv_hdr, JsonSshLogThread_::sshlog_ctx, TM_ECODE_FAILED, TM_ECODE_OK, tx_id, and unlikely.
Referenced by JsonSshLogJSON().
void JsonSshLogRegister | ( | void | ) |
Definition at line 258 of file output-json-ssh.c.
References ALPROTO_SSH, LOGGER_JSON_SSH, OutputRegisterTxModuleWithProgress(), OutputRegisterTxSubModuleWithProgress(), and SSH_STATE_BANNER_DONE.
Referenced by OutputRegisterLoggers().