Skip to content

Commit

Permalink
Added Dashboard Version to Dashboards
Browse files Browse the repository at this point in the history
To address jquery version requirements for Splunk Cloud, added version numbers to the dashboards taht were missing them.
  • Loading branch information
derkkila committed Jan 31, 2022
1 parent 6c91d18 commit 875644f
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form>
<form version="1.1">
<label>System Health Monitor</label>
<fieldset submitButton="false" autoRun="true">
<input type="time" token="timeTkn" searchWhenChanged="true">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form>
<form version="1.1">
<label>Process Monitor</label>
<fieldset submitButton="false" autoRun="true">
<input type="time" token="timeTkn" searchWhenChanged="true">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form>
<form version="1.1">
<label>Authentication Monitor</label>
<fieldset submitButton="false" autoRun="true">
<input type="time" token="timeTkn" searchWhenChanged="true">
Expand Down Expand Up @@ -311,4 +311,4 @@
</chart>
</panel>
</row>
</form>
</form>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form>
<form version="1.1">
<label>Storage Monitor</label>
<fieldset submitButton="false" autoRun="true">
<input type="time" token="timeTkn" searchWhenChanged="true">
Expand Down Expand Up @@ -125,4 +125,4 @@
</chart>
</panel>
</row>
</form>
</form>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form theme="light">
<form version="1.1" theme="dark">
<label>Code Scanning Alerts</label>
<search id="baseSearch">
<query>
Expand Down Expand Up @@ -86,10 +86,10 @@
<title>Alert Found/Fixed Ratio</title>
<search base="baseSearch">
<query>| search tool=$tool_name$ repository=$repoTkn$ (action=created OR action=fixed)
| timechart count(_raw) by action
| timechart count(_raw) by action
| accum created
| accum fixed
| rename created as "Found"
| accum fixed
| rename created as "Found"
| rename fixed as "Fixed"</query>
</search>
<option name="charting.axisTitleX.visibility">collapsed</option>
Expand Down Expand Up @@ -142,7 +142,7 @@
<search base="baseSearch">
<query> | search (action=fixed OR action=closed_by_user) repository=$repoTkn$ tool=$tool_name$
| table repository, tool, alert_url,duration_str
| rename repository AS "Repository" duration_str AS "Time to Resolution",tool AS "Tool", alert_url AS "Alert URL"
| rename repository AS "Repository" duration_str AS "Time to Resolution",tool AS "Tool", alert_url AS "Alert URL"
| sort -"Time to Resolution"
</query>
</search>
Expand Down Expand Up @@ -189,4 +189,4 @@
</table>
</panel>
</row>
</form>
</form>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form>
<form version="1.1">
<label>Secret Scanning Alerts</label>
<search id="baseSearch">
<query>
Expand Down Expand Up @@ -98,10 +98,10 @@
<title>Secrets Found/Fixed Ratio</title>
<search base="baseSearch">
<query>| search repository=$repoTkn$ organization=$orgTkn$ secret_type=$secret_type$ (action=created OR action=resolved)
| timechart count(_raw) by action
| timechart count(_raw) by action
| accum created
| accum resolved
| rename created as "Found"
| accum resolved
| rename created as "Found"
| rename resolved as "Fixed"</query>
</search>
<option name="charting.axisTitleX.visibility">collapsed</option>
Expand All @@ -117,7 +117,7 @@
<table>
<title>Fixed Secrets</title>
<search base="baseSearch">
<query> | search action=resolved repository=$repoTkn$ organization=$orgTkn$ secret_type=$secret_type$ | table secret_type, organization, repository, resolution, resolved_by, _time
<query> | search action=resolved repository=$repoTkn$ organization=$orgTkn$ secret_type=$secret_type$ | table secret_type, organization, repository, resolution, resolved_by, _time
| rename secret_type as "Secret Type"
| rename organization as "Organization"
| rename repository as "Repository"
Expand Down Expand Up @@ -145,4 +145,4 @@
</table>
</panel>
</row>
</form>
</form>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form>
<form version="1.1">
<label>Advanced Security Overview</label>
<search id="baseSearch">
<query>
Expand Down Expand Up @@ -240,4 +240,4 @@
</table>
</panel>
</row>
</form>
</form>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form theme="dark">
<form version="1.1" theme="dark">
<search id="baseSearch">
<query>
index=github_webhook (eventtype="GitHub::Issue" (action IN("opened","milestoned")) OR (action="labeled" AND label.name IN("in progress","to do"))) OR (eventtype="GitHub::Push" issueNumber=*) OR (eventtype="GitHub::PullRequest" action IN("opened","closed") issueNumber=*) repository.name IN("$repoTkn$") issueNumber!=9 | eval openTime=if(action=="opened",_time,NULL) | eval inProgressTime=if(action=="labeled",if('label.name'=="to do",_time,NULL),if(action=="milestoned",_time,NULL)) | eval workTime=if(action="labeled",if('label.name'="in progress",_time,NULL),if(eventtype=="GitHub::Push",_time,NULL)) | eval mergeTime=if(eventtype="GitHub::PullRequest",if(action=="opened",_time,NULL),if(eventtype="GitHub::Push",if(ref="refs/heads/main",_time,NULL),NULL)) | eval reviewTime=if(eventtype="GitHub::PullRequest",if('pull_request.merged'="true",_time,NULL),if(eventtype="GitHub::Push",if(ref="refs/heads/main",_time,NULL),NULL)) | eval sha=after | join type=left max=0 sha [ search index="github_webhook" eventtype="GitHub::Workflow" | eval sha='workflow_job.head_sha' | stats min(_time) as startTestTime, max(_time) as endTestTime by sha, workflow_job.id | eval testTimeDiff=endTestTime-startTestTime] | eval release='milestone.title' | join type=left release [search index=github_webhook eventtype="GitHub::Release" | eval release='release.tag_name' | stats max(_time) as releaseTime by release] | stats max(issue.title) as issue.title, latest(milestone.title) as release, min(openTime) as opened, min(inProgressTime) as in_progress, min(workTime) as working , max(mergeTime) as merge, max(reviewTime) as review, avg(testTimeDiff) as avgTestDuration, max(endTestTime) as endTestTime, max(releaseTime) as releaseTime by repository.name,issueNumber | search opened=*
Expand Down
12 changes: 6 additions & 6 deletions github_app_for_splunk/default/data/ui/views/welcome_page.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<dashboard>
<dashboard version="1.1">
<label>Welcome Page</label>
<row>
<panel>
Expand All @@ -16,7 +16,7 @@
<p>
This Splunk app is meant to be your single pane of glass for anything GitHub. Whether you're looking for audit log analytics, GitHub Enterprise Server monitoring, or other GitHub metrics, you're in the right place!
</p>
</div>
</div>
</html>
</panel>
</row>
Expand Down Expand Up @@ -44,7 +44,7 @@
<li><a href="user_audit">User Change Audit</a> is the best place to review actions taken by or made to individual users.</li>
</ol>
</p>
</div>
</div>
</html>
</panel>
<panel>
Expand All @@ -67,7 +67,7 @@
<li>The <a href="secret_scanning_overview"> Secret Scanning Alerts</a> dashboard provides visibility into secrets like API keys and personal access tokens that have been checked into your repositories</li>
</ol>
</p>
</div>
</div>
</html>
</panel>
</row>
Expand All @@ -91,8 +91,8 @@
<li><a href="webhook_config">Rich commit, pull request, and Code Scanning</a> data is available through GitHub Webhooks</li>
</ol>
</p>
</div>
</div>
</html>
</panel>
</row>
</dashboard>
</dashboard>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form theme="dark">
<form version="1.1" theme="dark">
<label>Workflow Analytics</label>
<fieldset submitButton="false" autoRun="true">
<input type="time" token="timeTkn">
Expand Down Expand Up @@ -102,4 +102,4 @@
</table>
</panel>
</row>
</form>
</form>

0 comments on commit 875644f

Please sign in to comment.