sohlich/elogrus

Unable to log to self defined index

Opened this issue · 0 comments

I am able to successfully log data into the Elasticsearch if I do not define an index and let types be dynamically generated when using elogrus.

However with certain fields I would require different types, I have tried creating the index with my own mappings and even the mapping that resulted from being dynamically generated and in both instances elogrus no longer inserted new entries into the index.

How should I go about configuring mappings so that they are compatible with elogrus?

Error message when index generated has identical mapping to defined index:
Failed to fire hook: elastic: Error 400 (Bad Request): Rejecting mapping update to [log] as the final mapping would have more than 1 type: [_doc, log] [type=illegal_argument_exception]