Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 04-02-2004, 12:09 PM   #1
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, 03:51 PM   #2
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, 01:01 PM   #3
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


files, except for something else we create.

any help?

Last edited by wedgeworth; 04-08-2004 at 01:04 PM.
Old 04-08-2004, 02:58 PM   #4
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. :
 local0.*                    <path to custom log>
check out the man page for sysconf.log. It's got several examples.


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

All times are GMT -5. The time now is 05:52 PM.

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