From 37d606620d65510cbc7344225093193b00c9d084 Mon Sep 17 00:00:00 2001 From: Karrade7 Date: Sun, 25 Feb 2018 07:52:57 -0700 Subject: [PATCH] Error in default path for sql_last_valuue I'm a first time contributor so please check if my syntax matches your style guide. The default path for sql_last_value is listed as /home/pb/.logstash_jdbc_last_run which is INCORRECT. This was probably the home drive of the document contributor. The right directory is the the logstash USER's home drive. In docker it would be /usr/share/logstash/.logstash_jdbc_last_run. I attempted to show this with "#{ENV['HOME']}" I got this information from this forum item: https://discuss.elastic.co/t/multiple-jdbc-sql-statements-schedules-ideally/59930/3 --- docs/index.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.asciidoc b/docs/index.asciidoc index e21cc4e..3fea770 100644 --- a/docs/index.asciidoc +++ b/docs/index.asciidoc @@ -365,7 +365,7 @@ How often to validate a connection (in seconds) ===== `last_run_metadata_path` * Value type is <> - * Default value is `"/home/ph/.logstash_jdbc_last_run"` + * Default value is `"#{ENV['HOME']}/.logstash_jdbc_last_run"` Path to file with last run time @@ -483,4 +483,4 @@ Use an incremental column value rather than a timestamp [id="plugins-{type}s-{plugin}-common-options"] -include::{include_path}/{type}.asciidoc[] \ No newline at end of file +include::{include_path}/{type}.asciidoc[]