Re: Rolling Logs

2025-01-09 Thread Eric Covener
> "Everyone on linux has a solution" is not the same as "everyone has a
> solution". A built-in implementation (with a limited feature set
> presumably) would give everyone at least a basic incantation of this
> (and those who prefer can still use logrotate).

Piped loggers and rotatelogs work on Windows.


Re: Rolling Logs

2025-01-09 Thread Johan Corveleyn
On Thu, Jan 9, 2025 at 12:56 AM Noel Butler  wrote:
> On 09/01/2025 00:08, Eric Covener wrote:
>> On Wed, Jan 8, 2025 at 8:41 AM Edson Alves Pereira  
>> wrote:
>>>
>>> Hello guys, I´d like to add a Rolling Log feature to Apache Web Server, 
>>> some like if the user add:
>>>
>>> RollingLog = true
>>>
>>> on httpd.conf, Apache will automatically add ( -MMDD ) to the end of 
>>> log´s file name.
>>
>> People commonly use rotatelogs / piped logging and OS facilities like
>> logrotated which are both pretty flexible.
>> Why another way?
>
> logrotate installed on just about every linux distro has been around a very 
> long time and is proven.

Maybe not the most common setup, but what do people do when running
Apache httpd on Windows? I don't run one myself, but still I'm
wondering if there are also "standard" solutions for Windows.

"Everyone on linux has a solution" is not the same as "everyone has a
solution". A built-in implementation (with a limited feature set
presumably) would give everyone at least a basic incantation of this
(and those who prefer can still use logrotate).

-- 
Johan


Re: Rolling Logs

2025-01-08 Thread Noel Butler

On 09/01/2025 00:08, Eric Covener wrote:


On Wed, Jan 8, 2025 at 8:41 AM Edson Alves Pereira
 wrote:

Hello guys, I´d like to add a Rolling Log feature to Apache Web 
Server, some like if the user add:


RollingLog = true

on httpd.conf, Apache will automatically add ( -MMDD ) to the end 
of log´s file name.


People commonly use rotatelogs / piped logging and OS facilities like
logrotated which are both pretty flexible.
Why another way?


logrotate installed on just about every linux distro has been around a 
very long time and is proven.


An observation with auto rolling, we use and have used DNews usenet news 
server since the 90's, by default, it auto rolls logs daily, back in the 
90's we quickly realized how ridiculous that was and disabled DNews' log 
management and have logrotate handle it, which it does perfectly, to 
this day, so lets not make the same mistake here :)

Re: Rolling Logs

2025-01-08 Thread Noel Butler

On 09/01/2025 01:00, Thomas Meyer wrote:

OTOH under Linux, you can use systemd to start httpd and use 
/dev/stdout as log target and use journald to capture the


No, not under linux at all, it is under *some distributions* that want 
to infest their users with systemd. There are still well known distros 
that do not use systemd and have no intentions of it.

Re: Rolling Logs

2025-01-08 Thread Thomas Meyer



Am 8. Januar 2025 15:51:31 MEZ schrieb Jim Jagielski :
>
>
>> On Jan 8, 2025, at 9:17 AM, Edson Alves Pereira  
>> wrote:
>> 
>> I wanted something built-in with apache which would not need a third party 
>> tool.
>> 
>> On Wed, Jan 8, 2025 at 11:10 AM Eric Covener > > wrote:
>>> On Wed, Jan 8, 2025 at 8:41 AM Edson Alves Pereira
>>> mailto:[email protected]>> wrote:
>>> >
>>> > Hello guys, I´d like to add a Rolling Log feature to Apache Web Server, 
>>> > some like if the user add:
>>> >
>>> > RollingLog = true
>>> >
>>> > on httpd.conf, Apache will automatically add ( -MMDD ) to the end of 
>>> > log´s file name.
>>> 
>>> People commonly use rotatelogs / piped logging and OS facilities like
>>> logrotated which are both pretty flexible.
>>> Why another way?
>
>
>
>Would love to see it. I can see how some would prefer something built in.

OTOH under Linux, you can use systemd to start httpd and use /dev/stdout as log 
target and use journald to capture the access logs.

Same for container use case, access log will probably always get directed to 
stdout and taken care of logging systems like fluentd or fluentbit or similar. 
A JSON output support for access logs would be really helpful in this 
constellation... :-)

Not sure what OS is mostly used by httpd, but probably Linux and most distros 
are systemd based and already offer a superior logging system with journald, 
but YMMV.

>
>--
>Jim
>"I don't need a compass to tell me which way the wind shines."
>
>
>

-- 
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.


Re: Rolling Logs

2025-01-08 Thread Jim Jagielski


> On Jan 8, 2025, at 9:17 AM, Edson Alves Pereira  
> wrote:
> 
> I wanted something built-in with apache which would not need a third party 
> tool.
> 
> On Wed, Jan 8, 2025 at 11:10 AM Eric Covener  > wrote:
>> On Wed, Jan 8, 2025 at 8:41 AM Edson Alves Pereira
>> mailto:[email protected]>> wrote:
>> >
>> > Hello guys, I´d like to add a Rolling Log feature to Apache Web Server, 
>> > some like if the user add:
>> >
>> > RollingLog = true
>> >
>> > on httpd.conf, Apache will automatically add ( -MMDD ) to the end of 
>> > log´s file name.
>> 
>> People commonly use rotatelogs / piped logging and OS facilities like
>> logrotated which are both pretty flexible.
>> Why another way?



Would love to see it. I can see how some would prefer something built in.

--
Jim
"I don't need a compass to tell me which way the wind shines."





Re: Rolling Logs

2025-01-08 Thread Edson Alves Pereira
I wanted something built-in with apache which would not need a third party
tool.

On Wed, Jan 8, 2025 at 11:10 AM Eric Covener  wrote:

> On Wed, Jan 8, 2025 at 8:41 AM Edson Alves Pereira
>  wrote:
> >
> > Hello guys, I´d like to add a Rolling Log feature to Apache Web Server,
> some like if the user add:
> >
> > RollingLog = true
> >
> > on httpd.conf, Apache will automatically add ( -MMDD ) to the end of
> log´s file name.
>
> People commonly use rotatelogs / piped logging and OS facilities like
> logrotated which are both pretty flexible.
> Why another way?
>


Re: Rolling Logs

2025-01-08 Thread Eric Covener
On Wed, Jan 8, 2025 at 8:41 AM Edson Alves Pereira
 wrote:
>
> Hello guys, I´d like to add a Rolling Log feature to Apache Web Server, some 
> like if the user add:
>
> RollingLog = true
>
> on httpd.conf, Apache will automatically add ( -MMDD ) to the end of 
> log´s file name.

People commonly use rotatelogs / piped logging and OS facilities like
logrotated which are both pretty flexible.
Why another way?