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