This repository was archived by the owner on Feb 21, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented Manager XML for better usability and security.
- Loading branch information
Showing
6 changed files
with
247 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
## 0.1.0 | ||
## 1.0 | ||
|
||
First version | ||
|
||
## 1.1 | ||
|
||
- Added Manager XML-file for better usability when adding inputs | ||
- Removed protocol parameter | ||
- Changed hostname parameter to include protocol | ||
- Changed API key to be a password-entry | ||
- Added license info for Splunklib |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,209 @@ | ||
<endpoint name="data/inputs/TA-octopus_deploy"> | ||
<header>Connect to the Octopus Deploy API and stream events to Splunk.</header> | ||
|
||
<breadcrumb> | ||
<parent hidecurrent="False">datainputstats</parent> | ||
<name>Octopus Deploy API</name> | ||
</breadcrumb> | ||
|
||
<elements> | ||
<element name="inputFields" type="fieldset"> | ||
<view name="list"/> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<elements> | ||
|
||
<element name="name" label="Name"> | ||
<view name="list"/> | ||
<view name="create"/> | ||
</element> | ||
|
||
|
||
<element name="endpoint" type="textfield" label="Endpoint"> | ||
<view name="list"/> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<key name="exampleText">Octopus Deploy API endpoint (e.g. environments,events,task,releases)</key> | ||
</element> | ||
|
||
<element name="hostname" type="textfield" label="Hostname"> | ||
<view name="list"/> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<key name="exampleText">URI of Octopus Deploy environment (http(s)://hostname:port)</key> | ||
</element> | ||
|
||
<element name="api_key" type="password" label="Password"> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<key name="exampleText">Use this field, and the confirm field, for the Octopus Deploy API key (https://octopus.com/docs/how-to/how-to-create-an-api-key)</key> | ||
</element> | ||
|
||
<element name="use_checkpoint" type="checkbox" label="Use check pointing"> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<key name="exampleText">Decide if check pointing is needed for this input</key> | ||
</element> | ||
|
||
<element name="interval" type="textfield" label="Interval"> | ||
<view name="list"/> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<key name="exampleText">The interval defining how often to perform the check; can include time units (e.g. 15m for 15 minutes, 8h for 8 hours)</key> | ||
</element> | ||
|
||
</elements> | ||
</element> | ||
|
||
<!-- The sourcetype selection content is typically in the page by default --> | ||
<element name="spl-ctrl_EnableAdvanced" type="checkbox" label="More settings" class="spl-mgr-advanced-switch"> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<onChange> | ||
<key name="_action">showonly</key> | ||
<key name="0">NONE</key> | ||
<key name="1">ALL</key> | ||
<group_set> | ||
<group name="advanced"/> | ||
</group_set> | ||
</onChange> | ||
</element> | ||
|
||
<element name="sourcetype_selection_fix" type="sourcetype_selection_fix"> | ||
<view name="create"/> | ||
<view name="edit"/> | ||
</element> | ||
|
||
<element name="password_copy_fix" type="password_copy_fix"> | ||
<view name="edit"/> | ||
</element> | ||
|
||
<element name="advanced" type="fieldset" class="spl-mgr-advanced-options"> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
|
||
<elements> | ||
<element name="sourcetypeFields" type="fieldset"> | ||
<view name="list"/> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<elements> | ||
|
||
<element name="spl-ctrl_sourcetypeSelect" type="select" label="Set the source type"> | ||
<onChange> | ||
<key name="auto">NONE</key> | ||
<key name="_action">showonly</key> | ||
<group_set> | ||
<group name="sourcetype"/> | ||
<group name="spl-ctrl_from_list"/> | ||
</group_set> | ||
<key name="sourcetype">sourcetype</key> | ||
<key name="spl-ctrl_from_list">spl-ctrl_from_list</key> | ||
</onChange> | ||
<options> | ||
<opt value="auto" label="Automatic"/> | ||
<opt value="sourcetype" label="Manual"/> | ||
<opt value="spl-ctrl_from_list" label="From list"/> | ||
</options> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<key name="exampleText">When this is set to automatic, Splunk classifies and assigns the sourcetype automatically, and gives unknown sourcetypes placeholder names.</key> | ||
<key name="processValueEdit">[[ e for e in ['sourcetype'] if form_defaults.get(e) ][0]]</key> | ||
<key name="processValueAdd">[[ e for e in ['sourcetype'] if form_defaults.get(e) ][0]]</key> | ||
</element> | ||
|
||
<element name="sourcetype" type="textfield" label="Source type"> | ||
<view name="list"/> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<key name="processValueList">_('Automatic') if (value==None or value=='') else value</key> | ||
<key name="submitValueAdd">value if | ||
form_data.get('spl-ctrl_sourcetypeSelect')=='sourcetype' | ||
else (form_data.get('spl-ctrl_from_list') | ||
if form_data.get('spl-ctrl_sourcetypeSelect')=='spl-ctrl_from_list' | ||
else '')</key> | ||
<key name="submitValueEdit">value if | ||
form_data.get('spl-ctrl_sourcetypeSelect')=='sourcetype' | ||
else (form_data.get('spl-ctrl_from_list') | ||
if form_data.get('spl-ctrl_sourcetypeSelect')=='spl-ctrl_from_list' | ||
else '')</key> | ||
<key name="labelList">Source type</key> | ||
</element> | ||
|
||
<element name="spl-ctrl_from_list" type="select" label="Select source type from list"> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<key name="exampleText">Splunk classifies all common data types automatically, | ||
but if you're looking for something specific, you can find more source types | ||
in the <![CDATA[<a href="../../../apps/remote">Splunkbase apps browser</a>]]> | ||
or online at <![CDATA[<a href="http://www.splunkbase.com/" | ||
target="_blank">www.splunkbase.com</a>]]>.</key> | ||
<key name="requiredIfVisible" /> | ||
<key name="dynamicOptions" type="dict"> | ||
<key name="prefixOptions" type="list"> | ||
<item type="list"> | ||
<item></item> | ||
<item>Choose...</item> | ||
</item> | ||
</key> | ||
<key name="keyName">title</key> | ||
<key name="keyValue">title</key> | ||
<key name="splunkSource">/saved/sourcetypes</key> | ||
<key name="splunkSourceParams" type="dict"> | ||
<key name="count">-1</key> | ||
<key name="search">'pulldown_type=true'</key> | ||
</key> | ||
</key> | ||
|
||
</element> | ||
</elements> | ||
<key name="legend">Source type</key> | ||
<key name="helpText">Tell Splunk what kind of data this is so you can group it with | ||
other data of the same type when you search. Splunk does this | ||
automatically, but you can specify what you want if Splunk gets it | ||
wrong.</key> | ||
|
||
</element> | ||
|
||
<element name="hostFields" type="fieldset"> | ||
<key name="legend">Host</key> | ||
<view name="list"/> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<elements> | ||
<element name="host" type="textfield" label="Host field value"> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
</element> | ||
</elements> | ||
</element> | ||
|
||
<element name="indexField" type="fieldset"> | ||
<key name="legend">Index</key> | ||
<key name="helpText">Set the destination index for this source.</key> | ||
<view name="list"/> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<elements> | ||
<element name="index" type="select" label="Index"> | ||
<view name="list"/> | ||
<view name="edit"/> | ||
<view name="create"/> | ||
<key name="dynamicOptions" type="dict"> | ||
<key name="keyName">title</key> | ||
<key name="keyValue">title</key> | ||
<key name="splunkSource">/data/indexes</key> | ||
<key name="splunkSourceParams" type="dict"> | ||
<key name="search">'isInternal=false disabled=false'</key> | ||
<key name="count">-1</key> | ||
</key> | ||
</key> | ||
</element> | ||
</elements> | ||
</element> | ||
|
||
</elements> | ||
</element> | ||
|
||
</elements> | ||
</endpoint> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[] | ||
export = system |