Disable network monitoring
Normally, Splunk MINT monitors all HTTP network calls. You can disable network monitoring entirely. Or, disable monitoring just for specific URLs by adding them to a monitoring blacklist to ignore any requests to these URLs. For example, you can add "www.facebook.com" to your blacklist to ignore requests to this site.
- Notes
- HTTPS calls are not currently supported.
- If you use server-side sockets, you should disable network monitoring entirely.
- Currently, there are known compatibility issues with network monitoring and certain external libraries such as OkHttp, resulting in crashes. Splunk is currently working on this issue, but until it is resolved, disable network monitoring entirely if you experience this issue.
- To disable network monitoring entirely, use the disableNetworkMonitoring() method before the initAndStartSession() or initAndStartSessionHEC() method as follows:
- To add a URL to the network monitoring blacklist, use the addURLToBlackList(url) method before the initAndStartSession() or initAndStartSessionHEC() method as follows:
Mint.disableNetworkMonitoring(); Mint.initAndStartSession(MyActivity.this, "YOUR_API_KEY");
Mint.addURLToBlackList("www.facebook.com"); Mint.initAndStartSession(MyActivity.this, "YOUR_API_KEY");
Report the last error and total crashes | Report LogCat output |
This documentation applies to the following versions of Splunk MINT™ SDK for Android (EOL): 5.0.x, 5.1.x
Feedback submitted, thanks!