[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    Re: [users@httpd] Log to syslog?
From:       "Paul Kudla (SCOM.CA Internet)" <paul () scom ! ca>
Date:       2022-04-12 12:43:12
Message-ID: 259ad7d2-f113-d406-6b3e-f7694c26381b () scom ! ca
[Download RAW message or body]

I have worked on this issue for over ten years

unitil apache will redirect to syslog properly then you need to do the 
workarounds

no other options to my knowledge



Happy Tuesday !!!
Thanks - paul

Paul Kudla


Scom.ca Internet Services <http://www.scom.ca>
004-1009 Byron Street South
Whitby, Ontario - Canada
L1N 4S3

Toronto 416.642.7266
Main 1.866.411.7266
Fax 1.888.892.7266
On 4/12/2022 8:27 AM, Antony Stone wrote:
> On Tuesday 12 April 2022 at 13:32:40, Paul Claridge wrote:
>
>> Did you find the info on loggly.com?
> I foundhttps://www.loggly.com/ultimate-guide/centralizing-apache-logs/  and it
> was essentially a summary of the two mechanisms I had already found elsewhere
> and posted in my original question - telling rsyslog to track file contents
> written by Apache, or using logger in a CustomLog definition.
>
>> Not sure if it covers precisely your requirements.
> They look like they would work for me, however I regard them as "workarounds"
> and wanted to see whether anyone knew of a way to do it natively in Apache.
>
> I'm surprised that it appears not to be possible, but thanks to everyone for
> their responses so far.
>
>
> Antony.
>
>> On 12 Apr 2022, at 11:59, Marc<Marc@f1-outsourcing.eu>  wrote:
>>>>> i went through this issue the hard way
>>>> Urgh - thanks for the comprehensive reply.
>>>>
>>>>> there does not seem to be anything at all as apache seems to be all
>>>>> file related
>>>> I wonder why mod_syslog has not been made more generic?
>>>>
>>>>> redirecting to logger just does not work.
>>>>>
>>>>> i wrote a python script that uses sockets (assuming linux, freebsd etc)
>>>> Yes, I'm on Linux - thanks for the script, and for the comments re
>>>> logger etc.
>>>>
>>>> *If anyone else has a suggestion for how Apache can log to syslog, I'm
>>>> still interested in other possible ways to achieve it!*
>>> I have been asking something similar a while ago, logggin to something
>>> like influx. I know how to redirect syslog to influx. So if I can
>>> redirect eg ip's and 2XX/4XX to syslog, that would be very interesting.

[Attachment #3 (multipart/related)]

[Attachment #5 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="Helvetica, Arial, sans-serif">I have worked on this
      issue for over ten years<br>
      <br>
      unitil apache will redirect to syslog properly then you need to do
      the workarounds<br>
      <br>
      no other options to my knowledge<br>
      <br>
    </font>
    <div class="moz-signature">
      <font color="blue">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <title></title>
        <br>
        <br>
        Happy Tuesday !!!<br>
        Thanks - paul<br>
        <br>
        Paul Kudla<br>
        <br>
        <br>
        <a href="http://www.scom.ca"><img alt="Scom.ca Internet
            Services" src="cid:part1.UM4AmTED.mAPpaq3s@scom.ca"
            width="191" height="43" border="0"></a><br>
        004-1009 Byron Street South<br>
        Whitby, Ontario - Canada<br>
        L1N 4S3<br>
        <br>
        Toronto 416.642.7266<br>
        Main 1.866.411.7266<br>
        Fax 1.888.892.7266
      </font></div>
    <div class="moz-cite-prefix">On 4/12/2022 8:27 AM, Antony Stone
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:202204121427.18744.Antony.Stone@apache.open.source.it">
      <pre class="moz-quote-pre" wrap="">
On Tuesday 12 April 2022 at 13:32:40, Paul Claridge wrote:

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Did you find the info on loggly.com?
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
I found <a class="moz-txt-link-freetext" \
href="https://www.loggly.com/ultimate-guide/centralizing-apache-logs/">https://www.loggly.com/ultimate-guide/centralizing-apache-logs/</a> \
and it  was essentially a summary of the two mechanisms I had already found elsewhere \
 and posted in my original question - telling rsyslog to track file contents 
written by Apache, or using logger in a CustomLog definition.

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Not sure if it covers precisely your \
requirements. </pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
They look like they would work for me, however I regard them as "workarounds" 
and wanted to see whether anyone knew of a way to do it natively in Apache.

I'm surprised that it appears not to be possible, but thanks to everyone for 
their responses so far.


Antony.

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">On 12 Apr 2022, at 11:59, Marc <a \
class="moz-txt-link-rfc2396E" \
href="mailto:Marc@f1-outsourcing.eu">&lt;Marc@f1-outsourcing.eu&gt;</a> wrote: </pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <blockquote type="cite">
              <pre class="moz-quote-pre" wrap="">i went through this issue the hard \
way </pre>
            </blockquote>
            <pre class="moz-quote-pre" wrap="">
Urgh - thanks for the comprehensive reply.

</pre>
            <blockquote type="cite">
              <pre class="moz-quote-pre" wrap="">there does not seem to be anything \
at all as apache seems to be all file related
</pre>
            </blockquote>
            <pre class="moz-quote-pre" wrap="">
I wonder why mod_syslog has not been made more generic?

</pre>
            <blockquote type="cite">
              <pre class="moz-quote-pre" wrap="">redirecting to logger just does not \
work.

i wrote a python script that uses sockets (assuming linux, freebsd etc)
</pre>
            </blockquote>
            <pre class="moz-quote-pre" wrap="">
Yes, I'm on Linux - thanks for the script, and for the comments re
logger etc.

*If anyone else has a suggestion for how Apache can log to syslog, I'm
still interested in other possible ways to achieve it!*
</pre>
          </blockquote>
          <pre class="moz-quote-pre" wrap="">
I have been asking something similar a while ago, logggin to something
like influx. I know how to redirect syslog to influx. So if I can
redirect eg ip's and 2XX/4XX to syslog, that would be very interesting.
</pre>
        </blockquote>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
</pre>
    </blockquote>
    <br>
  </body>
</html>


["scomca-logo.jpg" (image/jpeg)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic