+
+
+
+
MongoDB App
+
+
+
+
+
+
+
Overview
+
MongoDB is a popular document-oriented database with dynamic schema and provides efficient way to store and retrieve documents with minimum latency. Using Hunk you can tap into the insights hidden into your data and use it to get better understanding of huge amount of data stored in your MongoDB database. Hunk enables you to explore, analyze and visualize the data and get better usable insights. Using MongoDB App, Hunk users can take advantage of Splunk`s interactive query and analytic dashboard using Hunk platform.
+
+
Specifying MongoDB Provider
+
Once you have uploaded the app using 'Manage App' menu, a new app named 'MongoDB App' will be added in your list of installed apps. You need to specify the required MongoDB host details using 'Edit Provider' feature available under Virtual Indexes which can be found in Settings tab.
+
+
+
Specifying Virtual Indexes
+
When you install the 'MongoDB App', you can see a virtual index, named 'mongodb_vix' (spcific to MongoDB) created under Virtual Indexes list. The virtual index helps you to specify the details about the collection and databse name from which you want to analyse the data.
+
+ -
Understanding Virtual Index configuration
+
+
+ | Attribute |
+ Explaination |
+
+
+ vix.mongodb.collection |
+ Name of the collection from which to analyse the data |
+
+
+
+
+
+
+
+
+
diff --git a/erp/template_files/Documentation.xml b/erp/template_files/Documentation.xml
new file mode 100644
index 00000000..d506a18c
--- /dev/null
+++ b/erp/template_files/Documentation.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
diff --git a/erp/template_files/app.conf b/erp/template_files/app.conf
new file mode 100644
index 00000000..149e3f86
--- /dev/null
+++ b/erp/template_files/app.conf
@@ -0,0 +1,16 @@
+#
+# Splunk app configuration file
+#
+
+[install]
+is_configured = 0
+
+[ui]
+is_visible = 1
+label = $family-name App
+
+[launcher]
+author = $family-name
+description = This is a $family-name External Resource Provider implementation
+version = $version
+
diff --git a/erp/template_files/default.xml b/erp/template_files/default.xml
new file mode 100644
index 00000000..efb5d0e5
--- /dev/null
+++ b/erp/template_files/default.xml
@@ -0,0 +1,8 @@
+
\ No newline at end of file
diff --git a/erp/template_files/erp_script.sh b/erp/template_files/erp_script.sh
new file mode 100644
index 00000000..7701e5e2
--- /dev/null
+++ b/erp/template_files/erp_script.sh
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+#Script to start search process over ERP
+
+if [ ! -z "$JAVA_OPTS" ]; then
+ JAVA_OPTS="$JAVA_OPTS"
+else
+ JAVA_OPTS="-Xmx512m"
+fi
+
+if [ ! -z "JAVA_HOME" ]; then
+ JAVA_CMD=$JAVA_HOME/bin/java
+fi
+
+if [ -z "$JAVA_CMD" ] || [ ! -x "$JAVA_CMD" ]; then
+ JAVA_CMD="which java"
+fi
+
+if [ -z "$JAVA_CMD" ] || [ ! -x "$JAVA_CMD" ]; then
+ echo "Unable to find java in JAVA_HOME or PATH. Please ensure JAVA_HOME is set"
+ exit
+fi
+
+CLASS_NAME=$1
+CLASS_PATH=$SPLUNK_HOME/bin/jars/SplunkMR-s6.0-h1.0.jar:$SPLUNK_HOME/etc/apps/$app-name/bin/*
+
+$JAVA_CMD $JAVA_OPTS -cp $CLASS_PATH $CLASS_NAME
+
diff --git a/erp/template_files/indexes.conf b/erp/template_files/indexes.conf
new file mode 100644
index 00000000..3e6cbe7d
--- /dev/null
+++ b/erp/template_files/indexes.conf
@@ -0,0 +1,18 @@
+[provider-family:$family-name]
+vix.mode = stream
+vix.command = $SPLUNK_HOME/etc/apps/$app-name/bin/erp_script.sh
+vix.command.arg.1 = $class-name
+
+#Sample provider configuration
+#[provider:local-mongodb]
+#vix.family = mongodb_erp_family
+#vix.splunk.search.debug = 0
+#vix.mongodb.host = localhost:27017
+
+#Sample virtual index configuration
+#[mongodb_vix]
+#vix.provider = local-mongodb
+#vix.mongodb.db = hunk
+#vix.mongodb.collection = test
+
+
diff --git a/lib/SplunkMR-s6.0-h1.0.jar b/lib/SplunkMR-s6.0-h1.0.jar
new file mode 100755
index 00000000..daf2e48c
Binary files /dev/null and b/lib/SplunkMR-s6.0-h1.0.jar differ
diff --git a/lib/jackson-core-asl-1.8.8.jar b/lib/jackson-core-asl-1.8.8.jar
new file mode 100644
index 00000000..05f3353e
Binary files /dev/null and b/lib/jackson-core-asl-1.8.8.jar differ
diff --git a/lib/jackson-mapper-asl-1.8.8.jar b/lib/jackson-mapper-asl-1.8.8.jar
new file mode 100644
index 00000000..7c7cd219
Binary files /dev/null and b/lib/jackson-mapper-asl-1.8.8.jar differ
diff --git a/lib/log4j-1.2.15.jar b/lib/log4j-1.2.15.jar
new file mode 100644
index 00000000..c930a6ab
Binary files /dev/null and b/lib/log4j-1.2.15.jar differ