File tree 4 files changed +31
-5
lines changed
4 files changed +31
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,5 @@ FROM dmuth1/splunk-lab-ml
7
7
#
8
8
# Copy in our application
9
9
#
10
- COPY app/ /app/
11
-
10
+ COPY app/ /opt/splunk/etc/apps/splunk-yelp/default
12
11
Original file line number Diff line number Diff line change
1
+ #
2
+ # Splunk app configuration file
3
+ #
4
+
5
+ [install]
6
+ is_configured = 0
7
+
8
+ [ui]
9
+ is_visible = 1
10
+ label = Splunk Yelp
11
+
12
+ [launcher]
13
+ author = Douglas Muth
14
+ description = Splunk Yelp: Splunk Yelp Reviews by Venue!
15
+ version = 1.0.0
16
+
Original file line number Diff line number Diff line change 8
8
<latest ></latest >
9
9
</default >
10
10
</input >
11
+ <input type =" dropdown" token =" span" searchWhenChanged =" true" >
12
+ <label >Span</label >
13
+ <choice value =" 1y" >1 Year</choice >
14
+ <choice value =" 6mon" >6 Months</choice >
15
+ <choice value =" 3mon" >3 Months</choice >
16
+ <choice value =" 1mon" >1 Month</choice >
17
+ <choice value =" 1w" >1 Week</choice >
18
+ <choice value =" 1d" >1 Day</choice >
19
+ <default >1mon</default >
20
+ <initialValue >1mon</initialValue >
21
+ </input >
11
22
<input type =" dropdown" token =" venue" searchWhenChanged =" true" >
12
23
<label >Venue</label >
13
24
<fieldForLabel >venue</fieldForLabel >
65
76
<chart >
66
77
<search >
67
78
<query >index=main venue="$venue$"
68
- | timechart avg(stars) AS "Avg Rating" count(stars) AS "Num Ratings"</query >
79
+ | timechart span=$span$ avg(stars) AS "Avg Rating" count(stars) AS "Num Ratings"</query >
69
80
<earliest >$field1.earliest$</earliest >
70
81
<latest >$field1.latest$</latest >
71
82
<sampleRatio >1</sampleRatio >
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ cat > user-prefs.conf << EOF
127
127
# Created by Splunk Yelp
128
128
#
129
129
[general]
130
- default_namespace = splunk-lab
130
+ default_namespace = splunk-yelp
131
131
EOF
132
132
133
133
echo
180
180
ID=$( docker run $CMD -d dmuth1/splunk-yelp)
181
181
182
182
else
183
- DOCKER_V_APP=" -v $( pwd) /app:/app "
183
+ DOCKER_V_APP=" -v $( pwd) /app:/opt/splunk/etc/apps/splunk-yelp/local "
184
184
docker run $CMD ${DOCKER_V_MNT} ${DOCKER_V_APP} -it dmuth1/splunk-yelp bash
185
185
186
186
fi
You can’t perform that action at this time.
0 commit comments