Logging, Syslog and Log Anaylsys Forums
July 30, 2010, 09:43:58 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
   Home   WIKI BLOG Help Search Recent Topics GoogleTagged Login Register  
Pages: [1]
  Print  
Author Topic: rewrite or parser??  (Read 498 times)
lorenzo75
Newbie
*
Offline Offline

Posts: 6


View Profile
« on: February 19, 2010, 09:51:12 am »

Hi all,
i've installed syslog-ng as suggeted me in topic "modify string of syslog server" in syslogd forum.
Waiting for "admin" posts the istructions, i'm trying to do that on my own Smiley
My problem is delete informations that syslog server put at the beginning of a record recieved from a squid server.
What is better to do that?
should I use "rewrite" or "parser"?

thanks a lot in advance for any help

lorenzo
« Last Edit: February 19, 2010, 10:08:15 am by lorenzo75 » Logged
Admin
Administrator
Newbie
*****
Offline Offline

Posts: 146


View Profile WWW
« Reply #1 on: February 19, 2010, 10:32:49 am »

Sorry for the delay.  You want to use a template.  Try using a destination() like this:

destination d_squid{ file("/var/log/squid.log" template("$MSG\n")); };

This will discard the old header and only use the syslog-ng header.  
« Last Edit: February 24, 2010, 05:34:32 pm by Admin » Logged
lorenzo75
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #2 on: February 19, 2010, 10:44:51 am »

Do not warry for delay Smiley
sometimes I like to try find out solutions  Wink

anyway thanks a lot for the post...i'll test right now
Logged
lorenzo75
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #3 on: February 19, 2010, 10:47:57 am »

great... Smiley it works Smiley
thanks a lot

Smiley
Lorenzo
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!