<div dir="ltr">Hi <br><br>i am getting started with syslog<br><br>can i add a new facility different from ( mail ... local0 to 7)<br><br>what i did til now is sending every thing (src) to a syslog server via udp<br><div>
<br> </div><div>#########" client syslog <br></div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">filter myfil1 { facility(local1); };# let only local1 = error log apache<br>
</blockquote><div> </div><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">destination loghost {<br> udp("192.168.1.66" port(514));<br>
};<br>log {<br> source(src);<br> <br> filter(myfil1);<br> destination(loghost);<br>};<br></blockquote><br>###Server syslog<br><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">
source src {<br> #<br> # include internal syslog-ng messages<br> # note: the internal() soure is required!<br> #<br># internal();<br><br> #<br> # the default log socket for local logging:<br>
#<br># unix-dgram("/dev/log");<br><br> #<br> # uncomment to process log messages from network:<br> #<br> #udp(ip("0.0.0.0") port(514));<br> udp(port(514));<br>
<br><br>};<br>source src {<br> #<br> # include internal syslog-ng messages<br> # note: the internal() soure is required!<br> #<br># internal();<br><br> #<br> # the default log socket for local logging:<br>
#<br># unix-dgram("/dev/log");<br><br> #<br> # uncomment to process log messages from network:<br> #<br> #udp(ip("0.0.0.0") port(514));<br> udp(port(514));<br>
<br><br>};<br></blockquote><br><br><br>and sent <br><br>Apache erreor to syslog :local1 /mod_log_config.conf<br><br>Errorlog syslog:local1<br><br>**************<br><br>what i tried and didnot work is adding <br><br>/var/log/apache2/errorlog<br>
<br>as sorce because of permession denial <br>and using unix-stream<br> unix-dgram<br> pipe ( i created file with) mkififo<br><br>between apache and syslog<br><br>nothing<br>so <br><br>sorry if i am bothering but my questions are<br>
<br><br>1 can i add a new facility like local1 and collect on it apapche error log <br>if no <br>is <br><br>Errorlog syslog: local1 the <b>best</b> way <br><br>with a filter on local1<br><br>2 does local1in my case contain only appache error log<br>
<br>3 if there is another way be my gest i am hering <br><br><br>Sorry am not good in eglish <br><br><br><br></div>