Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Add type suffixes to all keys when logging #275

Merged
merged 4 commits into from
Jul 18, 2019

Conversation

albrow
Copy link
Contributor

@albrow albrow commented Jul 17, 2019

This PR will help fix field mapping conflicts in Elasticsearch. When we have two separate logs with the same field name but different types, Elasticsearch cannot correctly index them, which often results in log messages being lost. If we add a type suffix, it will no longer be possible to have the same field name but different types.

@albrow albrow requested a review from fabioberger July 17, 2019 23:27
loghooks/key_suffix_hook.go Outdated Show resolved Hide resolved
Co-Authored-By: Fabio B <me@fabioberger.com>
@albrow albrow merged commit 97bb9f6 into development Jul 18, 2019
@albrow albrow deleted the fix/logging-key-suffix branch July 18, 2019 16:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants