Last active
August 29, 2015 13:56
-
-
Save lennartkoopmann/8915780 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.graylog2.plugin.Message | |
rule "reproduce IRC issue" | |
when | |
m : Message( getField("message") matches "(?i).*mycrazystringtotrack(.|\n|\r)*" ) | |
then | |
m.addField("track", "crazystring" ); | |
System.out.println("matched!"); | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lennart ~/workspace/graylog2/graylog2-web-interface(play)$ nc -u localhost 5514 | |
<5>Feb 10 14:17:39 sundaysister login[20370]: USER_PROCESS: 20370 mycrazystringtotrack ttys00 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment