cmanaha / python-elasticsearch-logger

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

A painful problem about system crash #38

Closed gexinworks closed 6 years ago

gexinworks commented 6 years ago

Hello,I have a painful problem. The project can well run under normal condition. However,when I Ctrl+C my elasticsearch process, my computer can not normally work so that I have to restart it. In addition, I have receive many logs in my log file. Can you tell me the reasons? Sorry ,my English is poor .

gexinworks commented 6 years ago

my config:

    'elasticsearch':{
        'level':'DEBUG',
        'class':'cmreslogging.handlers.CMRESHandler',
        'flush_frequency_in_sec':7,
        'hosts':[{'host': 'elasticsearch.default', 'port': 9200}],
        'auth_type':'CMRESHandler.AuthType.NO_AUTH',
        'es_index_name':"myun.media_center.django",
        'es_additional_fields':{'App': 'MyAppName', 'Environment': 'Dev'},
        'use_ssl': False
    },
gexinworks commented 6 years ago

I can run the test file,and I don't know why django log handler always emit.when it start work ,it always emit. I attempt to change flush_frequency_in_sec,it can not work,too.

gexinworks commented 6 years ago

elasticsearch==6.0.0 CMRESHandler==1.0.0

gexinworks commented 6 years ago

OK,it's not this project's problem. It is just my elasticsearch server outofmemory.