protected void ProcessClusterControllerError(BsonDocument document) { try { ClusterControllerError clustercontrollerError = new ClusterControllerError(document, logsetHash); clusterControllerErrorPersister.Enqueue(clustercontrollerError); } catch (Exception ex) { string errorMessage = String.Format("Encountered an exception on {0}: {1}", document.GetValue("_id"), ex); pluginResponse.AppendError(errorMessage); Log.Error(errorMessage); } }
protected void ProcessSearchserverEvent(BsonDocument document) { try { SearchserverEvent searchserverEvent = new SearchserverEvent(document, logsetHash); searchserverPersister.Enqueue(searchserverEvent); } catch (Exception ex) { string errorMessage = String.Format("Encountered an exception on {0}: {1}", document.GetValue("_id"), ex); pluginResponse.AppendError(errorMessage); Log.Error(errorMessage); } }
protected void ProcessFilestoreRequest(BsonDocument mongoDocument) { try { FilestoreEvent filestoreRequest = new FilestoreEvent(mongoDocument, logsetHash); filestorePersister.Enqueue(filestoreRequest); } catch (Exception ex) { string errorMessage = String.Format("Encountered an exception on {0}: {1}", mongoDocument.GetValue("_id"), ex); pluginResponse.AppendError(errorMessage); Log.Error(errorMessage); } }
private void ProcessSession(VizqlSession session, IMongoCollection <BsonDocument> collection) { try { session = MongoQueryHelper.AppendAllSessionEvents(session, collection); persistenceHelper.Enqueue(session as VizqlDesktopSession); } catch (Exception ex) { string errorMessage = String.Format("Failed to process session {0} in {1}: {2}", session.VizqlSessionId, collection.CollectionNamespace.CollectionName, ex.Message); Log.Error(errorMessage); pluginResponse.AppendError(errorMessage); } }
/// <summary> /// Populates the HttpdRequest object and queues it for insertion. /// </summary> protected void ProcessApacheRequest(BsonDocument document) { try { HttpdRequest httpdRequest = new HttpdRequest(document, logsetHash); apachePersister.Enqueue(httpdRequest); } catch (Exception ex) { string errorMessage = String.Format("Encountered an exception on {0}: {1}", document.GetValue("request_id"), ex); pluginResponse.AppendError(errorMessage); Log.Error(errorMessage); } }
/// <summary> /// Populates the VizPortalRequest object and queues it for insertion. /// </summary> protected void ProcessVizportalRequest(BsonDocument mongoDocument) { try { VizportalEvent vizportalRequest = new VizportalEvent(mongoDocument, logsetHash); vizportalPersister.Enqueue(vizportalRequest); } catch (Exception ex) { string errorMessage = String.Format("Encountered an exception on {0}: {1}", mongoDocument.GetValue("req"), ex); pluginResponse.AppendError(errorMessage); Log.Error(errorMessage); } }
protected void ProcessPostgresLine(BsonDocument document) { try { PostgresEvent postgresInformation = new PostgresEvent(document, logsetHash); postgresPersister.Enqueue(postgresInformation); } catch (Exception ex) { string errorMessage = String.Format("Encountered an exception processing line: {0}", ex); pluginResponse.AppendError(errorMessage); Log.Error(errorMessage); } }
protected virtual VizqlServerSession ProcessSession(string sessionId, IMongoCollection <BsonDocument> collection) { try { VizqlServerSession session = MongoQueryHelper.GetServerSession(sessionId, collection, logsetHash); session = MongoQueryHelper.AppendErrorEvents(session, collection) as VizqlServerSession; SetHostname(session); return(session); } catch (Exception ex) { string errorMessage = String.Format("Failed to process session {0} in {1}: {2}", sessionId, collection.CollectionNamespace.CollectionName, ex.Message); Log.Error(errorMessage); pluginResponse.AppendError(errorMessage); return(null); } }