You will want to analyze the data gathered from the devices that are registered with WSO2 EMMIoT Server. Wondering how you can do this in WSO2 EMMIoT Server?
WSO2 EMM IoT Server uses Splunk to capture, index and correlate the real-time data into a searchable repository. Using the data in this repository you are able to generate graphs, reports, alerts, dashboards, and more.
Le's take a look at how you can configure Splunk with the WSO2 EMM IoT Server Android Agent.
Clone the
product-emm
GIT repositoryDownload the Android agent source code. This will be referred to as <EMMas the<ANDROID_AGENT_SOURCE_HOME>CODE>
throughout this document. git clone https://github.com/wso2/product-emmCode Block .
gitOpen the
Constant.java
file that is in the<EMM_AGENT_ANDROID>/utils
directory.Info <EMM_AGENT_ANDROID>
refers to the <EMM_SOURCE_HOME>/modules/mobile-agents/android<ANDROID_AGENT_SOURCE_CODE>/client/client/src/main/java/org/wso2/emm/agent/utils/Constant.java
file.
Define
SPLUNK_PUBLISHER
as the value for the string variableLOG_PUBLISHER_IN_USE
.Code Block public static final String LOG_PUBLISHER_IN_USE = SPLUNK_PUBLISHER;
Configure the fields shown below:
Code Block public final class SplunkConfigs { public static final String API_KEY = "<SPLUNK_API_KEY>"; public static final String TYPE_HTTP = "HTTP"; public static final String TYPE_MINT = "MINT"; public static final String DATA_COLLECTOR_TYPE = TYPE_MINT; public static final String HEC_TOKEN = "<SPLUNK_HEC_TOKEN>"; public static final String HEC_MINT_ENDPOINT_URL = "<SPLUNK_HEC_MINT_ENDPOINT_URL>"; }
Field Description API_KEY
Provide the Splunk API Key. HEC_TOKEN
Provide the HTTP Event Collector token. HEC_MINT_ENDPOINT_URL
Provide the HTTP Event Collector endpoint URL. Apply the logcat logcat operation on your device to push data to Splunk through WSO2 EMMIoT Server.
Info For more information on applying an operation on your device, see Device Operationsthe Android device operations.