Current time: 12-25-2024, 11:40 PM Hello There, Guest! (LoginRegister)


Post Reply 
imap traffic - strange things
Author Message
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #17
RE: imap traffic - strange things
I changed the script but the imap.log is empty.
I commited the delete lines in the script so the log files now exists on my system.
Started to do it manually:
Code:
/var/www/ispcp/engine/traffic# cat /var/log/mail.log|grep 'imap-login'|grep 'user='|grep 'body='|grep -v 'ip=\\[::ffff:127.0.0.1\\]'|awk '{print \$7,\$9,substr(\$10,1,length(\$10)-1);}'
awk: {print \$7,\$9,substr(\$10,1,length(\$10)-1);}
awk:        ^ backslash not last character on line
Until here it works:
Code:
cat /var/log/mail.log|grep 'imap-login'|grep 'user='
Nov 28 12:52:18 vs248XX dovecot: imap-login: Login: user=<bene@mydomain.de>, method=plain, rip=217.243.170.XXX, lip=62.75.24X.XX, TLS
Nov 28 13:41:07 vs248XX dovecot: imap-login: Login: user=<bene@mydomainde>, method=plain, rip=217.243.170.XXX, lip=62.75.24X.XX, TLS

Looks like an awk error ?

Greez BeNe
(This post was last modified: 11-29-2007 12:15 AM by BeNe.)
11-29-2007 12:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
imap traffic - strange things - joximu - 11-27-2007, 08:12 PM
RE: imap traffic - strange things - joximu - 11-27-2007, 11:50 PM
RE: imap traffic - strange things - BeNe - 11-28-2007, 12:02 AM
RE: imap traffic - strange things - joximu - 11-28-2007, 12:21 AM
RE: imap traffic - strange things - joximu - 11-28-2007, 08:39 PM
RE: imap traffic - strange things - BeNe - 11-28-2007, 08:46 PM
RE: imap traffic - strange things - BeNe - 11-28-2007, 10:20 PM
RE: imap traffic - strange things - joximu - 11-28-2007, 10:23 PM
RE: imap traffic - strange things - BeNe - 11-28-2007, 10:27 PM
RE: imap traffic - strange things - joximu - 11-28-2007, 10:33 PM
RE: imap traffic - strange things - BeNe - 11-28-2007, 10:37 PM
RE: imap traffic - strange things - BeNe - 11-28-2007, 10:50 PM
RE: imap traffic - strange things - joximu - 11-28-2007, 10:58 PM
RE: imap traffic - strange things - BeNe - 11-28-2007, 11:10 PM
RE: imap traffic - strange things - joximu - 11-28-2007, 11:17 PM
RE: imap traffic - strange things - BeNe - 11-29-2007 12:14 AM

Forum Jump:


User(s) browsing this thread: 3 Guest(s)