There is probably not too much bad about enabling both, but
open file counts can get messy with both enabled. And v1
should be schedule for deprecation soon enough.
}
}
+ if (RunModeOutputFiledataEnabled()) {
+ SCLogWarning(SC_ERR_NOT_SUPPORTED,
+ "A file data logger is already enabled. Filestore (v1) "
+ "will not be enabled.");
+ return result;
+ }
+
OutputCtx *output_ctx = SCCalloc(1, sizeof(OutputCtx));
if (unlikely(output_ctx == NULL))
return result;
return result;
}
+ if (RunModeOutputFiledataEnabled()) {
+ SCLogWarning(SC_ERR_NOT_SUPPORTED,
+ "A file data logger is already enabled. Filestore (v2) "
+ "will not be enabled.");
+ return result;
+ }
+
char log_directory[PATH_MAX] = "";
GetLogDirectory(conf, log_directory, sizeof(log_directory));
if (!InitFilestoreDirectory(log_directory)) {