I'm working with Django and Loggly, and I need to decide between using Loggly with rsyslog
or with its RESTful API. For the second option, I'd use grequests
, sending a single request at a time (i.e., just to make the calls non-blocking, but I wouldn't send requests in bulk).
What are the advantages of using rsyslog
over the RESTful API and vice versa?
Haven't tested it yet, but using the syslog approach has several advantages:
On the other hand, using the RestAPI would couple the app to the loggly implementation, and it could raise some errors while trying to report errors (DNS resolution failures, network problems, etc)