Closed gquittet closed 1 year ago
The configuration looks good to me, I don't see an error.
You could try adding a root logger with a console handler to check if there are any errors logged.
You don't have any TLS settings configured, are you sure your Logstash instance expects plain text JSON via TCP?
Do you see any events in the database file? If it is a transport problem, then you should see events in the database. If it is a logging configuration problem, the database is probably empty.
My database file is not empty, so looks like there are events in it. see: #issuecomment-1283747520
I just switched the protocol to send information to Logstash using the HTTP Protocol (#usage-with-httptransport)
But same issue, I've got only the WARNING and ERROR logging levels.
From what I see, my SQLite database is empty:
So I also think it's a logging configuration problem.
But, requests are logged in the console with the INFO logging level, so I don't understand why the INFO logging level is not handled by Logstash 🤔
It's maybe an issue with gunicorn logging 🤔
python-logstash-async logs any errors it encounters to STDERR if no specific logger is configured. So, either check the STDERR of your application for errors or configure a root logger as suggested in my post above. With a configured root logger, or the specific logger named "LogProcessingWorker", you should see the errors logged to whatever handler you specify.
Example:
...
'loggers': {
'root': {
'handlers':['console'],
'level':'DEBUG',
'propagate': False,
},
...
I finally made it working! 🚀
If you want, you can add the following documentation to yours.
You can close this issue if you have no question on my work 👍
Hello, I tried your library in my Django Rest Framework application following the documentation, but nothing is working.
I know that my elastic and logstash is fully working because I'm using it with a lot of other application.
Do you have an idea why it's not working?