change the path where the logs are stored

Manuel Suárez 7 years ago

hello I'm a bit stuck I want to change the path where the logs are stored I tried to use the path ./var/logs/tracker-server.log but the file is not created any idea?

Anton Tananaev 7 years ago

Are you trying to store it in /var/logs/tracker-server.log? If yes, then why are you using . (relative path)?

Manuel Suárez 7 years ago

because I have little space in opt / traccar / logs and I am not an expert in Linux so I do not feel safe changing the size of the partitions and in var I have 700GB of space in opt only 3GB and I have to erase it every time the logs so that the Traccar service does not fall

Anton Tananaev 7 years ago

I wasn't really asking why you want to change path. I'm just asking why you are using relative path when you want to use absolute one.

Manuel Suárez 7 years ago

and an apology if I confused your last question of "If yes, then why are you using relative path" if I understood correctly is asking me why to use "var" instead of "opt" correct?

Manuel Suárez 7 years ago

ok just that is what I do not know well how should I put the absolute route I thought it was that way but clearly not, could you tell me what the absolute path would be like

Anton Tananaev 7 years ago

Is it a serious question? It should be /var/logs/tracker-server.log (note no dot at the beginning).

Manuel Suárez 7 years ago

painfully yes, the truth is that I am very new to Linux as soon as I am familiar with this and in general with regard to servers an apology if my questions are irritating

Anton Tananaev 7 years ago

It works exactly the same way on Windows and any OS out there.

Manuel Suárez 7 years ago

a thousand apologies and I appreciate your patience