[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to configure Squid to use syslogd server

Posted on 2003-10-24
11
Medium Priority
?
652 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:shreekar
9 Comments
 
LVL 20

Expert Comment

by:Gns
ID: 9612946
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
 
LVL 20

Accepted Solution

by:
Gns earned 136 total points
ID: 9612951
.... in /etc/syslog.conf ...

-- Glenn
0
 
LVL 6

Assisted Solution

by:S0lar
S0lar earned 132 total points
ID: 9612973
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
Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

 
LVL 20

Expert Comment

by:Gns
ID: 9613297
Thanks for the expaqnsion S0lar... Been a while since I ran a squid:-).

-- Glenn
0
 
LVL 1

Author Comment

by:shreekar
ID: 9631906
Hi

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

Shreekar
0
 
LVL 6

Expert Comment

by:S0lar
ID: 9631926
squid just uses syslogd's log facilities. you need to edit /etc/syslog.conf
0
 
LVL 3

Assisted Solution

by:Ravi Goru
Ravi Goru earned 132 total points
ID: 9992457

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
 
LVL 20

Expert Comment

by:Gns
ID: 10183569
Am I blind, or is this a threeway split?

-- Glenn
0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10243735
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month18 days, 12 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question