Digital Resilience Pays Off
Download this e-book to learn about the role of Digital Resilience across enterprises.
In the previous article “Mobile Analytics with Storm“, we discussed how to configure the logging library for mobile apps to send stacktrace messages to Storm via REST API. To make this logging library more usable and robust, mobile app developers are now able to send invaluable stacktrace messages via TCP (through the Network Inputs option). The configuration steps are incredibly simple and are summarized using the diagram shown below:
The steps to configure the logging library in your IDE is as follow (if you have not done so already):
<uses-permission android:name="android.permission.INTERNET"/>
import com.storm.android.Storm;
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Storm.TCPconnect(RECEIVING_IP, RECEIVING_PORT_NUMBER, getApplicationContext()); /** * an example would be Storm.TCPconnect("logs1.nkey.splunkstorm.com", 20072, getApplicationContext()); * your other wonderful codes to develop your wonderful mobile app **/ }
To conclude, this is how we send data with the logging library for Android apps via TCP into Splunk Storm:
Give it a try and tell us your experience integrating it into your mobile apps. Feedback and suggestions are always welcomed!
“Enterprise, Developer, Cloud, Content”
----------------------------------------------------
Thanks!
Nicholas Key
The Splunk platform removes the barriers between data and action, empowering observability, IT and security teams to ensure their organizations are secure, resilient and innovative.
Founded in 2003, Splunk is a global company — with over 7,500 employees, Splunkers have received over 1,020 patents to date and availability in 21 regions around the world — and offers an open, extensible data platform that supports shared data across any environment so that all teams in an organization can get end-to-end visibility, with context, for every interaction and business process. Build a strong data foundation with Splunk.