diff options
Diffstat (limited to 'logforwarder')
3 files changed, 11 insertions, 16 deletions
diff --git a/logforwarder/src/apps/vespa-logforwarder-start/cf-handler.cpp b/logforwarder/src/apps/vespa-logforwarder-start/cf-handler.cpp index 479bf33ab59..573a23a373e 100644 --- a/logforwarder/src/apps/vespa-logforwarder-start/cf-handler.cpp +++ b/logforwarder/src/apps/vespa-logforwarder-start/cf-handler.cpp @@ -25,12 +25,9 @@ CfHandler::doConfigure() std::unique_ptr<LogforwarderConfig> cfg(_handle->getConfig()); const LogforwarderConfig& config(*cfg); - printf("logforwarder type: %s\n", config.type.c_str()); - for (unsigned int i = 0; i < config.sources.size(); ++i) { - printf("source %d is: %s\n", i, config.sources[i].log.c_str()); - } - printf("endpoint: %s\n", config.endpoint.c_str()); - printf("index: %s\n", config.index.c_str()); + printf("logforwarder:\n"); + printf(" deployment server: %s\n", config.deploymentServer.c_str()); + printf(" client name: %s\n", config.clientName.c_str()); } void diff --git a/logforwarder/src/apps/vespa-logforwarder-start/logforwarder.def b/logforwarder/src/apps/vespa-logforwarder-start/logforwarder.def index 66750a81af8..205e8ad3b8c 100644 --- a/logforwarder/src/apps/vespa-logforwarder-start/logforwarder.def +++ b/logforwarder/src/apps/vespa-logforwarder-start/logforwarder.def @@ -1,7 +1,6 @@ namespace=cloud.config -# Forwarder that forwards onle or more types of log to an endpoint -type string -sources[].log string -endpoint string -index string +# only splunk type config for now + +deploymentServer string default="" +clientName string default="" diff --git a/logforwarder/src/main/resources/configdefinitions/logforwarder.def b/logforwarder/src/main/resources/configdefinitions/logforwarder.def index 66750a81af8..205e8ad3b8c 100644 --- a/logforwarder/src/main/resources/configdefinitions/logforwarder.def +++ b/logforwarder/src/main/resources/configdefinitions/logforwarder.def @@ -1,7 +1,6 @@ namespace=cloud.config -# Forwarder that forwards onle or more types of log to an endpoint -type string -sources[].log string -endpoint string -index string +# only splunk type config for now + +deploymentServer string default="" +clientName string default="" |