Sponsored Content
Operating Systems Linux SuSE syslog-ng - dont log specific entries Post 302530837 by jackcracker on Wednesday 15th of June 2011 05:25:30 AM
Old 06-15-2011
syslog-ng - dont log specific entries

Hi @ all,

I´ve a short question, perhaps somebody could help me ...

How can I configure syslog-ng either not to log specific entries in messages or write them into another file ...

Here´re my extract from syslog-ng.conf:
Code:
...
filter f_imap      { match(imap); };
...
destination imap { file("/var/log/imap"); };
log { source(src); filter(f_imap); destination(imap); };
...

I wan´t not log such entries with imap in it,
eg:
Code:
...
Jun 15 09:47:53 host imap[9797]: accepted connection
Jun 15 09:47:53 host imap[9797]: login: host.domain.com [127.0.0.2] imap_user PLAIN User logged in
Jun 15 09:47:53 host imap[9797]: open: user imap_user opened user....

but this doesn´t work ... where´s my mistake?

Thanks for help.
Regards,
Michael
 

9 More Discussions You Might Find Interesting

1. Programming

I dont want this

Im creating a sort of shell, for my cybercafe This will restrict my clients from accessing unwanted materials so im programming a similar bash to 1. to meet my goals 2. to learn new things. im creating it in C, please have a look at the attachement. i wish to avoid having a blank space... (6 Replies)
Discussion started by: C|[anti-trust]
6 Replies

2. Shell Programming and Scripting

specific date on the log

Hi All, I have problem with my script grep error /var/adm/message* | grep $1 $2 > /tmp/error-adm$1$2 actually, i want to make the admin enter specific date like "Mar 10" how i can do that Thank you Ahmad (1 Reply)
Discussion started by: ahmad_one
1 Replies

3. What is on Your Mind?

dont understand

i'm trying to learn unix and i posted a question and what i was typing from school. i can't figure it out. how am i supposed to learn , when i get shutdown by an admin. for posting a homework question. doesn't make any sense. its a dumb rule. thanks for helping (4 Replies)
Discussion started by: AtomJ22
4 Replies

4. UNIX and Linux Applications

mysql query all entries which 'dont' match

I am trying to query a list of hosts and extract all entries which 'dont' match. SELECT LOGS.host, GOODLIST.host FROM LOGS,db.GOODLIST WHERE (LOGS.host <> GOODLIST.host)When I use this query, it is very very slow. Matching the host with the GOODLIST.host works great and fast but when I use <>... (1 Reply)
Discussion started by: hazno
1 Replies

5. Shell Programming and Scripting

i dont know where problem!!

okthanksi solve it :) (1 Reply)
Discussion started by: dream23
1 Replies

6. Shell Programming and Scripting

urgent :S dont know why its not working

hello, i am trying to put users2 information to file appraisalrecord, however it is not working and i tried everything. overall, i just want to show that when they enter the user number it will verify in the file to see does that user number exist, if yes they have to a new user number if no they... (7 Replies)
Discussion started by: bassmasta1
7 Replies

7. Shell Programming and Scripting

Urgent request to consider:Search specific name in a file and fetch specific entries

Hi all, I have 2 files, One file contain data like this FHIT CS CHRM1 PDE3A PDE3B HSP90AA1 PTK2 HTR1A ESR1 PARP1 PLA2G1B These names are mentioned in the second file(Please see attached second file) as # Drug_Target_X_Gene_Name:(Where X can be any number (1-1000) (1 Reply)
Discussion started by: manigrover
1 Replies

8. Shell Programming and Scripting

Search specific name in a file and fetch specific entries

Hi all, I have 2 files, One file contain data like this FHIT CS CHRM1 PDE3A PDE3B HSP90AA1 PTK2 HTR1A ESR1 PARP1 PLA2G1B These names are mentioned in the second file(Please see attached second file) as (7 Replies)
Discussion started by: manigrover
7 Replies

9. UNIX for Dummies Questions & Answers

Search for a specific String in a log file for a specific date range

Hi, I have log file which rolls out every second which is as this. HttpGenRequest - -<!--OXi dbPublish--> <created="2014-03-24 23:45:37" lastMsgId="" requestTime="0.0333"> <response request="getOutcomeDetails" code="114" message="Request found no matching data" debug="" provider="undefined"/>... (3 Replies)
Discussion started by: karthikprakash
3 Replies
imapd(8)						      System Manager's Manual							  imapd(8)

NAME
imapd - Internet Message Access Protocol (IMAP) server process SYNOPSIS
/usr/sbin/imapd DESCRIPTION
The IMAP4rev1 server, imapd, accepts commands on its standard input and responds on its standard output. It is normally invoked by the inetd command and it reads its configuration options out of the imapd.conf file. If you want to take the IMAP server off line for a period of time, you should notify the client systems. To do this, create a msg/shutdown file, edit it, and state the reason for the shut down. Set the owner of the msg directory and the shutdown file to be the imap user. When a client system tries to access the server, imapd sends the first line contained in the shutdown file to the client and closes the connec- tion. If you want to send a message to the IMAP clients without disabling connections, create a msg/motd file, edit it, and add your message. Set the owner of the msg directory and the motd file to be the imap user. The server sends the first line contained in the file to the clients upon connection as an ALERT message, which IMAP-compliant clients are required to display. Access to mailboxes is unaffected. For debugging purposes, create a log/user directory. When this directory exists, the imapd daemon creates protocol telemetry logs for ses- sions authenticating as user. The telemetry logs are stored in the log/user directory with the file name of the imapd process id. The msg/shutdown and msg/motd files and the log/user directory should be created under the directory specified in the configdirectory con- figuration option of the imapd.conf file. The default value is /var/imap, as in /var/imap/msg/motd. FILES
Configuration file for the IMAP server SEE ALSO
Commands: cyradm(1), deliver(8), imapd(8), imapquota(8), inetd(8), reconstruct(8) Files: imapd.conf(4) Network Administration imapd(8)
All times are GMT -4. The time now is 10:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy