Procházet zdrojové kódy

Update ES record type to _doc

Avtandil Kikabidze před 7 roky
rodič
revize
34e3a48326
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/Monolog/Handler/ElasticSearchHandler.php

+ 1 - 1
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