cmanaha / python-elasticsearch-logger

Python Elasticsearch handler for the standard python logging framework
Other
232 stars 116 forks source link

Many duplicate logs in elasticsearch #59

Closed ganga-sah closed 5 years ago

ganga-sah commented 5 years ago

I am getting annoying multiple duplicate log entries in elasticsearch which makes logs hard to read Is this a known issue. Any workaround/fix?

ganga-sah commented 5 years ago

I was able to resolve this issue by making sure we register python-elasticsearch-logger ONLY once. In my code, custom logging handler was getting added multiple times resulting in multiple entries for the same log line.