LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
LinkBack Search this Thread
Old 02-02-2012, 04:35 PM   #1
brownwrap
Member
 
Registered: Jan 2010
Posts: 42

Rep: Reputation: 15
swatch - How to look for multiple strings


I have swatch working and am happy with it. Here is my watch for string:

watchfor /Failed keyboard-interactive/


I am using that to look for failed log ins. How can I watch for multiple strings. In other words, in addition to the one I'm monitoring, I want to look for memory errors and/or controller errors.

Can I have separate 'watchfor' entries?
 
Old 02-03-2012, 06:06 PM   #2
Reuti
Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 11.4
Posts: 970

Rep: Reputation: 184Reputation: 184
Easy test: enter a second pattern plus action in the config file and see what happens.
 
Old 02-03-2012, 09:17 PM   #3
rhbegin
Member
 
Registered: Oct 2003
Location: Arkansas, NWA
Distribution: Fedora/CentOS/SL6
Posts: 354

Rep: Reputation: 23
Is there a swatch install for CentOS 6, if so can you shed a little light on install/config?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] grep for multiple strings to exclude greenpool Linux - General 7 12-05-2011 04:20 AM
swatch: Multiple fields in "threshold track_by" statement kenneho Linux - Server 0 06-10-2011 01:44 PM
[SOLVED] grep multiple strings krist_m Linux - Newbie 4 01-11-2011 11:43 AM
How to find multiple strings into multiple files ? moicpit Linux - General 10 04-25-2010 11:19 AM
grep multiple strings GEEXTER Linux - General 5 03-27-2004 11:34 PM


All times are GMT -5. The time now is 04:44 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration