You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `sample SPL2 buttercup games` app is a basic SPL2-based app that shows how to:
8
8
9
9
* Organize your app modules for customization and reuse.
10
-
*How to specify a custom eval function.
10
+
*Specify a custom eval function.
11
11
* Specify the $SPLUNK_HOME path as a variable.
12
12
* Use a dataset literal to provide sample data for the app.
13
13
* Import an index, a lookup, and a function into the _default module.
@@ -20,7 +20,13 @@ This app is compatible with Splunk Enterprise.
20
20
21
21
You need a pre-release version of Splunk Enterprise that supports SPL2-based applications. See [SPL2 Public Beta overview](https://dev.splunk.com/enterprise/docs/developapps/createspl2apps/spl2previewoverview) for information about the Beta.
22
22
23
-
## Installation
23
+
## Accessing the sample app
24
+
25
+
The app is available in the [spl2-sample-apps](https://github.com/splunk/splunk-app-examples/tree/master/spl2-sample-apps/sample_spl2_buttercup) folder on the Splunk GitHub Examples repository.
26
+
27
+
The app is uncompressed so that you can view the app folder structure, the modules, and other resources that are included with the app.
28
+
29
+
<!--## Installation
24
30
25
31
Complete the following steps to install a SPL2-based application:
26
32
@@ -31,6 +37,7 @@ Complete the following steps to install a SPL2-based application:
31
37
4. Locate the app file and select **Upload**. You might be prompted to restart the Splunk Enterprise instance.
32
38
33
39
2. Verify that the app appears in the **Apps** drop-down. You can also find the app on your pre-release instance in the `$SPLUNK_HOME/etc/apps/<app_name>`folder.
40
+
-->
34
41
35
42
## App information
36
43
@@ -43,8 +50,8 @@ This app was developed by Splunk.
43
50
| App file name | sample_spl2_buttercup_games.spl ||
44
51
| Namespace | apps.sample_spl2_buttercup ||
45
52
| Module |_default | This module contains all of the searches for this app. |
46
-
| Module | setup | This module contains the `get_metrics` function which includes a variable to specify the $SPLUNK_HOME path.
47
-
| Module | functions | This module contains the custom eval function `prodnames`, which generates a string with the product ID and product name.
53
+
| Module | setup | This module contains the `get_metrics` function which includes a variable to specify the $SPLUNK_HOME path.|
54
+
| Module | functions | This module contains the custom eval function `prodnames`, which generates a string with the product ID and product name.|
48
55
| Module | sample_data | This module contains a dataset literal of a sample set of events. |
49
56
| View | $successful_purchases | This view returns specific fields from the dataset literal `$data`. The results are shown in a table in the "Buttercup Games" dashboard. |
50
57
| View | $products | This view uses a lookup and returns the product names that correspond to the product IDs. For the dataset, this view uses the `successful purchases` view as a base search The `$products` view was extended in the Search Bar in Splunk Web to create the pie chart in the "Buttercup Games" dashboard. |
@@ -100,4 +107,4 @@ Alternatively, you can email us at `spl2@splunk.com`.
0 commit comments