Relocate Rabbit log files on Windows 2008R2

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Relocate Rabbit log files on Windows 2008R2

Scott McFadden
I installed RabbitMQ 3.3.0 on our dev Win2008R2 box as my domain user acme\smcfadden.  After install was complete, I changed the Windows service identity
from amce\smcfadden to acme\rabbitservice (acme\rabbitservice is a local admin).  Also, I added the following system level environment variable:

RABBITMQ_LOG_BASE = C:\Logs\RabbitMQ

I then restarted the RabbitMQ service via the MMC snapin for services.

Unfortunately, the log files still write to C:\Users\smcfadden\AppData\Roaming\RabbitMQ instead of C:\Logs\RabbitMQ

Please advise how to change log file location.



scott

_______________________________________________
rabbitmq-discuss mailing list has moved to https://groups.google.com/forum/#!forum/rabbitmq-users,
please subscribe to the new list!

[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Relocate Rabbit log files on Windows 2008R2

Michael Klishin-2
On 30 July 2014 at 05:45:03, Scott McFadden ([hidden email]) wrote:
> > I then restarted the RabbitMQ service via the MMC snapin for  
> services.
>  
> Unfortunately, the log files still write to C:\Users\smcfadden\AppData\Roaming\RabbitMQ  
> instead of C:\Logs\RabbitMQ

From http://www.rabbitmq.com/configure.html:

«Create or edit the system variable name and value. For environment changes to take effect on Windows, the service must be re-installed. It is not sufficient to restart the service.»

 
As a side note, the official RabbitMQ mailing list is rabbitmq-users. rabbitmq-discuss
is an unofficial mirror to the legacy list.

Please use groups.google.com/forum/#!forum/rabbitmq-users as rabbitmq-discuss will be
completely discontinued on Oct 1st.
--  
MK  

Staff Software Engineer, Pivotal/RabbitMQ
_______________________________________________
rabbitmq-discuss mailing list has moved to https://groups.google.com/forum/#!forum/rabbitmq-users,
please subscribe to the new list!

[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Relocate Rabbit log files on Windows 2008R2

Mariusz Wojcik
In reply to this post by Scott McFadden
This is a wild guess, but try reinstalling RabbitMQ server.
I haven't changed log file location, but I had issues with config file location on windows 2012, where RabbitMQ was reporting it couldn't find the file even though the file was there and was accessible. Also changing config file location in env. variable didn't help. But reinstalling RabbitMQ service worked.

Cheers,

Mariusz

On Wednesday, 30 July 2014 02:42:53 UTC+1, Scott McFadden wrote:
I installed RabbitMQ 3.3.0 on our dev Win2008R2 box as my domain user acme\smcfadden.  After install was complete, I changed the Windows service identity
from amce\smcfadden to acme\rabbitservice (acme\rabbitservice is a local admin).  Also, I added the following system level environment variable:

RABBITMQ_LOG_BASE = C:\Logs\RabbitMQ

I then restarted the RabbitMQ service via the MMC snapin for services.

Unfortunately, the log files still write to C:\Users\smcfadden\AppData\Roaming\RabbitMQ instead of C:\Logs\RabbitMQ

Please advise how to change log file location.



scott

_______________________________________________
rabbitmq-discuss mailing list has moved to https://groups.google.com/forum/#!forum/rabbitmq-users,
please subscribe to the new list!

[hidden email]
https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Loading...