Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
suche programm, dass auf logfiles/streams lauscht und filter
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
bröggle
Guru
Guru


Joined: 11 Oct 2004
Posts: 356

PostPosted: Sun May 15, 2005 10:16 am    Post subject: suche programm, dass auf logfiles/streams lauscht und filter Reply with quote

Hi,
ich suche ein Programm, dass auf logfiles/ streams/ Character Devices lauscht(so wie cat) und alles was neu dazu kommt durchsucht (wie grep) und bei bestimmten gefundenen Suchmustern dann eine bestimmte aktion ausführt.

LEider habe ich es bisher nicht geschafft das ganze irgendwie mit cat | grep hinzubekommen...


Danke
^-^
_________________
where is the n00b section?
Back to top
View user's profile Send private message
schachti
Advocate
Advocate


Joined: 28 Jul 2003
Posts: 3765
Location: Gifhorn, Germany

PostPosted: Sun May 15, 2005 10:47 am    Post subject: Reply with quote

Vielleicht hilft Dir tail mit der Option -f?
_________________
Never argue with an idiot. He brings you down to his level, then beats you with experience.

How-To: Daten verschlüsselt auf DVD speichern.
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


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

PostPosted: Mon May 16, 2005 8:13 am    Post subject: Reply with quote

Hi,

meinst du sowas wie Tenshi?

HTH
T.
_________________
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
kraut
Apprentice
Apprentice


Joined: 03 Jun 2005
Posts: 179

PostPosted: Wed Jun 08, 2005 4:11 pm    Post subject: Reply with quote

Hi bröggle,
hört sich interessant an! Darf man erfahren, was Du damit bezwecken möchtest?
Ansonsten nutze ich rkhunter sowie chkrootkit. Oder gehen Deine Bestrebungen in eine ganz andere Richtung 8O
Back to top
View user's profile Send private message
sarahb523
Guru
Guru


Joined: 10 Mar 2004
Posts: 423
Location: Berlin

PostPosted: Wed Jun 08, 2005 8:31 pm    Post subject: Reply with quote

ich verwenden gerade folgendes:
Code:

tail -f /var/log/messages | osd_cat -a 5 --font "-monotype-arial-medium-r-normal-*-20-*-*-*-p-*-viscii1.1-1" -


Dazu wird xosd benötigt. Das ist sehr praktisch, da diverse meldungen dann sofort auf dem screen erscheinen. Das ganze läßt sich auch noch mit grep kombinieren. Für mich sind Filter interessant wie "alles außer ..." dazu einfach:

Code:

tail -f /var/log/messages | grep -v  nmbd | osd_cat -a 5 --font "-monotype-arial-medium-r-normal-*-20-*-*-*-p-*-viscii1.1-1" -


ciao
sarah
_________________
AMD Sempron 2400+ / 1GB RAM / NVidia Geforce 5200FX /
Kernel 2.6.31-gentoo-r4 / kde 4.3
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


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

PostPosted: Wed Jun 08, 2005 10:47 pm    Post subject: Reply with quote

Die edle Lösung für diesen Fall nennt sich SEC und findet sich unter net-analyzer/sec

SEC is an open source and platform independent event correlation tool that was designed to fill the gap between commercial event correlation systems and homegrown solutions that usually comprise a few simple shell scripts. SEC accepts input from regular files, named pipes, and standard input, and can thus be employed as an event correlator for any application that is able to write its output events to a file stream.

Jedenfalls lese ich bröggles Anforderungen so und SEC ist genial wie geschnitten Brot wenn mans mal kapiert hat (also SEC, nicht das Brot)!
_________________
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
bröggle
Guru
Guru


Joined: 11 Oct 2004
Posts: 356

PostPosted: Tue Jun 14, 2005 10:39 am    Post subject: Reply with quote

hehe mal ausprobieren.
Die Sache ist die ich habe hier eine ir schnittstelle, die leider nciht mit lirc funktioniert.
->aber die signale sind bei der gleichen taste immer diesselben.
->das programm soll einfach drauflauschen (auf den comport) und wenn dann dsfjsjfsk kommt dann soll er dieses oder jenes machen ;)


@kraut: wie kommt man da auf ein rootkit?
_________________
where is the n00b section?
Back to top
View user's profile Send private message
@4u
Apprentice
Apprentice


Joined: 13 Nov 2004
Posts: 160

PostPosted: Tue Jun 14, 2005 11:06 am    Post subject: Reply with quote

bröggle wrote:
@kraut: wie kommt man da auf ein rootkit?

Per Überwachung von /var/log/critical/current und entsprechende Ausgaben beispielsweise.
_________________
Alle Angaben ohne Gewähr - Korrekturen sind gern willkommen
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