Syslog Search Regular Expression - RegEx - Exclude - Not

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
vtchelp
Posts: 3
Joined: Fri May 01, 2020 12:32 pm

Syslog Search Regular Expression - RegEx - Exclude - Not

Post by vtchelp »

I see "Enter a regular expression" in the Search field in the Syslog plugin tab. It works as expected for me if I do a simple search for a word, but what if I want the search results to exclude entries with a word? I have not been able to figure out the syntax to enter. I put the word 'successful' in the Search field and I get lines with that word shown, but what do I put in the Search field to show all lines except those containing a word? Thank you.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Syslog Search Regular Expression - RegEx - Exclude - Not

Post by TheWitness »

There is a custom SQL option where you can construct a SQL Where expression. Might take some trial and error, but it works.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
vtchelp
Posts: 3
Joined: Fri May 01, 2020 12:32 pm

Re: Syslog Search Regular Expression - RegEx - Exclude - Not

Post by vtchelp »

I still have not gotten this to work. Could I please get some details? Or examples please? Thank you.
User avatar
macan
Cacti Guru User
Posts: 1106
Joined: Tue Mar 18, 2008 2:30 am
Location: Czech

Re: Syslog Search Regular Expression - RegEx - Exclude - Not

Post by macan »

(host like 'vmw1%' or host like 'vmw2%') and message like 'LLDP_%'
Let the Cacti grow!
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests