public ElasticSearchAppender()
        {
            FixedFields      = FixFlags.Partial;
            SerializeObjects = true;

            BulkSize                = 2000;
            BulkIdleTimeout         = 5000;
            DropEventsOverBulkLimit = false;
            TimeoutToWaitForTimer   = 5000;

            _tolerateCalls = new TolerateCallsBase();

            Servers = new ServerDataCollection();
            ElasticSearchTimeout = 10000;
            //DatePostfixFormat = "yyyy.MM.dd";
            IndexName       = $"LogEvent-{DatePostfixFormat}";
            IndexType       = "LogEvent";
            IndexAsync      = true;
            Template        = null;
            LogEventFactory = new BasicLogEventFactory();

            _timer         = new Timer(TimerElapsed, null, Timeout.Infinite, Timeout.Infinite);
            ElasticFilters = new ElasticAppenderFilters();

            AllowSelfSignedServerCert = false;
            Ssl = false;
            AuthenticationMethod = new AuthenticationMethodChooser();
            IndexOperationParams = new IndexOperationParamsDictionary();
        }
예제 #2
0
        public ElasticSearchAppender()
        {
            DocumentIdSource = null;
            FixedFields      = FixFlags.Partial;
            SerializeObjects = true;

            BulkSize              = 2000;
            BulkIdleTimeout       = 5000;
            TimeoutToWaitForTimer = 5000;

            Servers = new ServerDataCollection();
            ElasticSearchTimeout = 10000;
            IndexName            = "LogEvent-%{+yyyy.MM.dd}";
            IndexType            = "LogEvent";
            IndexAsync           = true;
            Template             = null;
            LogEventFactory      = new BasicLogEventFactory();

            _timer         = new Timer(TimerElapsed, null, Timeout.Infinite, Timeout.Infinite);
            ElasticFilters = new ElasticAppenderFilters();

            AllowSelfSignedServerCert = false;
            Ssl = false;
            AuthenticationMethod = new AuthenticationMethodChooser();
        }
        public ElasticSearchAppender()
        {
            FixedFields      = FixFlags.Partial;
            SerializeObjects = true;

            BulkSize              = 2000;
            BulkIdleTimeout       = 5000;
            TimeoutToWaitForTimer = 5000;

            Server              = "localhost";
            Port                = 9200;
            IndexName           = "LogEvent-%{+yyyy.MM.dd}";
            IndexType           = "LogEvent";
            IndexAsync          = true;
            MaxAsyncConnections = 10;
            Template            = null;
            LogEventFactory     = new BasicLogEventFactory();

            _timer         = new Timer(TimerElapsed, null, Timeout.Infinite, Timeout.Infinite);
            ElasticFilters = new ElasticAppenderFilters();
        }