forked from splunk/splunkforjenkins
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ted Xiao
committed
Oct 13, 2016
1 parent
bab9e0e
commit 4a18688
Showing
6 changed files
with
56 additions
and
46 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
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
10 changes: 3 additions & 7 deletions
10
...s/src/main/resources/com/splunk/splunkjenkins/SplunkJenkinsInstallation/config.properties
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,11 +1,7 @@ | ||
ConfigTitle=Splunk for Jenkins Configuration | ||
Hostname=Splunk Host Name | ||
default_metadata=\ | ||
source=jenkins\n\n\ | ||
#custom index, uncomment the settings after index created in Splunk\n\ | ||
#index=jenkins_statistics\n\ | ||
#build_report.index=jenkins\n#file.index=jenkins_artifact\n#console_log.index=jenkins_console\n\ | ||
#source types for plian text\n | ||
#disable audit trail\n\ | ||
host={0}\ | ||
#audit trail is not enabled by default\n\ | ||
jenkins_config.enabled=false | ||
|
||
#end of metadata |
38 changes: 14 additions & 24 deletions
38
...ain/resources/com/splunk/splunkjenkins/SplunkJenkinsInstallation/help-metaDataConfig.html
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,27 +1,17 @@ | ||
<div> | ||
<p>Specifiy index, host, source, soucetype for the events, This can be used in Splunk query language such as | ||
<b> index="main" source="jenkins" host="jenkins.domain" sourcetype="_json" </b> | ||
<p>Specify index, host, source, soucetype for the events. </p> | ||
</p> index is a data repository in Splunk, please create the 4 indexes in Splunk: | ||
<span class="warning"> | ||
jenkins, jenkins_statistics, jenkins_console and jenkins_artifact | ||
</span> | ||
</p> | ||
<p> | ||
host is used to identify which Jenkins master is the source of the data. | ||
the metadata can be used in Splunk query language such as <br/> | ||
index="jenkins" host="servername" sourcetype="json:jenkins" <br/> | ||
</p> | ||
|
||
<p> | ||
<a href="https://wiki.jenkins-ci.org/display/JENKINS/Splunk+Plugin+for+Jenkins">See more details</a> | ||
</p> | ||
<p>The index in Splunk to which the events will be indexed to. Defaults to "main" index in Splunk. | ||
Note: If using a custom index, that index must be already exist on your Splunk instance. Splunk-Jenkins will not | ||
create it for you.</p> | ||
<p>The metadata can be customized for each event prefix: <b>test_result, console_log, queue_info, file, | ||
xml_config</b> | ||
e.g. | ||
<pre> | ||
#index | ||
index=main #this is global level | ||
console_log.index=ci_log #only for console_log | ||
#source | ||
source=sandbox | ||
#sourcetype | ||
sourcetype=_json | ||
#host | ||
host=sandbox | ||
</pre> | ||
will set index as ci_log for console_log event, main as index for others. jenkins_job as source for console_log | ||
event, | ||
sandbox as source for others | ||
<br/>Note: double quote is not needed for values. | ||
</pre> | ||
</div> |
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,12 @@ | ||
source=jenkins | ||
#default index and source type settings | ||
build_report.index=jenkins | ||
build_event.index=jenkins_statistics | ||
queue_info.index=jenkins_statistics | ||
jenkins_config.index=jenkins_statistics | ||
slave_info.index=jenkins_statistics | ||
console_log.index=jenkins_console | ||
log.index=jenkins_console | ||
file.index=jenkins_artifact | ||
sourcetype=json:jenkins | ||
sourcetype_text=text:jenkins |