log files' naming convention

DIG

New member
Joined
Jun 7, 2007
Messages
2
Hi,

Could somebody enlighten me, please: what is the naming convention for log files?

Say, I have these logs for one of my domains:

-rw-r--r-- 1 ftp ftp 1839 Jun 5 20:33 Jun-2007.1.tmp.tar.gz
-rw-r--r-- 1 ftp ftp 1581 Jun 1 20:31 Jun-2007.2.tar.gz
-rw-r--r-- 1 ftp ftp 384 Jun 6 20:33 Jun-2007.2.tmp.tar.gz
-rw-r--r-- 1 ftp ftp 2350 Jun 2 20:32 Jun-2007.3.tar.gz
-rw-r--r-- 1 ftp ftp 2790 Jun 3 20:32 Jun-2007.4.tar.gz
-rw-r--r-- 1 ftp ftp 4569 Jun 5 20:33 Jun-2007.5.tar.gz
-rw-r--r-- 1 ftp ftp 2755 Jun 6 20:33 Jun-2007.tar.gz
-rw-r--r-- 1 ftp ftp 1270 Jun 1 20:31 Jun-2007.tmp.tar.gz


For example: Jun-2007.2.tmp.tar.gz

  • Jun-2007 -- it's obvious
  • 2 -- ???
  • tmp -- subdomain's name
  • tar.gz -- it's obvious

Why there is Jun-2007.1.tmp.tar.gz but not Jun-2007.1.tar.gz?
What is the rotation period? Is this configurable from user, reseller or admin access level?

Is there any information about logs?

Thank you in advance.
 
I asked DA about this myself,

Apparently its a rather complex algorithm that works out the names, and as such they say it's best just to look at the date the log file was created to find out any specific order.

Hope this helps.

PS: Rotation Time can be set it is just a CRON job, has to be done at admin level though :)
 
Apparently its a rather complex algorithm that works out the names, and as such they say it's best just to look at the date the log file was created to find out any specific order.

Thanks for your reply.

Would be nice if they published at least the logic behind this algorithm (even as a source code).

PS: Rotation Time can be set it is just a CRON job, has to be done at admin level though :)

My hosting admin is not very talkative. Maybe it's time to change hosting company...


My goal is to connect from time to time to my site and to download all logs that were not downloaded before. It would be very easy, if I could delete freshly downloaded logs. But I can not (SORM-paranoia)... Too bad.
 
Ahhh, I see

Nearly all the logs are created as root, so as a user you would not be able to delete them, You could pursuade your host possibly to change your rotation time, but that wouldn't help with the last part, as you would not be able to delete the logs you have just downloaded.

Seems like abit of Catch22, just what the FSB would like i imagine :P,

The only other thing I could suggest is you host your site outside of Russia, that way the FSB would not have jurisdiction to look at the log files, and also connect to your server via SSL making it more time consuming for them to look at what you were sending etc.

Not sure if thats what you were asking, but I hope it is of some use.
 
Back
Top