Mailing List Archive

pipe logs to somethings that resembles a curl post
I was wondering how I could use piped logs to redirect some logs, comparable to curl post requests.

[1]
https://httpd.apache.org/docs/current/logs.html
???????????????????????????????????????????????????????????????????????F?V?7V'67&?&R?R???âW6W'2?V?7V'67&?&T?GGB?6?R??&p?f?"FF?F????6????G2?R???âW6W'2?V??GGB?6?R??&p
RE: pipe logs to somethings that resembles a curl post [ In reply to ]
Currently I have modified some rust application that does this to satisfaction. But piping to a 60MB binary for quite a few virtual hosts does not really seem efficient to me.
Is there not some apache module that can offer a "global" access to logging and 'clones' all logging to some tcp socket? (I prefer not to route first to syslog)

>
>
> I was wondering how I could use piped logs to redirect some logs,
> comparable to curl post requests.
>
> [1]
> https://httpd.apache.org/docs/current/logs.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: pipe logs to somethings that resembles a curl post [ In reply to ]
Oops I was mislead by some old posts. GlobalLog[1] does this for everything. However I have not found what value[2] has the requested virtual host name.

[1]
https://httpd.apache.org/docs/current/mod/mod_log_config.html

[2]
https://httpd.apache.org/docs/current/mod/mod_log_config.html#formats

>
> Currently I have modified some rust application that does this to
> satisfaction. But piping to a 60MB binary for quite a few virtual hosts
> does not really seem efficient to me.
> Is there not some apache module that can offer a "global" access to
> logging and 'clones' all logging to some tcp socket? (I prefer not to
> route first to syslog)
>
> >
> >
> > I was wondering how I could use piped logs to redirect some logs,
> > comparable to curl post requests.
> >
> > [1]
> > https://httpd.apache.org/docs/current/logs.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
???????????????????????????????????????????????????????????????????????F?V?7V'67&?&R?R???âW6W'2?V?7V'67&?&T?GGB?6?R??&p?f?"FF?F????6????G2?R???âW6W'2?V??GGB?6?R??&p
RE: pipe logs to somethings that resembles a curl post [ In reply to ]
%v sorry for polluting this list

PS. If it is any consolation, I have registered myself at a retirement home

> -----Original Message-----
> From: Marc <Marc@f1-outsourcing.eu>
> Sent: Wednesday, 10 April 2024 14:22
> To: users@httpd.apache.org
> Subject: [users@httpd] RE: pipe logs to somethings that resembles a curl
> post
>
>
> Oops I was mislead by some old posts. GlobalLog[1] does this for
> everything. However I have not found what value[2] has the requested
> virtual host name.
>
> [1]
> https://httpd.apache.org/docs/current/mod/mod_log_config.html
>
> [2]
> https://httpd.apache.org/docs/current/mod/mod_log_config.html#formats
>
> >
> > Currently I have modified some rust application that does this to
> > satisfaction. But piping to a 60MB binary for quite a few virtual hosts
> > does not really seem efficient to me.
> > Is there not some apache module that can offer a "global" access to
> > logging and 'clones' all logging to some tcp socket? (I prefer not to
> > route first to syslog)
> >
> > >
> > >
> > > I was wondering how I could use piped logs to redirect some logs,
> > > comparable to curl post requests.
> > >
> > > [1]
> > > https://httpd.apache.org/docs/current/logs.html
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
B?KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB??[??X???X?KK[XZ[?\?\??][??X???X?P ?\X?K???B???Y][?[??[X[??K[XZ[?\?\??Z[ ?\X?K???B
Re: RE: pipe logs to somethings that resembles a curl post [ In reply to ]
On 4/10/24 07:22, Marc wrote:
>
> Oops I was mislead by some old posts. GlobalLog[1] does this for everything. However I have not found what value[2] has the requested virtual host name.
>
> [1]
> https://httpd.apache.org/docs/current/mod/mod_log_config.html
>
> [2]
> https://httpd.apache.org/docs/current/mod/mod_log_config.html#formats

You could also use
https://httpd.apache.org/docs/current/mod/mod_lua.html#luahooklog to
split up your logs or discard/silence certain entries.

>
>>
>> Currently I have modified some rust application that does this to
>> satisfaction. But piping to a 60MB binary for quite a few virtual hosts
>> does not really seem efficient to me.
>> Is there not some apache module that can offer a "global" access to
>> logging and 'clones' all logging to some tcp socket? (I prefer not to
>> route first to syslog)
>>
>>>
>>>
>>> I was wondering how I could use piped logs to redirect some logs,
>>> comparable to curl post requests.
>>>
>>> [1]
>>> https://httpd.apache.org/docs/current/logs.html
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: RE: pipe logs to somethings that resembles a curl post [ In reply to ]
> >
> > [1]
> > https://httpd.apache.org/docs/current/mod/mod_log_config.html
> >
> > [2]
> > https://httpd.apache.org/docs/current/mod/mod_log_config.html#formats
>
> You could also use
> https://httpd.apache.org/docs/current/mod/mod_lua.html#luahooklog to
> split up your logs or discard/silence certain entries.
>

Thanks! that is indeed also a nice option. I would not be surprised if I would want to manage this a bit more in the near future.
B?KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB??[??X???X?KK[XZ[?\?\??][??X???X?P ?\X?K???B???Y][?[??[X[??K[XZ[?\?\??Z[ ?\X?K???B