We had an issue a few months ago which meant doing a SQL restore and we noticed that the log location has moved off the location it should be,
Is there a way to change where the logs actually go, right now they are in the default C:\octopus but we want them in another location because… reasons
So having looked closer i can see the Octopus Server Manager is pointing to a directory that it can see yet the logs are not been written to it.
Is there anyway to find why the logs are not writing anything out ?
Thanks for getting in touch! I’m sorry to hear you’ve hit this issue. You can change where the logs are with the Octopus.Server.exe command line using the
path command and
--taskLogs=VALUE option as shown in the following doc page.
Is this what you’re after? Let me know how you go and if this resolves your issue.
I think i can do that
If i can recreate the issue in our Dev instance ill test that first but i am not having any success. It may just have to be a try it and see as the impact is minimal
So just had a look at the above and it refers to Task Logs, having made the change on our Dev instance i see it move the task logs but not the actual server logs. They currently still show - C:\Octopus\Logs
On our Live server these arent been created but even if they were i need to move them
Specifically this file OctopusServer.txt, it has stopped logging entirely
Kenny! your going to be sick of these emails, i resolved it
Would be good to know the above anyway, but this was an hardening issue on the box which prevented the Service account running accessing that location.
Thanks for following up and letting me know the outcome! I apologize about the delay in my response. There are two ways to change where the server logs are located:
- Modify the Octopus.Server.exe.nlog file, and by default they’re set to:
However this will reset on upgrade, so this is probably not ideal.
- Move the whole Home Directory (C:\Octopus by default) as outlined with a PowerShell script at the following doc page.
I hope this helps! Don’t hesitate to reach out if you have any further questions moving forward.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.