Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
configuration
Commits
36f820ee
Commit
36f820ee
authored
Jun 29, 2016
by
Max Rothman
Committed by
GitHub
Jun 29, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3152 from edx/max/jenkins-splunk
Add jenkins to splunk
parents
facaa038
9c314e8a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
2 deletions
+24
-2
playbooks/edx-east/jenkins_admin.yml
+9
-0
playbooks/edx-east/jenkins_tools.yml
+9
-0
playbooks/roles/splunkforwarder/tasks/main.yml
+1
-1
playbooks/roles/splunkforwarder/templates/opt/splunkforwarder/etc/system/local/inputs.conf.j2
+5
-1
No files found.
playbooks/edx-east/jenkins_admin.yml
View file @
36f820ee
...
...
@@ -9,3 +9,12 @@
roles
:
-
aws
-
jenkins_admin
# This requires an override of the following form:
# SPLUNKFORWARDER_LOG_ITEMS:
# - source: /edx/var/jenkins/jobs/*/builds/*/log
# index: '{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-jenkins'
# sourcetype: jenkins_build
# followSymlink: false
# crcSalt: <SOURCE>
-
role
:
splunkforwarder
when
:
COMMON_ENABLE_SPLUNKFORWARDER
playbooks/edx-east/jenkins_tools.yml
View file @
36f820ee
...
...
@@ -9,3 +9,12 @@
roles
:
-
aws
-
tools_jenkins
# This requires an override of the following form:
# SPLUNKFORWARDER_LOG_ITEMS:
# - source: /edx/var/jenkins/jobs/*/builds/*/log
# index: '{{ COMMON_ENVIRONMENT }}-{{ COMMON_DEPLOYMENT }}-jenkins'
# sourcetype: jenkins_build
# followSymlink: false
# crcSalt: <SOURCE>
-
role
:
splunkforwarder
when
:
COMMON_ENABLE_SPLUNKFORWARDER
playbooks/roles/splunkforwarder/tasks/main.yml
View file @
36f820ee
...
...
@@ -84,7 +84,7 @@
notify
:
restart splunkforwarder
-
name
:
Update admin pasword
shell
:
"
{{
splunkforwarder_output_dir
}}/bin/splunk
edit
user
admin
-password
{{
SPLUNKFORWARDER_PASSWORD
}}
-auth
admin:changeme
--accept-license
--answer-yes
--no-prompt"
shell
:
"
{{
splunkforwarder_output_dir
}}/bin/splunk
edit
user
admin
-password
'{{
SPLUNKFORWARDER_PASSWORD
}}'
-auth
admin:changeme
--accept-license
--answer-yes
--no-prompt"
when
:
download_deb.changed
notify
:
restart splunkforwarder
...
...
playbooks/roles/splunkforwarder/templates/opt/splunkforwarder/etc/system/local/inputs.conf.j2
View file @
36f820ee
...
...
@@ -3,7 +3,11 @@
{% for loggable in SPLUNKFORWARDER_LOG_ITEMS%}
[monitor://{{ loggable.source }}]
blacklist = \.(gz)$
recursive = {{ loggable.recursive|default(false) }}
{% if loggable.recursive | default(False) %}
{# There's a bug in which "recursive" must be unset for logs to be forwarded #}
{# See https://answers.splunk.com/answers/420901/splunk-not-matching-files-with-wildcard-in-monitor.html #}
recursive = true
{% endif %}
{% if loggable.sourcetype is defined %}
sourcetype = {{ loggable.sourcetype }}
{% endif %}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment