コード例 #1
0
 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);
     }
 }
コード例 #2
0
ファイル: SearchServer.cs プロジェクト: vineethvin/Logshark
 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);
     }
 }
コード例 #3
0
ファイル: Filestore.cs プロジェクト: vineethvin/Logshark
 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);
     }
 }
コード例 #4
0
 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);
     }
 }
コード例 #5
0
ファイル: Apache.cs プロジェクト: vineethvin/Logshark
 /// <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);
     }
 }
コード例 #6
0
ファイル: Vizportal.cs プロジェクト: geanttechnology/Logshark
 /// <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);
     }
 }
コード例 #7
0
 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);
     }
 }
コード例 #8
0
 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);
     }
 }