Skip to content

julianhyde/optiq-splunk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

optiq-splunk

Splunk adapter for Optiq.

Also provides a JDBC driver for Splunk.

Prerequisites

First install Optiq.

Download and build

$ git clone git://github.com/julianhyde/optiq-splunk.git
$ cd optiq-splunk
$ mvn compile

Example

Optiq-splunk provides a JDBC driver:

Class.forName("net.hydromatic.optiq.impl.splunk.Driver");
Connection connection = DriverManager.getConnection("jdbc:splunk:");
Statement statement = connection.createStatement();
ResultSet resultSet = statement.executeQuery(
    "select \"source\", count(*)\n"
    + "from \"splunk\".\"splunk\"\n"
    + "group by \"source\"");
print(resultSet);
resultSet.close();
statement.close();
connection.close();

You can also register a SplunkSchema as a schema within an Optiq instance. Then you can combine with other data sources.

Status

The following features are complete.

  • JDBC driver.
  • Basic queries.
  • Rules to push down filter, project and aggregation onto Splunk.
  • JOIN, GROUP BY, ORDER BY in client

Bugs

  • COUNT(DISTINCT) gives wrong answer

Backlog

  • Rule to push down join

More information

About

Splunk adapter for Optiq (and also a JDBC driver for Splunk)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published