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 graylog2+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/graylog2/65ddf27b-b78d-4e93-b5a9-b586d53a9cb3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.