[ 
https://issues.apache.org/jira/browse/SOLR-10632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16001413#comment-16001413
 ] 

Jan Høydahl commented on SOLR-10632:
------------------------------------

Since we now have the mechanism of setting {{SOLR_LOGS_DIR}}, you can 
workaround this as documented in 
https://cwiki.apache.org/confluence/display/solr/Configuring+Logging#ConfiguringLogging-PermanentLoggingSettings
 :
{noformat}
export SOLR_LOGS_DIR=logs_8983
bin/solr start -p 8983
export SOLR_LOGS_DIR=logs_8080
bin/solr start -p 8080
{noformat}

In this way you will get logs from the first instance in {{server/logs_8983}} 
and from the other in {{server/logs_8080}}. I think this is a far better, and 
already supported, solution, segregating logs for each instance 100%.

This is also documented in 
https://cwiki.apache.org/confluence/display/solr/Taking+Solr+to+Production#TakingSolrtoProduction-Logsettings,
 and when you install Solr using install script, logs for each instance is 
automatically set relative to {{$SOLR_VAR_DIR}}.

I can see that if someone is developing and starting several instances from the 
same installation folder without specifying {{SOLR_LOGS_DIR}}, then what you 
describe will be happening. We could of course default to sending logs to 
{{server/logs}} as today if port==8983, else change log dir to {{logs_<port>}}?

> logfiles are moved to archived if server is still running
> ---------------------------------------------------------
>
>                 Key: SOLR-10632
>                 URL: https://issues.apache.org/jira/browse/SOLR-10632
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: logging
>    Affects Versions: 6.5
>            Reporter: Bernd Fehling
>            Priority: Minor
>
> There are server logfiles without portnumber in logfile name. If another 
> instance is started these logfiles are moved to archived, eventhough the 
> other server is still running.
> Solution could be to give every logfile a name with the portnumber it belongs 
> to. Or check if a logfile is still in use and quit with an error before 
> moving to archived.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to