I am trying to match  source field with regex. but graylog text editor not 
allowed me to save the rule.  what is wrong with below rule? plese check 
attached file for graylog editor error.

graylog version: 2.1.0-beta.2
regex sample: http://regexr.com/3dvvs

rule "check prod logs"
when
  has_field("source")
then
  
 regex(pattern: "((n|p|e)\d+-c\d+|(bg|cm|nw)\d+)-xyz.abc.com", value: 
$message.source);
  
end

-- 
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/27222c2e-9ae6-44c4-9e40-24670f086ff8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to