Created
June 26, 2023 16:26
-
-
Save mayurah/0bd2b69cd73f99beebfc543c5745f04c to your computer and use it in GitHub Desktop.
Splunk XKCD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form version="1.1"> | |
<label>XKCD API Explorer</label> | |
<description>XKCD Dashboard to explore Comic data</description> | |
<fieldset submitButton="false"> | |
<input type="dropdown" token="img"> | |
<label>XKCD Comic</label> | |
<fieldForLabel>safe_title</fieldForLabel> | |
<fieldForValue>img</fieldForValue> | |
<search> | |
<query>index=main img=* | dedup img | table safe_title img month num alt year | sort - safe_title</query> | |
<earliest>-24h@h</earliest> | |
<latest>now</latest> | |
</search> | |
<choice value="https://imgs.xkcd.com/comics/datacenter_scale_2x.png">Default</choice> | |
<default>https://imgs.xkcd.com/comics/datacenter_scale_2x.png</default> | |
<initialValue>https://imgs.xkcd.com/comics/datacenter_scale_2x.png</initialValue> | |
</input> | |
</fieldset> | |
<row> | |
<panel> | |
<title>XKCD Meta Data</title> | |
<table> | |
<search> | |
<query>index=main img=* img=$img$ | dedup img | table num safe_title alt img month year | sort - safe_title</query> | |
<earliest>-24h@h</earliest> | |
<latest>now</latest> | |
<sampleRatio>1</sampleRatio> | |
</search> | |
<option name="count">20</option> | |
<option name="dataOverlayMode">none</option> | |
<option name="drilldown">none</option> | |
<option name="percentagesRow">false</option> | |
<option name="refresh.display">progressbar</option> | |
<option name="rowNumbers">false</option> | |
<option name="totalsRow">false</option> | |
<option name="wrap">true</option> | |
</table> | |
</panel> | |
</row> | |
<row> | |
<panel> | |
<html> | |
<img src="$img$"/> | |
</html> | |
</panel> | |
</row> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment