Skip to content

Instantly share code, notes, and snippets.

@irctrakz
Created February 20, 2013 19:50
Show Gist options
  • Save irctrakz/4998764 to your computer and use it in GitHub Desktop.
Save irctrakz/4998764 to your computer and use it in GitHub Desktop.
box.com API dashboard XML for Splunk.
<?xml version='1.0' encoding='utf-8'?>
<dashboard>
<label>box.com : API Status.</label>
<row>
<chart>
<searchName>Box Event Count</searchName>
<title>Box: Event Count (7 Days)</title>
<option name="charting.axisTitleX.text">Time</option>
<option name="charting.chart">column</option>
<option name="charting.chart.nullValueMode">connect</option>
<option name="charting.chart.stackMode">stacked100</option>
<option name="charting.fieldColors">{"DELETE":0x1A496B,"DOWNLOAD":0x0D6EB6,"EDIT":0x3EADFF,"PREVIEW":0xA3D8FF,"UPLOAD":0xDDF0FF}</option>
<option name="charting.layout.margin">(0,0,0,0)</option>
<option name="charting.layout.splitSeries">false</option>
<option name="charting.legend.placement">right</option>
<option name="charting.primaryAxisTitle.text"/>
</chart>
</row>
<row>
<chart>
<searchString>
index=box | stats count as log_events
</searchString>
<title>Box: Event Rate (Last Hour)</title>
<earliestTime>-3h@h</earliestTime>
<latestTime>-2h@h</latestTime>
<option name="charting.chart">radialGauge</option>
<option name="charting.chart.rangeValues">[0,3333,6666,10000]</option>
<option name="charting.chart.style">minimal</option>
<option name="charting.gaugeColors">[0xE4ECF3,0x6F9EC3,0x105E9B]</option>
<option name="charting.layout.margin">(0,0,0,0)</option>
<option name="count">10</option>
<option name="displayRowNumbers">true</option>
</chart>
<chart>
<searchString>
index=box | stats count as log_events
</searchString>
<title>Box: Event Rate (Last Day)</title>
<earliestTime>-2d@h</earliestTime>
<latestTime>-1d@d</latestTime>
<option name="charting.chart">radialGauge</option>
<option name="charting.chart.rangeValues">[0,75000,150000,200000]</option>
<option name="charting.chart.style">minimal</option>
<option name="charting.gaugeColors">[0xE4ECF3,0x6F9EC3,0x105E9B]</option>
<option name="charting.layout.margin">(0,0,0,0)</option>
<option name="count">10</option>
<option name="displayRowNumbers">true</option>
</chart>
<chart>
<searchString>
index=box | stats count as log_events
</searchString>
<title>Box: Event Rate (Last Week)</title>
<earliestTime>-8d@d</earliestTime>
<latestTime>-1d@d</latestTime>
<option name="charting.chart">radialGauge</option>
<option name="charting.chart.rangeValues">[0,500000,750000,1000000]</option>
<option name="charting.chart.style">minimal</option>
<option name="charting.gaugeColors">[0xE4ECF3,0x6F9EC3,0x105E9B]</option>
<option name="charting.layout.margin">(0,0,0,0)</option>
<option name="count">10</option>
<option name="displayRowNumbers">true</option>
</chart>
</row>
<row>
<chart>
<searchName>Top Downloaders</searchName>
<title>Box: Top Downloaders</title>
<option name="charting.axisTitleX.text">Time</option>
<option name="charting.axisY.scale">log</option>
<option name="charting.chart">column</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.layout.margin">(0,0,0,0)</option>
<option name="charting.layout.splitSeries">false</option>
<option name="charting.legend.placement">right</option>
<option name="charting.primaryAxisTitle.text"/>
<option name="charting.secondaryAxis.scale">log</option>
<option name="charting.seriesColors">[0x105E9B,0x276EA5,0x3F7EAF,0x578EB9,0x6F9EC3,0x84ACCB,0x9CBCD5,0xB3CCDF,0xCBDCE9,0xE4ECF3,0xF4F7FA]</option>
</chart>
<chart>
<searchName>Top Uploaders</searchName>
<title>Box: Top Uploaders</title>
<option name="charting.axisTitleX.text">Time</option>
<option name="charting.axisY.scale">log</option>
<option name="charting.chart">column</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.layout.margin">(0,0,0,0)</option>
<option name="charting.layout.splitSeries">false</option>
<option name="charting.legend.placement">right</option>
<option name="charting.primaryAxisTitle.text"/>
<option name="charting.secondaryAxis.scale">log</option>
<option name="charting.seriesColors">[0x105E9B,0x276EA5,0x3F7EAF,0x578EB9,0x6F9EC3,0x84ACCB,0x9CBCD5,0xB3CCDF,0xCBDCE9,0xE4ECF3,0xF4F7FA]</option>
</chart>
</row>
<row>
<chart>
<searchName>Box: Logins over time</searchName>
<title>Box: Logins over time</title>
<option name="charting.axisTitleX.text">Time</option>
<option name="charting.chart">column</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.layout.margin">(0,0,0,0)</option>
<option name="charting.layout.splitSeries">false</option>
<option name="charting.legend.placement">none</option>
<option name="charting.primaryAxisTitle.text"/>
<option name="charting.seriesColors">[0x2A7DBC]</option>
</chart>
<chart>
<searchName>Box Actions</searchName>
<title>Box: Actions (7 Days)</title>
<option name="charting.chart">pie</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.fieldColors">{"DELETE":0x1A496B,"DOWNLOAD":0x0D6EB6,"EDIT":0x3EADFF,"PREVIEW":0xA3D8FF,"UPLOAD":0xDDF0FF,"other":0xF4F7FA}</option>
<option name="charting.layout.margin">(0,0,0,0)</option>
<option name="charting.layout.splitSeries">false</option>
<option name="charting.legend.placement">right</option>
</chart>
<chart>
<searchName>Box: Actions (24 Hour)</searchName>
<title>Box: Actions (24 Hour)</title>
<option name="charting.chart">pie</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.fieldColors">{"DELETE":0x1A496B,"DOWNLOAD":0x0D6EB6,"EDIT":0x3EADFF,"PREVIEW":0xA3D8FF,"UPLOAD":0xDDF0FF,"other":0xF4F7FA}</option>
<option name="charting.layout.margin">(0,0,0,0)</option>
<option name="charting.layout.splitSeries">false</option>
<option name="charting.legend.placement">right</option>
</chart>
</row>
<row>
<chart>
<searchName>Top Documents</searchName>
<title>Box: Top Documents (7 Days)</title>
<option name="charting.axisTitleX.text">Access Count</option>
<option name="charting.axisTitleY.text">File</option>
<option name="charting.chart">bar</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.layout.margin">(0,0,0,0)</option>
<option name="charting.layout.splitSeries">false</option>
<option name="charting.legend.placement">none</option>
<option name="charting.primaryAxisTitle.text"/>
<option name="charting.secondaryAxisTitle.text"/>
<option name="charting.seriesColors">[0x2A7DBC]</option>
</chart>
<chart>
<searchName>Top Country</searchName>
<title>Box: Top Countries (7 Days)</title>
<option name="charting.axisTitleX.text">Event Count</option>
<option name="charting.axisTitleY.text">Country</option>
<option name="charting.axisY.scale">log</option>
<option name="charting.chart">bar</option>
<option name="charting.chart.nullValueMode">gaps</option>
<option name="charting.chart.stackMode">default</option>
<option name="charting.layout.margin">(0,0,0,0)</option>
<option name="charting.layout.splitSeries">false</option>
<option name="charting.legend.placement">none</option>
<option name="charting.primaryAxisTitle.text"/>
<option name="charting.secondaryAxis.scale">log</option>
<option name="charting.secondaryAxisTitle.text"/>
<option name="charting.seriesColors">[0x2A7DBC]</option>
</chart>
</row>
</dashboard>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment