Need help with  Regular Expression of the filter

3276
2
09-03-2013 03:28 AM
ChunjieXu
New Contributor II
I need a filter to filter events whose field values match an string, like 'iPhone'.

for example, one of the attribute of the event is: "I post this thread using iPhone, it's cool", this event pass the filter.

the same attribute of another event is:"I post this thread using Windows Phone, it's also cool", this event will be dropped by the filter.

  I put the string 'iPhone' into the 'value' box of the filter below:

   [ATTACH=CONFIG]27165[/ATTACH]

  No event pass through the filter.  what value should I put in the value box? I tried the 'iPhone.*', it only let the events who starts with iPhone like 'iPhoneXXXXXXXXXXXXX' pass through, I tried '*iPhone.*, all the events pass through the filter.

   Thanks for any help.
0 Kudos
2 Replies
VladislavPlechnoy
New Contributor III
Hi chunjie,

I think regular expression that will serve your needs should look like this '.*iPhone.*'.
Please see details of configuration I tested with in the attached iPhoneFilter.docx file.

Thanks,
Vlad Plechnoy
GeoEvent Processor Team
0 Kudos
ChunjieXu
New Contributor II
Hi, Vlad:

    I tested it, it works!! Thank you so much.

    I should blame myself that I do not test this way...
0 Kudos