[
https://issues.apache.org/jira/browse/SOLR-9971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16125653#comment-16125653
]
Christine Poerschke commented on SOLR-9971:
-------------------------------------------
bq. ... The use case behind this request is that it is useful to keep gc and
console logs separate from the application logs because there are different
archival / ingestion / processing requirements for each.
I agree that it can be helpful to keep gc and application logs separate.
SOLR-11233 concerns customisation of GC_LOG_OPTS i.e. there is some commonality
with this issue here.
> Parameterise where solr creates its console and gc log files
> ------------------------------------------------------------
>
> Key: SOLR-9971
> URL: https://issues.apache.org/jira/browse/SOLR-9971
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: scripts and tools
> Affects Versions: 6.3
> Reporter: Jinesh Choksi
> Priority: Minor
> Labels: newbie
>
> In the $SOLR_INSTALL_DIR/bin/solr script, the location where the solr_gc.log
> + $SOLR_PORT-console.log file are created is hard wired to be inside the
> $SOLR_LOGS_DIR folder due to the following lines of code:
> * {code}
> GC_LOG_OPTS+=("$gc_log_flag:$SOLR_LOGS_DIR/solr_gc.log"
> -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=9 -XX:GCLogFileSize=20M)
> {code}
> * {code}
> nohup "$JAVA" "${SOLR_START_OPTS[@]}" $SOLR_ADDL_ARGS -Dsolr.log.muteconsole \
> "-XX:OnOutOfMemoryError=$SOLR_TIP/bin/oom_solr.sh $SOLR_PORT
> $SOLR_LOGS_DIR" \
> -jar start.jar "${SOLR_JETTY_CONFIG[@]}" \
> 1>"$SOLR_LOGS_DIR/solr-$SOLR_PORT-console.log" 2>&1 & echo $! >
> "$SOLR_PID_DIR/solr-$SOLR_PORT.pid"
> {code}
> Would it be possible to arrange for another two ENVIRONMENT variables to be
> made available which allow us to control where these two files are created?
> e.g. SOLR_GC_LOG + SOLR_CONSOLE_LOG
> The use case behind this request is that it is useful to keep gc and console
> logs separate from the application logs because there are different archival
> / ingestion / processing requirements for each.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]