You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Yunee Lee <yu...@infor.com> on 2016/05/04 00:02:06 UTC

[Installation] Solr log directory

Hi, solr experts.

I have a question for installing solr server. 
Using ' install_solr_service.sh' with option -d , the solr home directory can be set. But the default log directory is under $SOLR_HOME/logs.

Is it possible to specify the logs directory separately from solr home directory during installation? 

Thank you for your help.

-Y



Re: [Installation] Solr log directory

Posted by John Bickerstaff <jo...@johnbickerstaff.com>.
Hoss - I'm guessing this is all in the install script that gets created
when you run that command (can't remember it) on the tar.gz file...

In other words, Yunee can edit that file, find those variables (like
SOLR_SERVICE) and change them from what they're set to by default to
whatever he wants...

On Tue, May 3, 2016 at 4:31 PM, Chris Hostetter <ho...@fucit.org>
wrote:

>
> : I have a question for installing solr server. Using '
> : install_solr_service.sh' with option -d , the solr home directory can be
> : set. But the default log directory is under $SOLR_HOME/logs.
> :
> : Is it possible to specify the logs directory separately from solr home
> directory during installation?
>
> install_solr_service.sh doesn't do anything special as far where logs
> should live  -- it just writes out a (default) "/etc/default/$
> SOLR_SERVICE.in.sh" (if
> it doesn't already exist) that specifies a (default) log directory for
> solr to use once the service starts
>
> you are absolutely expected to overwrite that "$SOLR_SERVICE.in.sh" file
> with your own specific settings -- in fact you *must* to configure things
> like ZooKeeper or SSL -- after the installation script finishes, and you
> are welcome to change the SOLR_LOGS_DIR setting to anything you want.
>
>
>
> -Hoss
> http://www.lucidworks.com/
>

Re: [Installation] Solr log directory

Posted by Chris Hostetter <ho...@fucit.org>.
: I have a question for installing solr server. Using ' 
: install_solr_service.sh' with option -d , the solr home directory can be 
: set. But the default log directory is under $SOLR_HOME/logs.
: 
: Is it possible to specify the logs directory separately from solr home directory during installation? 

install_solr_service.sh doesn't do anything special as far where logs 
should live  -- it just writes out a (default) "/etc/default/$SOLR_SERVICE.in.sh" (if 
it doesn't already exist) that specifies a (default) log directory for 
solr to use once the service starts

you are absolutely expected to overwrite that "$SOLR_SERVICE.in.sh" file 
with your own specific settings -- in fact you *must* to configure things 
like ZooKeeper or SSL -- after the installation script finishes, and you 
are welcome to change the SOLR_LOGS_DIR setting to anything you want.



-Hoss
http://www.lucidworks.com/

RE: [Installation] Solr log directory

Posted by Yunee Lee <yu...@infor.com>.
That's correct.
But I want to separate solr home directory and log directory. 
For example,  solr_home = /server/solr
solr_logs = /var/solr/logs

-----Original Message-----
From: John Bickerstaff [mailto:john@johnbickerstaff.com] 
Sent: Tuesday, May 3, 2016 6:16 PM
To: solr-user@lucene.apache.org
Subject: Re: [Installation] Solr log directory

I think you should be able to change $SOLR_HOME to any valid path.

For example: /var/logs/solr_logs

On Tue, May 3, 2016 at 4:02 PM, Yunee Lee <yu...@infor.com> wrote:

> Hi, solr experts.
>
> I have a question for installing solr server.
> Using ' install_solr_service.sh' with option -d , the solr home 
> directory can be set. But the default log directory is under $SOLR_HOME/logs.
>
> Is it possible to specify the logs directory separately from solr home 
> directory during installation?
>
> Thank you for your help.
>
> -Y
>
>
>

Re: [Installation] Solr log directory

Posted by John Bickerstaff <jo...@johnbickerstaff.com>.
I think you should be able to change $SOLR_HOME to any valid path.

For example: /var/logs/solr_logs

On Tue, May 3, 2016 at 4:02 PM, Yunee Lee <yu...@infor.com> wrote:

> Hi, solr experts.
>
> I have a question for installing solr server.
> Using ' install_solr_service.sh' with option -d , the solr home directory
> can be set. But the default log directory is under $SOLR_HOME/logs.
>
> Is it possible to specify the logs directory separately from solr home
> directory during installation?
>
> Thank you for your help.
>
> -Y
>
>
>