You can POST logs (text files or .gzip files) directly to Sumo Logic HTTP Source (endpoint).
Some best practices/tips to consider are:
Logging Appenders:
- Use our logging SDK's (.Net, Javascript, Log4J, Log4J2, etc.)
Best practices:
- It's best to build mobile logging asynchronously so that the app 'fires and forgets' about the log and doesn't freeze/interrupt the app
- Hardcoding the Sumo endpoint into the logging framework is not advised (someone could delete it).
- Performance-wise it's advised to send the logs to a queue so that data can be buffered, packaged, compressed and the data forwarding from there to Sumo can be decoupled from the logging code
- Another consideration is whether or not the device has data/internet, or if the mobile app has offline capabilities
Comments
0 comments
Please sign in to leave a comment.