Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cronjob: einzelne Einträge in /var/log/messages unterbinden?
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
gosar
n00b
n00b


Joined: 01 Nov 2005
Posts: 52

PostPosted: Fri Mar 03, 2006 11:33 am    Post subject: cronjob: einzelne Einträge in /var/log/messages unterbinden Reply with quote

Hallo,

in meiner /etc/crontab existieren neben anderen Einträgen auch 2 Einträge, welche zum Zeitabgleich und Verbindunghalten (ping) zuständig sind.

Code:
*/5 * * * *     root    rdate -s ptbtime1.ptb.de
*/3 * * * *     root    ping -c 5 194.25.2.129 > /dev/null 2>&1 #ping alle 3 minuten


Diese flooden unnötig mein Protokoll /var/log/messages.

Kann ich diese Einträge aus der Protokollierung herausnehmen?
Wenn ja, wie?

Ich benutze vixie-cron.


Danke.

Gruß,
gosar
_________________
... and may the source be with Gnu ...
Back to top
View user's profile Send private message
smg
Veteran
Veteran


Joined: 13 Aug 2004
Posts: 1402
Location: /home/stephan

PostPosted: Fri Mar 03, 2006 12:27 pm    Post subject: Reply with quote

Hat Vixie-Cron sogenannte LogLevels? Vielleicht reicht auch wenn du
Code:
&> /dev/null
einbaust.

Bye.
_________________
GnuPG-Key-ID: 0xF8C275D4
Fingerprint: 5B6F 134A 189B A24D 342B 0961 8D4B 0230 F8C2 75D4
Code:
perl -WTe '($")=$/;print qq(@{[reverse('0'..'100')]}$/BOOM!$/);'
Back to top
View user's profile Send private message
gosar
n00b
n00b


Joined: 01 Nov 2005
Posts: 52

PostPosted: Fri Mar 03, 2006 12:50 pm    Post subject: Reply with quote

Hallo smg.
Danke für den Tipp,
nur hat ein hinzufügen von '&> /dev/null' nichts gebracht, leider werden diese Einträge immer noch in der Log-Datei angezeigt.

Hat noch jemand ne Idee?
_________________
... and may the source be with Gnu ...
Back to top
View user's profile Send private message
schmutzfinger
Veteran
Veteran


Joined: 26 Oct 2003
Posts: 1287
Location: Dresden/Germany

PostPosted: Fri Mar 03, 2006 4:26 pm    Post subject: Reply with quote

Was nutzt du für syslog? Bei metalog kann man per regexp nochmal filtern bevor man in die logs schreibt. Bei syslog-ng geht das imho auch.
Back to top
View user's profile Send private message
gosar
n00b
n00b


Joined: 01 Nov 2005
Posts: 52

PostPosted: Fri Mar 03, 2006 6:07 pm    Post subject: Reply with quote

Ich benutze syslog-ng.
Danke, prima Ansatz.
Wie kann ich dort regexp einsetzen?
_________________
... and may the source be with Gnu ...
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Fri Mar 03, 2006 7:14 pm    Post subject: Reply with quote

1. die Uhrzeit über rdate+cron zu setzen ist eine schlechte Idee; schau dir mal NTP an
2. Syslog-NG Filter
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
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