public FilterFlow Process(ref IEvent evnt) { IConditionsMatcherResult result = conditionsMatcher.Process(evnt); if (!result.IsMatch) { return(FilterFlow.Continue); } foreach (IAction action in actions) { action.Process(evnt, result.ExtractedGroups); } return(FilterFlow.Continue); }
public FilterFlow Process(ref IEvent evnt) { try { var result = conditionsMatcher.Process(evnt); if (!result.IsMatch) { return(FilterFlow.Continue); } Match match = regex.Match(evnt.Message); if (match.Success) { evnt.Fields[EventTimeKey] = match.Value; evnt.Timestamp = DateTime.ParseExact(match.Value, DateTimeFormat, CultureInfo.InvariantCulture, configuration.DateTimeStyles); } } catch (Exception ex) { logger.Error(evnt, ex); } return(FilterFlow.Continue); }
public FilterFlow Process(ref IEvent evnt) { return(conditionsMatcher.Process(evnt).IsMatch ? FilterFlow.Drop : FilterFlow.Continue); }