LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2008, 02:32 AM   #1
porx
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Rep: Reputation: 0
Squid logs and syslog.conf


hi, I have a configuration problem of sending squid logs to my windows syslog server with linux syslog.conf(do i call it correct ?).

The problem is squid logs pattern is something like this :

1205355737.228 722 172.25.65.122 TCP_MISS/304 368 GET http://www.goals365.com/feed/com/min0.gif - DIRECT/83.170.72.207 -
1205355737.235 620 172.25.65.122 TCP_MISS/304 368 GET http://www.goals365.com/feed/com/min1.gif - DIRECT/83.170.72.207 -

But when logs arrive my syslog server some field are added :

(1152)squid(11276) 1205355737.235 620 172.25.65.122 TCP_MISS/304 368 GET http://www.goals365.com/feed/com/min1.gif - DIRECT/83.170.72.207 -


How can I get rid of additional field ? ((1152)squid(11276))

Squid.conf,syslog.conf ?

Thanks

PorX
 
Old 04-04-2008, 07:25 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
I'd assume that that was the windows service doing that, where did syslog.conf come into the equation? what's the linux side squid config set up?
 
Old 04-07-2008, 07:20 AM   #3
porx
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Thx

Thank you for your suggestion. I'm test on it and if i found something i will update again
 
Old 08-09-2008, 07:17 AM   #4
sakthi.s
Member
 
Registered: Nov 2006
Posts: 42

Rep: Reputation: 15
Can you pls tell me how you are getting squid logs in syslog server. I am struggling to get that for long time

Sakthi.S
 
Old 08-11-2008, 09:51 AM   #5
porx
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Lightbulb Try this one

Let's try this steps.

1. change configuration of squid.conf at it's logging path from
"/usr/local/squid/var/logs/access.log" to "/var/logs/access.log"

2. edit /etc/syslog.conf to send squid's log to your syslog server
access.* @(syslogserver)

3. restart service

Hope It may help.

PorX
 
Old 08-11-2008, 09:58 AM   #6
porx
LQ Newbie
 
Registered: Apr 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Smile summary for the thread

I finally found where the addition field of squid logs comes from.
The latest admin(who work before me) using kiwi syslog daemon to sent squid log to the log server. So, The addition's created by the process of kiwi. ><
Thx all
PorX
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tracing application logs in syslog shifter Programming 2 05-15-2007 04:38 AM
syslog-ng doen't generating logs emailssent Linux - Newbie 3 03-09-2005 06:44 AM
Guarddog logs in syslog short101 Linux - Security 3 01-06-2005 02:31 AM
Router Logs sent to Syslog - Can I change the location Gnarg Linux - Networking 4 08-10-2004 10:24 AM
Getting logs from a remote syslog ganninu Linux - Newbie 4 09-10-2003 10:05 AM


All times are GMT -5. The time now is 01:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration