Ricky Saltzer created NIFI-4090:
-----------------------------------
Summary: Improve Log Directory Configuration
Key: NIFI-4090
URL: https://issues.apache.org/jira/browse/NIFI-4090
Project: Apache NiFi
Issue Type: Improvement
Reporter: Ricky Saltzer
Assignee: Ricky Saltzer
Priority: Minor
Configuring the log directory for NiFi isn't very apparent, and in fact
confused me enough that I needed to look at the code.
Based on the {{logback.xml}} I could see that it was expecting a
{{org.apache.nifi.bootstrap.config.log.dir}} value. This made me think that I
needed to set a value in the {{bootstrap.conf}} file based on the naming
convention, but it seems it's actually expecting it to be from a {{System}}
property.
{code}
// Doesn't follow the same pattern as the rest of the *.dir config values.
final String nifiLogDir =
replaceNull(System.getProperty("org.apache.nifi.bootstrap.config.log.dir"),
DEFAULT_LOG_DIR).trim();
final String libFilename = replaceNull(props.get("lib.dir"), "./lib").trim();
File libDir = getFile(libFilename, workingDir);
final String confFilename = replaceNull(props.get("conf.dir"), "./conf").trim();
File confDir = getFile(confFilename, workingDir);
{code}
I looked through our documentation, as well as did a couple Google searches,
but unfortunately couldn't find an answer on how to make the logs directory
configurable.
Would we be in favor of making a change to allow using a {{log.dir}} value
configurable inside the {{bootstrap.conf}}? If the value is not set, then we
can fall back on the current method for resolving a log directory.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)