Example #1
0
        public void PrepareEvent(Dictionary<string, object> logEvent)
        {
            string input;
            if (!logEvent.TryGetStringValue(SourceKey, out input))
            {
                //logEvent.AddTag(FailedGrok);
                return;
            }

            ScanMessage(logEvent, input);
        }
        public void PrepareEvent(Dictionary<string, object> logEvent)
        {
            string formattedKey = _sourceKey.Format(logEvent);
            string value;
            if (!logEvent.TryGetStringValue(formattedKey, out value))
            {
                return;
            }

            logEvent[formattedKey] = _seperateRegex.Split(value).Where(s => !string.IsNullOrEmpty(s)).ToList();
        }