Default index for web & exec

This commit is contained in:
simon987 2020-08-21 18:15:54 -04:00
parent a020a8b32c
commit d116cf9d91
2 changed files with 9 additions and 1 deletions

View File

@ -331,6 +331,10 @@ int web_args_validate(web_args_t *args, int argc, const char **argv) {
args->listen_address = DEFAULT_LISTEN_ADDRESS;
}
if (args->es_index == NULL) {
args->es_index = DEFAULT_ES_INDEX;
}
if (args->credentials != NULL) {
char *ptr = strstr(args->credentials, ":");
if (ptr == NULL) {
@ -431,6 +435,10 @@ int exec_args_validate(exec_args_t *args, int argc, const char **argv) {
args->es_url = DEFAULT_ES_URL;
}
if (args->es_index == NULL) {
args->es_index = DEFAULT_ES_INDEX;
}
if (args->script_path == NULL) {
LOG_FATAL("cli.c", "--script-file argument is required");
}

2
third-party/libscan vendored

@ -1 +1 @@
Subproject commit baf39a8b1ac7521ecdd79b274980d07c82c329fc
Subproject commit 7aa89b59d989063bc73a7abc0579eb1990117e4f