?
Solved

How to configure Squid to use syslogd server

Posted on 2003-10-24
11
Medium Priority
?
635 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 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
10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

 
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month11 days, 10 hours left to enroll

752 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