How to configure Squid to use syslogd server

Hi

I have a syslogd running on one machine and Squid server on other machine. My problem is how to configure Squid server to use syslogd server on remote machine.

Thanks

Shreekar
LVL 1
shreekarAsked:
Who is Participating?
 
GnsConnect With a Mentor Commented:
.... in /etc/syslog.conf ...

-- Glenn
0
 
GnsCommented:
man syslog.conf
look at how to forward the facility.priority to anothe machine. For instance, to forward all messages of the "warning" priority, you could do
*.warning: @theotherhost

-- Glenn
0
 
S0larConnect With a Mentor Commented:
I'll expand a bit Glenn's comment:

SQUID uses LOG_ERR and LOG_LOCAL4

So, put following line in syslogd.conf:
local4.* @some.other.host

---------
NOTE1: do not use high debug-level to save bandwidth
NOTE2: on other host syslogd should be run with -u option (AFAIR)

P.S. : re2Gns :)
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
GnsCommented:
Thanks for the expaqnsion S0lar... Been a while since I ran a squid:-).

-- Glenn
0
 
shreekarAuthor Commented:
Hi

What configuration change to be made in Squid.cong for redirecting access.log to remote syslogd server??

Shreekar
0
 
S0larCommented:
squid just uses syslogd's log facilities. you need to edit /etc/syslog.conf
0
 
Ravi GoruConnect With a Mentor Technical ConsultantCommented:

while starting squid .. u need to use .. '-s' option .. so as to use  enable syslogging .. !!

and .. in the syslog.conf .. u need to mention .. the remote machine's name  or the log server . ;))

and .. on the log server.. u neeed to start the syslog daemon .. iwth .. '-u' option. ;!!

and let me know.. if at all its not happening .. i will cross check the docs again.. its quite sometime.. ;))

anyways best of luck ..!!

RaviGoru
0
 
GnsCommented:
Am I blind, or is this a threeway split?

-- Glenn
0
 
Karl Heinz KremerCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Split between Gns, S0lar and ravigoru
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

khkremer
EE Cleanup Volunteer
0
All Courses

From novice to tech pro — start learning today.