Some of our customers have asked us if DataSet's API can be used to upload logs from Android clients.
An example use case is: “We will have client-generated "anomalies" that need to be monitored.”
You can use the API to upload logs from an Android the below links can help you get started
While sending from Android to DataSet is simple, it doesn't give the same level of control over what gets sent to DataSet. It also requires putting the API token on the Android
The recommended design practice that you could use instead is to send from android to a central location in your infrastructure. This way you can filter and shape the logs before they go to DataSet.
You can ingest Android logs via the Scalyr Agent in three easy steps.
(Your phone will need to be tethered which is most useful for a development use case)
- Install ADB the install instructions can be found in the link below:
- Install the Scalyr Agent via the links below:
- Update the Scalyr Agent config file. Please see the example below for reference:
If you would like to ingest logs without being tethered you would need to build this into your application below are a few reference links that may help you get started.
- https://code.google.com/archive/p/android-remote-stacktrace/ (again, we'd recommend sending messages like this to a central location)