Forum Moderators: phranque

Message Too Old, No Replies

log files naming on Apache

how do you change it?

         

smallcompany

6:13 pm on Jan 22, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



On my VPS, the naming is numeric, like 1, 2, 3, etc. That's the default. I don't like how it gets overwritten when the maximum number of files is reached.

How do I set it so the names are by dates so when I want to copy them over they do not overwrite each other?

I did check on log rotation docs for Apache 2.0, but could not figure settings about file naming.

Thanks

g1smd

7:38 pm on Jan 22, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



My logs are named daily, with sitename-20100122.log being today's log file name.

smallcompany

8:38 pm on Jan 22, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



My logs are named that way on one host but not on another. On the one where they're by day, I don't have a full access to config files so I can't see what it says to replicate to the second one where I want it that way.

smallcompany

10:43 pm on Jan 22, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



OK. As a real "junior" it looks like I mixed Apache with Linux.

The particular logrotate.conf file falls under Linux, not Apache.

In regards of the naming, I figure I don;t set how they'll be named, but that depends on the settings like daily, weekly, etc.

I just wonder now where do I look for Linux information. When I run php info command, I only got Linux under system and host, but no version or anything else. I just wonder how I figure which documentation to use.

Anyway, getting closer. Changing settings to daily now. :)

smallcompany

3:24 am on Feb 1, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I thought I should reply to my own post as I'm still working on this as my "junior" theory was not complete.
I have to upgrade logrotate on my VPS.

Does anyone know about documentation that lays out how to upgrade logrotate so I can utilize dateext?

I came across few pages that talk about compiling and running some commands on Linux... man... that's quite hi-tech for me, I don't even know what version I run. I always thought it's Apache...
I'm still very confused.

Thanks