diff options
-rw-r--r-- | configdefinitions/src/vespa/logforwarder.def | 2 | ||||
-rw-r--r-- | logforwarder/src/apps/vespa-logforwarder-start/cf-handler.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/configdefinitions/src/vespa/logforwarder.def b/configdefinitions/src/vespa/logforwarder.def index bea096d3a5c..0c311524fef 100644 --- a/configdefinitions/src/vespa/logforwarder.def +++ b/configdefinitions/src/vespa/logforwarder.def @@ -4,4 +4,4 @@ namespace=cloud.config deploymentServer string default="" clientName string default="" -splunkPath string default="/opt/splunkforwarder" +splunkHome string default="/opt/splunkforwarder" diff --git a/logforwarder/src/apps/vespa-logforwarder-start/cf-handler.cpp b/logforwarder/src/apps/vespa-logforwarder-start/cf-handler.cpp index 18b2c1d255b..bdd1855f95c 100644 --- a/logforwarder/src/apps/vespa-logforwarder-start/cf-handler.cpp +++ b/logforwarder/src/apps/vespa-logforwarder-start/cf-handler.cpp @@ -62,7 +62,7 @@ CfHandler::doConfigure() std::unique_ptr<LogforwarderConfig> cfg(_handle->getConfig()); const LogforwarderConfig& config(*cfg); - vespalib::string path = cfFilePath(config.splunkPath); + vespalib::string path = cfFilePath(config.splunkHome); vespalib::string tmpPath = path + ".new"; FILE *fp = fopen(tmpPath.c_str(), "w"); if (fp == NULL) return; @@ -76,7 +76,7 @@ CfHandler::doConfigure() fclose(fp); rename(tmpPath.c_str(), path.c_str()); - childHandler.startChild(config.splunkPath); + childHandler.startChild(config.splunkHome); } void |