Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
syslog-ng mail.log.username
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
daemonb
Apprentice
Apprentice


Joined: 24 Jul 2002
Posts: 242

PostPosted: Tue Oct 19, 2004 11:07 pm    Post subject: syslog-ng mail.log.username Reply with quote

Hallo leute,

kann ich unter syslog-ng eine regel erstellen, die für jeden user auf dem system eine separate mail log bekommt?
Soltle folgendermaßen funktionieren:

email:user1@example.com
logdatei: /var/log/mail.user1.log
user2@example.com
logdatei: /var/log/mail.user2.log

Wie müsste das aussehen?
Kann man das dynamisch machen?

danke schonmal an euch

daemonb
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Tue Oct 19, 2004 11:17 pm    Post subject: Re: syslog-ng mail.log.username Reply with quote

daemonb wrote:
kann ich unter syslog-ng eine regel erstellen, die für jeden user auf dem system eine separate mail log bekommt?

Und der Sinn dahinter?

Quote:
Kann man das dynamisch machen?

Nein. Aber beim metalog kann man nach regulären Ausdrücken sortieren. Trotzdem erschließt sich der Sinn hinter deinem Einsatzzweck nicht wirklich...

Gruß,
/dev
Back to top
View user's profile Send private message
daemonb
Apprentice
Apprentice


Joined: 24 Jul 2002
Posts: 242

PostPosted: Wed Oct 20, 2004 9:16 am    Post subject: Reply with quote

Ich mache das sicher nicht, weil ich gerade lust darauf bekommen habe. :lol:
Will eine art statistiktool implementieren, da die funktionen, aber für bestimmt zeiträume und nur für bestimmte user gedacht sind, muss das SEHR sauber getrennt werden, was wiederum zu meinem problem führt.

Kann mir da noch jemand weiterhelfen?
Back to top
View user's profile Send private message
dakjo
Veteran
Veteran


Joined: 31 Jan 2004
Posts: 1544

PostPosted: Wed Oct 20, 2004 10:25 am    Post subject: Reply with quote

Schau doch mal hier http://www.campin.net/newlogcheck.html vielleicht hilfts.
_________________
'Dieselben Naturkräfte, die uns ermöglichen, zu den Sternen zu fliegen, versetzen uns auch in die Lage, unseren Stern zu vernichten.' - Wernher von Braun
http://www.mpsna.de
Back to top
View user's profile Send private message
daemonb
Apprentice
Apprentice


Joined: 24 Jul 2002
Posts: 242

PostPosted: Wed Oct 20, 2004 11:33 am    Post subject: Reply with quote

interessante seite, wäre aber eher für den notfall, da ich meine IO Zugriffe gleichzeitig möglichst im keller halten wollte ......
Noch einer einen vorschlag?
Werde mir nochmal metalog anschauen, evtl kann das ja mit reg exp ausdrücken arbeiten und mir helfen.

danke

DaemonB
Back to top
View user's profile Send private message
Deever
Veteran
Veteran


Joined: 06 Jul 2002
Posts: 1354
Location: Zürich / Switzerland

PostPosted: Wed Oct 20, 2004 2:41 pm    Post subject: Reply with quote

daemonb wrote:
Werde mir nochmal metalog anschauen, evtl kann das ja mit reg exp ausdrücken arbeiten und mir helfen.

Sag ich doch! ;)

Gruß,
/dev
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum