Hi,

In streams we use this regex for this: * message must match regular 
expression: *

*(?=.*NAME1).*NAME2.*NAME3 *hth,,

Arie


Op vrijdag 6 november 2015 09:11:29 UTC+1 schreef Josep Maria Comas Serrano:
>
> Any ideas? Any experience using matched groups?
>
> Best,
>
> JM
>
> El martes, 3 de noviembre de 2015, 13:06:18 (UTC+1), Josep Maria Comas 
> Serrano escribió:
>>
>> There's an issue when configuring an extractor using regex + matched 
>> groups
>>
>> After some tests, we've made it simply to show you the final error:
>>
>> The regex pattern is (Name1)|(Name2)
>>
>> So if Name1 exists, the result is Name1. And if Name2 exists, and there's 
>> no Name1, the result is Name2.
>>
>> Tests:
>>
>> - Message includes Name1 and not Name2: The result is Name1, correct.
>> - Message includes Name1 and Name2: the result is Name1, correct.
>> - Message includes not Name1 and not Name2: warning "Regular Expression 
>> did not match". We think is correct for now.
>> - Message includes not Name1 and Name2: error "Could not try regular 
>> expression,Make sure that is valid". The result should have been Name2, 
>> instead we have an error.
>>
>> Maybe it's some bug? Or must be configured some other way? The pattern 
>> works if we test it, for example, on the regex-testing web regex101.com.
>>
>> Best,
>>
>> JM
>>
>>

-- 
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/da4bd459-68ac-41ce-8ad2-6e0efd6c313b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to