LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-02-2012, 04:35 PM   #1
brownwrap
Member
 
Registered: Jan 2010
Posts: 121

Rep: Reputation: 16
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
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
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: 381

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


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
grep multiple strings GEEXTER Linux - General 7 12-06-2013 09:56 PM
[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-09-2011 05:19 AM
[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

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:43 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration