Solved

How to configure Squid to use syslogd server

Posted on 2003-10-24
11
607 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
11 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 34 total points
ID: 9612951
.... in /etc/syslog.conf ...

-- Glenn
0
 
LVL 6

Assisted Solution

by:S0lar
S0lar earned 33 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
 
LVL 20

Expert Comment

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

-- Glenn
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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 33 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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
My bash alias isn't executing 5 47
Kali Linux store / persist wireless password 3 48
Linux Scripting 3 102
mcrypt_create_iv() is deprecated 4 70
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now