Esempio n. 1
0
        private void ProcessApacheLogLine(LogLine logLine)
        {
            var apacheEvent = ApacheEventParser.ParseEvent(logLine);

            if (apacheEvent != null && apacheEvent.RequestMethod == "GET" && apacheEvent.StatusCode != 302 && IsVizLoadAccessEvent(apacheEvent))
            {
                _apacheEventCollection.Add(apacheEvent);
                if (_apacheEventCollection.Count % 10000 == 0)
                {
                    _logger.LogInformation("Added {0} Apache logs with GET request method", _apacheEventCollection.Count);
                }
            }
        }
Esempio n. 2
0
        public void ProcessLogLine(LogLine logLine, LogType logType)
        {
            var @event = ApacheEventParser.ParseEvent(logLine);

            if (@event == null)
            {
                _processingNotificationsCollector.ReportError("Failed to parse Apache event from log line", logLine, nameof(ApachePlugin));
                return;
            }

            if (_includeGatewayHealthChecks || !IsHealthCheckRequest(@event))
            {
                _writer.AddLine(@event);
            }
        }