From e34fc64072f2b107b13dc615476dc473b350e615 Mon Sep 17 00:00:00 2001 From: simon987 Date: Fri, 21 Aug 2020 18:15:54 -0400 Subject: [PATCH] Default index for web & exec --- src/cli.c | 8 ++++++++ third-party/libscan | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/cli.c b/src/cli.c index 6058b75..f5fdc7e 100644 --- a/src/cli.c +++ b/src/cli.c @@ -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"); } diff --git a/third-party/libscan b/third-party/libscan index baf39a8..7aa89b5 160000 --- a/third-party/libscan +++ b/third-party/libscan @@ -1 +1 @@ -Subproject commit baf39a8b1ac7521ecdd79b274980d07c82c329fc +Subproject commit 7aa89b59d989063bc73a7abc0579eb1990117e4f