Hello Jochen
Now i have
import org.graylog2.plugin.Message
rule "Ignore Debug Messages"
when
m : Message( getField("level") == 7 )
then
System.out.println("DEBUG: Blacklisting message."); // Don't do
this in production.
m.setFilterOut(true);
end
Is this ok? And what is the better way for (System.out.println)?
Cheers
Steve
Am Montag, 14. März 2016 16:57:46 UTC+1 schrieb Jochen Schalanda:
>
> Hi Steve,
>
> the level attribute has a numeric value but you're currently comparing a
> string value. Also be aware that nothing written on stdout (using
> System.out.println) will be visible.
>
>
> Cheers,
> Jochen
>
> On Monday, 14 March 2016 16:33:20 UTC+1, Steve Miller wrote:
>>
>> Thank you very much, i try with the graylog.drl but it's not works.
>>
>> import org.graylog2.plugin.Message
>>
>> rule "Ignore Debug Messages"
>> when
>> m : Message( getField("level") == "7" )
>> then
>> System.out.println("DEBUG: Blacklisting message."); // Don't do
>> this in production.
>> m.setFilterOut(true);
>> end
>>
>> Is my code wrong or msust restating the Graylog when i change the
>> graylog.drl?
>>
>> regards
>> Steve
>>
>>
>> Am Montag, 14. März 2016 10:00:42 UTC+1 schrieb Steve Miller:
>>>
>>> Hello
>>>
>>> Is it possible to delete all message from Graylog/Elasticsearch with
>>> syslog level 7? Purhaps with a cron job.
>>> We have many debug messages in our Graylog, and so i'm looking for a way
>>> how can remove all this debug messages.
>>>
>>> regards
>>> Steve
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/graylog2/00c13239-27b7-4585-8e4f-14bddcac2583%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.