LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-02-2004, 11:09 AM   #1
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Rep: Reputation: 30
edit /etc/syslog.conf


how do i edit my syslong.conf file to redirect all the pop3 entries in my /var/log/secure to it's own log file.....something i could make up like /var/log/pop3. one of my servers is used for the mail system and the pop3d runs every 15 minutes. i'd like to be able to reference my /var/log/secure file without having to parse through tons and tons of pop3 entries. any help would be appreciated. thnx
 
Old 04-02-2004, 02:51 PM   #2
BigNate
Member
 
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
I am not at a linux box right now to look at the files you are talking about...but I would gamble that you will need a script to handle the parsing. I'd use perl, but bash would work I am sure.
 
Old 04-08-2004, 12:01 PM   #3
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Original Poster
Rep: Reputation: 30
i don't think you have to script the sparce......./etc/syslog.conf looks like you can do some kind of keyword deal to redirect to a different log.

cron to /var/log/cron
mail to /var/log/maillog

i'm just not sure what the filter process is. i just want jobs that are obviously pop3 stuff to go to it's own log. has anybody out there created a new set of files under their /var/log directory? stuff that would create the

maillog
maillog.1
maillog.2
maillog.3
maillog.4

files, except for something else we create.

any help?

Last edited by wedgeworth; 04-08-2004 at 12:04 PM.
 
Old 04-08-2004, 01:58 PM   #4
gandalf2041
Member
 
Registered: Jul 2003
Location: Sunny Florida, USA
Distribution: Ubuntu 6.06 LTS
Posts: 53

Rep: Reputation: 15
I believe you need to use one of the local facilities:

e.g. :
Code:
 local0.*                    <path to custom log>
check out the man page for sysconf.log. It's got several examples.
 
  


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
grep in syslog.conf komo Linux - General 2 11-16-2005 04:56 AM
How to edit /etc/syslog.conf (last message repeated...) slackaddict Slackware 2 11-23-2004 04:21 AM
syslog.conf, can you log to console? stakhous Linux - Newbie 1 07-31-2004 12:22 AM
How to edit Lilo.conf? jmr0311 Linux - Newbie 17 07-07-2004 12:23 AM
syslog-ng conf confusion cyph3r7 Linux - Software 0 07-06-2004 11:02 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration