Class SplunkConnection

java.lang.Object
org.apache.drill.exec.store.splunk.SplunkConnection

public class SplunkConnection extends Object
This class wraps the functionality of the Splunk connection for Drill.
  • Constructor Details

    • SplunkConnection

      public SplunkConnection(SplunkPluginConfig config, String queryUserName)
    • SplunkConnection

      public SplunkConnection(SplunkPluginConfig config, com.splunk.Service service, String queryUserName)
      This constructor is used for testing only
  • Method Details

    • connect

      public com.splunk.Service connect()
      Connects to Splunk instance
      Returns:
      an active Splunk Service connection.
    • getIndexes

      public com.splunk.EntityCollection<com.splunk.Index> getIndexes()
      Gets the available indexes from Splunk. Drill treats these as a table.
      Returns:
      A collection of Splunk indexes