How to search the logs which contain the word "Exception"


(Jojo Xu) #1

Hi,

I’m trying to define some alert which condition will check if the message contain any exceptions. But when I try to do the search with query message:“Exception” it would only filter the message contain the word “Exception” alone.
Some messages which contain some messages like the “NullPointException” will not be included.
Do we have any way to filter the message contain some words or end with some words?


(Jochen) #2

If you want to include matches like NullPointerException you have to allow leading wildcard searches in your Graylog configuration file and search for *Exception.


(hefan_xu) #3

thanks for your feedback, the wildcard finally works for me. That block me to define the alert notification. When using the wildcard in the alert, it will add the quote mark for the content.

发自我的小米手机

在 Jochen graylog@discoursemail.com,2017年7月25日 下午8:15写道:


(system) #4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.