Announcement

Collapse
No announcement yet.

I thought this would be simple

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    I thought this would be simple

    Can someone explain to me how to filter something out when I am looking at the log?

    The log filter seems to be how to filter something in.... everything else is excluded...

    Let's say I want the log to exclude everything with "PLUGINX" in the title: or maybe room "BASEMENT in the text"

    I should be able to say something like ^[PLUGINX] and check regular expression but I haven't quite got the syntax down. I am a heavy vi user so this should be easy: not sure why I am having the issues I am.
    HS3 Pro Edition 3.0.0.435 (Windows Server 8.1 on ESXi box)

    Plug-Ins Enabled:
    Z-Wave:,RaspberryIO:,AirplaySpeak:,Ecobee:,
    weatherXML:,JowiHue:,APCUPSD:,PHLocation:,Chromecast:,EasyTr igger:

    #2
    Originally posted by wpiman View Post
    Can someone explain to me how to filter something out when I am looking at the log?

    The log filter seems to be how to filter something in.... everything else is excluded...

    Let's say I want the log to exclude everything with "PLUGINX" in the title: or maybe room "BASEMENT in the text"

    I should be able to say something like ^[PLUGINX] and check regular expression but I haven't quite got the syntax down. I am a heavy vi user so this should be easy: not sure why I am having the issues I am.
    I believe it only checks the Message/Source column. This works for me:

    ^(??!\bMATCHWORD\b\s*).)*$

    Replace MATCHWORD and that line shouldn't appear.

    Z

    Comment


      #3
      Originally posted by vasrc View Post
      I believe it only checks the Message/Source column. This works for me:

      ^(??!\bMATCHWORD\b\s*).)*$

      Replace MATCHWORD and that line shouldn't appear.

      Z
      That works! Thanks.

      That is way more complicated than I thought. How would you filter out more than one MATCHWORDS
      HS3 Pro Edition 3.0.0.435 (Windows Server 8.1 on ESXi box)

      Plug-Ins Enabled:
      Z-Wave:,RaspberryIO:,AirplaySpeak:,Ecobee:,
      weatherXML:,JowiHue:,APCUPSD:,PHLocation:,Chromecast:,EasyTr igger:

      Comment


        #4
        Originally posted by wpiman View Post
        That works! Thanks.

        That is way more complicated than I thought. How would you filter out more than one MATCHWORDS
        Regex is rarely "simple", at least from what I've experienced. Powerful, yes and usually multiple ways of accomplishing the same result
        Would it be AND or OR?
        For AND you'd replace MATCHWORD with(MATCHWORD1|MATCHWORD2....)
        Caveat: Special characters won't work that needs another check

        Z

        Comment


          #5
          There is nothing regular about regular expressions.
          HS3 Pro Edition 3.0.0.435 (Windows Server 8.1 on ESXi box)

          Plug-Ins Enabled:
          Z-Wave:,RaspberryIO:,AirplaySpeak:,Ecobee:,
          weatherXML:,JowiHue:,APCUPSD:,PHLocation:,Chromecast:,EasyTr igger:

          Comment


            #6
            You might take a look at the UltraLog3 plugin. I'm just getting started with it but appears to have some nice filtering features plus the handling of syslog.

            Comment

            Working...
            X