Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

Commit 46de611

Browse files
authored
Merge branch 'master' into refactor-readme
2 parents 0ef5a78 + 820702b commit 46de611

18 files changed

+882
-149
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/local
2-
/metadata/local.meta
1+
*.pyc
2+
tmpdir/

README.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is an add-on powered by the Splunk Add-on Builder.

SplunkAppForPuppetEnterprise.aob_meta

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"basic_builder": {"visible": true, "friendly_name": "Splunk App for Puppet Enterprise", "author": "Puppet, Inc.", "large_icon": "iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAADBklEQVR4Xu2cv2sUQRTHv+9uLyiJxmhCkgObIFY2VtYWikj8cQqHhQi21vYRFLQRLPwRRexEi8QgYiHqv6AoFiJKROQSPdBGJZq9fZI1SJDdnZ3ZXWfu9l27897efPh+3/xgZgkGP749OIT+6oBBaHzI1y9tOomlXHPmkIxMcvBc/QoYp0xiY2M4mKSjiw9zzZlDMgGkgCiABFA2n4mCREGioGwE/r+C+AKoczPyvexdAjAZ/awswzwFp6mxeDEKAt+r3wFwTAAJoISZtCgISFxqCCABpBw2kxerwRSWvl+NTLJu4DpAR8pdpJV4YxrIal5BTgCpAOENOp191Pw0byrCIuLcWayu9I75OTp0mJqtD0V01iSnW4BCSHiHza0dtNuN7Vf3AP1R0mt0gv0u2M0Q0PhZBDhhItkwhrAJoI2J8Y7YzQiQMZjVQL4/sg2+9xJE65Mh2bebFUChi2ZGd4Gqj0AYVCjJqt2sAQoh3R3ejr7aE4C2umo3q4BCSGntBnwEcAuEwNjiy63z1MQvnXjrgLTsptOzqLb+8gZqtr/ppHECkJbddHr3b9tuBqRpNzNM3Q6ocLv1AqC/dqvVnoGo30wqMVG9AiiENDu+AKIxARRDQAAppCGABFC26iEKEgWJgrIREAVl4yc1SBRkriCeHZ0AKi9AlO9h9V5YavDMyE5UvKcADZkj7tG1mMbuohm7blbQqq0eg2jCrPcporoVUKG2WsutGwFp2Kp8m/apbcX8Cp7foEPttymMlGsTa5v2qW3FPA/P32sDzgppK4BS28qBkx5GgHhubApB5bixlglbACTPcyzaam2/DAEVcONw7b+ybCu3ATlgK3cBOWIrRwHxe1T9PbZGq7h66k4NkmPAqg2g8twXOwPma9E4KtMANSKflUZBcttHbvsoJ8hyX0xVT5O+3SEWE4tlsxjzOVR/3ohMEvRdBioHyz2KKfHGNCjNMC+AFDVIAAkgpQbkE11Z5kFKvFKkzRD11Cj2oD4M30++56WLyfu8QAfwQzes6Pa/AUhKlWd3R9gsAAAAAElFTkSuQmCC", "version": "2.0.1", "build_no": 5, "appname": "SplunkAppForPuppetEnterprise", "small_icon": "iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAACC0lEQVRYR+2YTWsTURiFz0lnmiYoYrRpK0oX/RWiSJduRE1DJaIrd4L/pTtXioJFCaYVBEEouNEfUAqlGzeKtYmlXZQaDc49kpREG3JzJ01ipphZDu9973PP+3E/CMunQuo86GcgxGw2jf+VIM/c9qbTLoQBrUDLk7MwXAE54vQjXObc5genXQiDYwwklQAEtUUSPsCzjQUPRCG/PM1ru5+qECqkL4He+yHQoaSOnELSI8SwVwuTdA6IzQ82ZO1K1gS3mS0+D1HVTpPelD20B5kM54orzhkdBj0CqoYRZfDXRWZKq91A2YHeII5KKg2Mtfb/o5LAqL8A4CrAAz/SdyjIMFt6e1QoK1AYh1o6eQY6UQBxpQFVDR90DzL2vS3QR85/22o1R1dAdYd6OfUOMc6GWcRBpzf3eXPrYf+A8pPj8Pj0UPja0fUbqJY+y+kZGG8NRMKp1D8BepW6ABPfAJgcArVSQEOFHImhF+kZ+BFJai2eOo2x5GMQ1/80yDYr6HeVRaYx1pRJJBeb9rN9UA9gaN86vJ/rvLHzuaNOrTxGgfGUVfgRLw5goSlMZZjgFrPF185eZDE4RsePji6K2odMrhtl6oL1RiGju8x+fXbUMP09LjxQ5A75kbsGDYGaMlLNVSZ8AVR/bIgDnGgMGchjQ7sS+j+BClPTIO5ACvGkV3nCXOu9qdPe9BvCCFQ0gPAA5gAAAABJRU5ErkJggg==", "description": "", "tab_version": "2.2.0", "tab_build_no": "12", "theme": "#000000"}, "validation": {"status": "job_finished", "progress": 1.0, "validation_id": "v_1537469735_62", "validators": ["best_practice_validation", "data_model_mapping_validation", "field_extract_validation", "app_cert_validation"]}, "field_extraction_builder": {"pe:metrics:orchestrator": {"data_format": "tabular", "table_results": {"delim": ","}}, "pe:metrics:puppetserver": {"data_format": "tabular", "table_results": {"delim": ","}}, "pe:metrics:puppetdb": {"data_format": "unstructured_data"}}}

app.manifest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"id": {
66
"group": null,
77
"name": "SplunkAppForPuppetEnterprise",
8-
"version": "2.0"
8+
"version": "2.0.1"
99
},
1010
"author": [
1111
{
12-
"name": "Domnick Eger",
12+
"name": "Puppet, Inc.",
1313
"email": null,
1414
"company": null
1515
}

default/data/ui/nav/default.xml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
11
<nav color="#000000">
2-
<view name="puppet_enterprise__overview" default="true" label="Puppet System Overview" />
3-
<view name="overview" default="true" label="Puppet Enterprise Overview" />
4-
<view name="puppet_enterprise__facts" default="true" label="Puppet Facts" />
5-
<view name="puppet_enterprise__extended_details" default="true" label="Extended Details" />
6-
7-
<collection label="Documentation">
8-
<!-- <view name="data_source" /> -->
9-
<a target="_blank" href="https://splunkbase.splunk.com/app/3611/#/details">Install Documentation</a>
10-
<a target="_blank" href="https://answers.splunk.com/answers/ask.html?appid=3611">Ask a Question</a>
11-
</collection>
12-
13-
14-
15-
2+
<view name="home" default="true" label="Home" />
163
</nav>

default/data/ui/views/home.xml

Lines changed: 2 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,4 @@
11
<form>
2-
<label>Puppet Enterprise - Facts</label>
3-
<fieldset submitButton="false">
4-
<input type="multiselect" token="certname" searchWhenChanged="true">
5-
<label>Puppet Managed Hosts</label>
6-
<choice value="*">ALL</choice>
7-
<prefix>certname="</prefix>
8-
<suffix>"</suffix>
9-
<fieldForLabel>certname</fieldForLabel>
10-
<fieldForValue>certname</fieldForValue>
11-
<search>
12-
<query>sourcetype="pe:factors" | dedup certname | table certname</query>
13-
<earliest>-24h@h</earliest>
14-
<latest>now</latest>
15-
</search>
16-
<default>*</default>
17-
</input>
18-
<input type="multiselect" token="pe_server_url" searchWhenChanged="true">
19-
<label>Puppet Enterprise Server</label>
20-
<choice value="*">ALL</choice>
21-
<default>*</default>
22-
<prefix>pe_server_url_="</prefix>
23-
<suffix>"</suffix>
24-
<fieldForLabel>pe_server_url_</fieldForLabel>
25-
<fieldForValue>pe_server_url_</fieldForValue>
26-
<search>
27-
<query>sourcetype="pe:factors" |dedup pe_server_url_ | table pe_server_url_</query>
28-
<earliest>-15m</earliest>
29-
<latest>now</latest>
30-
</search>
31-
<delimiter> </delimiter>
32-
</input>
33-
</fieldset>
34-
<row>
35-
<panel>
36-
<single>
37-
<title>Hosts Managed by Puppet</title>
38-
<search>
39-
<query>sourcetype="pe:factors" |dedup certname | timechart count(certname)</query>
40-
<earliest>-24h@h</earliest>
41-
<latest>now</latest>
42-
</search>
43-
<option name="drilldown">none</option>
44-
</single>
45-
</panel>
46-
<panel>
47-
<single>
48-
<title>Number of Puppet Enterprise Masters</title>
49-
<search>
50-
<query>sourcetype="pe:factors" |dedup certname | timechart distinct_count(pe_server_url_)</query>
51-
<earliest>-24h@h</earliest>
52-
<latest>now</latest>
53-
</search>
54-
</single>
55-
</panel>
56-
<panel>
57-
<single>
58-
<title>Number of Virtual Machines</title>
59-
<search>
60-
<query>sourcetype="pe:factors" |dedup certname | timechart count(is_virtual)</query>
61-
<earliest>-24h@h</earliest>
62-
<latest>now</latest>
63-
</search>
64-
<option name="drilldown">none</option>
65-
</single>
66-
</panel>
67-
</row>
68-
<row>
69-
<panel>
70-
<table>
71-
<search>
72-
<query>sourcetype="pe:factors" $certname$ $pe_server_url$ |dedup certname
73-
| eval api_end_epoch=strptime(expiration,"%m/%d/%y")
74-
| eval days_left=round((api_end_epoch-now())/86400,0)
75-
| rename certname as Hosts
76-
| rename osfamily as "OS Family"
77-
| rename pe_server_url_ as Facts
78-
| rename expiration as "Token Generation Date"
79-
| rename clientversion as "Puppet Agent Version"
80-
| rename uptime as "Uptime"
81-
| rename architecture as "Architecture"
82-
| rename _time as "Last Updated"
83-
| rename days_left as "Token Expires"
84-
| table Hosts Facts "OS Family" Architecture "Puppet Agent Version" Uptime "Last Updated" "Token Generation Date" "Token Expires"</query>
85-
<earliest>-15m</earliest>
86-
<latest>now</latest>
87-
<sampleRatio>1</sampleRatio>
88-
</search>
89-
<option name="count">20</option>
90-
<option name="dataOverlayMode">none</option>
91-
<option name="drilldown">cell</option>
92-
<option name="percentagesRow">false</option>
93-
<option name="refresh.display">progressbar</option>
94-
<option name="rowNumbers">false</option>
95-
<option name="totalsRow">false</option>
96-
<option name="wrap">true</option>
97-
<drilldown target="_blank">
98-
<link>https://$row.Facts$/#/inspect/node/$row.Hosts$/facts</link>
99-
</drilldown>
100-
</table>
101-
</panel>
102-
</row>
2+
<label>SplunkAppForPuppetEnterprise</label>
3+
<description>This is an example view in add-on SplunkAppForPuppetEnterprise</description>
1034
</form>

local/app.conf

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# this add-on is powered by splunk Add-on builder
2+
[install]
3+
state_change_requires_restart = true
4+
is_configured = false
5+
state = enabled
6+
build = 5
7+
8+
[launcher]
9+
author = Puppet, Inc.
10+
version = 2.0.1
11+
12+
[ui]
13+
is_visible = 1
14+
label = Splunk App for Puppet Enterprise
15+
docs_section_override = AddOns:released
16+
17+
[package]
18+
id = SplunkAppForPuppetEnterprise
19+
20+
[triggers]
21+
reload.addon_builder = simple
22+
reload.splunkappforpuppetenterprise_account = simple
23+
reload.splunkappforpuppetenterprise_settings = simple
24+
reload.passwords = simple

local/data/ui/nav/default.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<nav color="#000000">
2+
<view name="puppet_enterprise__overview" default="true" label="Puppet System Overview" />
3+
<view name="overview" default="true" label="Puppet Enterprise Overview" />
4+
<view name="puppet_enterprise__facts" default="true" label="Puppet Facts" />
5+
<view name="puppet_enterprise__extended_details" default="true" label="Extended Details" />
6+
7+
<collection label="Documentation">
8+
<!-- <view name="data_source" /> -->
9+
<a target="_blank" href="https://splunkbase.splunk.com/app/3611/#/details">Install Documentation</a>
10+
<a target="_blank" href="https://answers.splunk.com/answers/ask.html?appid=3611">Ask a Question</a>
11+
</collection>
12+
13+
14+
15+
16+
</nav>

local/data/ui/views/home.xml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
<form>
2+
<label>Puppet Enterprise - Facts</label>
3+
<fieldset submitButton="false">
4+
<input type="multiselect" token="certname" searchWhenChanged="true">
5+
<label>Puppet Managed Hosts</label>
6+
<choice value="*">ALL</choice>
7+
<prefix>certname="</prefix>
8+
<suffix>"</suffix>
9+
<fieldForLabel>certname</fieldForLabel>
10+
<fieldForValue>certname</fieldForValue>
11+
<search>
12+
<query>sourcetype="pe:factors" | dedup certname | table certname</query>
13+
<earliest>-24h@h</earliest>
14+
<latest>now</latest>
15+
</search>
16+
<default>*</default>
17+
</input>
18+
<input type="multiselect" token="pe_server_url" searchWhenChanged="true">
19+
<label>Puppet Enterprise Server</label>
20+
<choice value="*">ALL</choice>
21+
<default>*</default>
22+
<prefix>pe_server_url_="</prefix>
23+
<suffix>"</suffix>
24+
<fieldForLabel>pe_server_url_</fieldForLabel>
25+
<fieldForValue>pe_server_url_</fieldForValue>
26+
<search>
27+
<query>sourcetype="pe:factors" |dedup pe_server_url_ | table pe_server_url_</query>
28+
<earliest>-15m</earliest>
29+
<latest>now</latest>
30+
</search>
31+
<delimiter> </delimiter>
32+
</input>
33+
</fieldset>
34+
<row>
35+
<panel>
36+
<single>
37+
<title>Hosts Managed by Puppet</title>
38+
<search>
39+
<query>sourcetype="pe:factors" |dedup certname | timechart count(certname)</query>
40+
<earliest>-24h@h</earliest>
41+
<latest>now</latest>
42+
</search>
43+
<option name="drilldown">none</option>
44+
</single>
45+
</panel>
46+
<panel>
47+
<single>
48+
<title>Number of Puppet Enterprise Masters</title>
49+
<search>
50+
<query>sourcetype="pe:factors" |dedup certname | timechart distinct_count(pe_server_url_)</query>
51+
<earliest>-24h@h</earliest>
52+
<latest>now</latest>
53+
</search>
54+
</single>
55+
</panel>
56+
<panel>
57+
<single>
58+
<title>Number of Virtual Machines</title>
59+
<search>
60+
<query>sourcetype="pe:factors" |dedup certname | timechart count(is_virtual)</query>
61+
<earliest>-24h@h</earliest>
62+
<latest>now</latest>
63+
</search>
64+
<option name="drilldown">none</option>
65+
</single>
66+
</panel>
67+
</row>
68+
<row>
69+
<panel>
70+
<table>
71+
<search>
72+
<query>sourcetype="pe:factors" $certname$ $pe_server_url$ |dedup certname
73+
| eval api_end_epoch=strptime(expiration,"%m/%d/%y")
74+
| eval days_left=round((api_end_epoch-now())/86400,0)
75+
| rename certname as Hosts
76+
| rename osfamily as "OS Family"
77+
| rename pe_server_url_ as Facts
78+
| rename expiration as "Token Generation Date"
79+
| rename clientversion as "Puppet Agent Version"
80+
| rename uptime as "Uptime"
81+
| rename architecture as "Architecture"
82+
| rename _time as "Last Updated"
83+
| rename days_left as "Token Expires"
84+
| table Hosts Facts "OS Family" Architecture "Puppet Agent Version" Uptime "Last Updated" "Token Generation Date" "Token Expires"</query>
85+
<earliest>-15m</earliest>
86+
<latest>now</latest>
87+
<sampleRatio>1</sampleRatio>
88+
</search>
89+
<option name="count">20</option>
90+
<option name="dataOverlayMode">none</option>
91+
<option name="drilldown">cell</option>
92+
<option name="percentagesRow">false</option>
93+
<option name="refresh.display">progressbar</option>
94+
<option name="rowNumbers">false</option>
95+
<option name="totalsRow">false</option>
96+
<option name="wrap">true</option>
97+
<drilldown target="_blank">
98+
<link>https://$row.Facts$/#/inspect/node/$row.Hosts$/facts</link>
99+
</drilldown>
100+
</table>
101+
</panel>
102+
</row>
103+
</form>

0 commit comments

Comments
 (0)