From 34e3a48326fd413e1554d07622da6ddde7b724b1 Mon Sep 17 00:00:00 2001 From: Avtandil Kikabidze Date: Wed, 27 Jun 2018 11:38:33 +0400 Subject: [PATCH] Update ES record type to _doc --- src/Monolog/Handler/ElasticSearchHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Monolog/Handler/ElasticSearchHandler.php b/src/Monolog/Handler/ElasticSearchHandler.php index 3df39d91..4c6096a2 100644 --- a/src/Monolog/Handler/ElasticSearchHandler.php +++ b/src/Monolog/Handler/ElasticSearchHandler.php @@ -66,7 +66,7 @@ class ElasticSearchHandler extends AbstractProcessingHandler $this->options = array_merge( [ 'index' => 'monolog', // Elastic index name - 'type' => 'record', // Elastic document type + 'type' => '_doc', // Elastic document type 'ignore_error' => false, // Suppress ElasticSearch exceptions ], $options