eve: remove json format option - was not used

pull/3112/head
Jason Ish 8 years ago committed by Victor Julien
parent 1587772b90
commit 223d9a1e3a

@ -640,19 +640,6 @@ OutputCtx *OutputJsonInitCtx(ConfNode *conf)
return NULL;
}
OutputRegisterFileRotationFlag(&json_ctx->file_ctx->rotation_flag);
const char *format_s = ConfNodeLookupChildValue(conf, "format");
if (format_s != NULL) {
if (strcmp(format_s, "indent") == 0) {
json_ctx->format = INDENT;
} else if (strcmp(format_s, "compact") == 0) {
json_ctx->format = COMPACT;
} else {
SCLogError(SC_ERR_INVALID_ARGUMENT,
"Invalid JSON format option: %s", format_s);
exit(EXIT_FAILURE);
}
}
} else if (json_ctx->json_out == LOGFILE_TYPE_SYSLOG) {
const char *facility_s = ConfNodeLookupChildValue(conf, "facility");
if (facility_s == NULL) {

@ -48,15 +48,12 @@ json_t *CreateJSONHeaderWithTxId(const Packet *p, int direction_sensitive, const
int OutputJSONBuffer(json_t *js, LogFileCtx *file_ctx, MemBuffer **buffer);
OutputCtx *OutputJsonInitCtx(ConfNode *);
enum JsonFormat { COMPACT, INDENT };
/*
* Global configuration context data
*/
typedef struct OutputJsonCtx_ {
LogFileCtx *file_ctx;
enum LogFileType json_out;
enum JsonFormat format;
} OutputJsonCtx;
json_t *SCJsonBool(int val);

Loading…
Cancel
Save