diff --git a/hook.go b/hook.go index d857dd3..afe54ae 100644 --- a/hook.go +++ b/hook.go @@ -197,7 +197,6 @@ func syncFireFunc(entry *logrus.Entry, hook *ElasticHook) error { _, err := hook.client. Index(). Index(hook.index()). - Type("log"). BodyJson(*createMessage(entry, hook)). Do(hook.ctx) @@ -215,7 +214,6 @@ func makeBulkFireFunc(client *elastic.Client) (fireFunc, error) { return func(entry *logrus.Entry, hook *ElasticHook) error { r := elastic.NewBulkIndexRequest(). Index(hook.index()). - Type("log"). Doc(*createMessage(entry, hook)) processor.Add(r) return nil