Closed orvillelim closed 2 years ago
Except for the missing version
key in your LOGGING
config, it worked for me fine.
I suggest to add a root
logger (to catch all logs or at least LogProcessingWorker
) to your config, so also messages of other loggers are handled, e.g.:
'handlers': {
'root': {
'handlers':['console', 'logstash'],
'level': 'DEBUG',
'propagate': False,
},
...
Not related to the problem but anyway not what you probably want to achieve:
'database_path': 'memory',
actually uses a SQLite database named "memory" (you should find it in the current working directory). To use an in-memory database use:
'database_path': None,
Closing on missing response. Re-open if the problem persists.
I tried to integrate the library with django backend and seems its not working base on documentation
What I tried so far:
Logstash conf:
I also posted the question on Stackoverflow: https://stackoverflow.com/questions/65712591/python-logstash-and-python-logstash-async-not-working-with-django
Details:
Python Version: 3.7.2 Django version: 2.1.3 Re-created django project:
Python Version: 3.7.9 Django Version: 3.1.5
OS: elementary OS 5.1.7 Hera Built on Ubuntu 18.04.4 LTS Linux 5.4.0-60-generic