<html><head><base href="x-msg://30/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 20, 2011, at 12:17 PM, Steven Shepherd wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; color: rgb(0, 0, 0); ">OK, so syslog has come a long way and many configuration changes in the years :)<br><br>Can someone provide working examples of&nbsp; (3.1.X) client/server syslog-ng.conf set up for remote logging purposes such as /var/log/messages, /var/log/kern.log, /var/log/auth.log...etc?&nbsp; Would want on local machine as well as remote syslog server. &nbsp; Will also want to remotely log apache access/error log via syslog-ng as well.&nbsp; Any help/tips/pointers is greatly appreciated!<br></div></div></span></blockquote><div><br></div></div><div><br></div><div>For Apache access logs I'd recommend piping to the logger command. I actually do that for error logs as well so they can be separated out. Use logger's "-t &lt;name&gt;" option to specify access vs. error and it is easy to catch them in syslog-ng. Note that if you customize your access log to the point that the messages could be large (as in recording the User agent) you may want to modify logger's source to have it submit the larger messages.&nbsp;</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Cheers,</div><div>Bill</div><div><br></div><div>--</div>Bill Anderson, RHCE</div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Linux Systems Engineer<br></div></div><div><a href="mailto:bill.anderson@bodybuilding.com">bill.anderson@bodybuilding.com</a></div><div><br></div></span><br class="Apple-interchange-newline">
</div>
<br></body></html>