Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Clone the product-emm GIT repository. This will be referred to as <EMM_SOURCE_HOME> throughout this document.

    Code Block
    git clone https://github.com/wso2/product-emm.git
  2. Open the Constant.java file that is in the <EMM_AGENT_ANDROID>/utils directory.

    Info

    <EMM_AGENT_ANDROID> refers to the  the <EMM_SOURCE_HOME>/modules/mobile-agents/android/client/client/src/main/java/org/wso2/emm/agent file path.

  3. Define the SPLUNK_PUBLISHER as the value for the string variable LOG_PUBLISHER_IN_USE.

    Code Block
    public static final String LOG_PUBLISHER_IN_USE = SPLUNK_PUBLISHER;
  4. 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>";
    }
    FieldDescription
    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.
  5. Apply the logcat operation on your device to push data to Splunk through WSO2 EMM.

    Info

    For more information on applying an operation on your device, see Device Operations.