Categories

Versions

You are viewing the RapidMiner Studio documentation for version 9.9 -Check here for latest version

Using the Splunk Connector

The Splunk connector allows you to read search results from a Splunk server. Using theSearch Splunkoperator you can run different search queries. This document will walk you through how to:

Install the Splunk Connector extension

First, you need to install the Splunk Extension:

Connect to Your Splunk Server

Before you can use the Splunk connector, you have to configure a new Splunk connection. For this purpose, you will need the connection details of your Splunk server (host name and port). If your Splunk server requires authentication, you will also need valid credentials.

  1. In RapidMiner Studio, right-click on the repository you want to store your Cassandra connection in and chooseNew Connection IconCreate Connection.

    You can also click onConnections >New Connection IconCreate Connectionand select therepositoryfrom the dropdown of the following dialog.

  2. Enter a name for the new connection, and setConnection TypetoSplunk IconSplunk:

  3. Click onCreate IconCreateand switch to theSetuptab in theEdit connectiondialog.

  4. Fill in the connection details of your Splunk server:

    The preconfigured port is the default port used by Splunk. Note that Splunk does not require user authentication by default.

    While not required, we recommend testing your new Cassandra connection by clicking theConnection Test IconTest connectionbutton. If the test fails, please check whether the details are correct.

  5. ClickSave IconSaveto save your connection and close theEdit connectiondialog.

You can now use the newly created connection with theSearch Splunkoperator!

Search your Splunk server

TheSearch Splunkoperator allows to query Splunk servers.

  1. 打开一个新过程sNew Process Iconin RapidMiner Studio, drag theSearch Splunkoperator into theProcessview, and connect its output port to the result port of the process: Select your Splunk connection for theconnection entryparameter from the connections folder of the repository you stored it in by clicking on therepository chooser iconbutton next to it:

    Alternatively, you can drag the Splunk connection from the repository into theProcess Paneland connect the resulting operator with theRead Cassandraoperator.

  2. Define the search query using Splunk Search Processing Language by clicking on thequeryparameter.

  3. Optionally, specify a time range to search in by setting theealiest timeandlatest timeparameters. Furthermore you can adjust the pagination by changing theoffsetandlimitparameters or turnpaginationoff completely.

  4. RunRun Processthe process! In the Result Perspective, you should see the example set resulting from your query. Note that deselectingpaginationmay lead to a huge number of results and your process might run for a while.