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
edx
configuration
Commits
e2980f1e
Commit
e2980f1e
authored
Oct 20, 2017
by
syed-awais-ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
splunk changes for edx
parent
b6781dc2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
55 additions
and
25 deletions
+55
-25
playbooks/roles/splunk-server/defaults/main.yml
+4
-4
playbooks/roles/splunk-server/tasks/main.yml
+4
-4
playbooks/roles/splunk-server/templates/opt/splunk/etc/apps/search/local/indexes.conf.j2
+36
-6
playbooks/roles/splunk-server/templates/opt/splunk/etc/apps/search/local/props.conf.j2
+2
-0
playbooks/roles/splunk-server/templates/opt/splunk/etc/system/local/alert_actions.conf.j2
+7
-8
playbooks/roles/splunk-server/templates/opt/splunk/etc/system/local/inputs.conf.j2
+2
-3
No files found.
playbooks/roles/splunk-server/defaults/main.yml
View file @
e2980f1e
...
...
@@ -9,13 +9,12 @@
#
##
# Defaults for role splunk-server
#
#
#
# vars are namespaced with the module name.
#
SPLUNK_INDEXES
:
-
"
default"
SPLUNK_INDEXES
:
[]
SPLUNK_ALERTS
:
[]
# A list of dicts with the following keys:
...
...
@@ -83,6 +82,7 @@ SPLUNK_SMTP_USERNAME: username
SPLUNK_SMTP_PASSWORD
:
password
SPLUNK_FROM_ADDRESS
:
no-reply@example.com
SPLUNK_EMAIL_FOOTER
:
Generated by {{ SPLUNK_HOSTNAME }}
SPLUNK_SSL_HOSTNAME
:
splunk.example.com:443
# SSL settings. Either all or none of these must be defined.
# For more details about setting up splunk with SSL, see
...
...
@@ -94,7 +94,7 @@ SPLUNK_SSL_ROOT_CA: !!null
splunk-server_role_name
:
splunk-server
splunk_user
:
"
splunk"
splunk_root
:
"
/vol/splunk
/storage
"
splunk_root
:
"
/vol/splunk"
splunk_home
:
"
/opt/splunk"
splunk_hot_dir
:
"
{{
splunk_root
}}/hot"
...
...
playbooks/roles/splunk-server/tasks/main.yml
View file @
e2980f1e
...
...
@@ -55,7 +55,7 @@
dest
:
"
{{
splunk_home
}}/etc/system/local/inputs.conf"
owner
:
splunk
group
:
splunk
mode
:
"
06
44
"
mode
:
"
06
00
"
-
name
:
Create bucket directories
file
:
...
...
@@ -90,7 +90,7 @@
dest
:
"
{{
splunk_home
}}/etc/apps/search/local/indexes.conf"
owner
:
"
{{
splunk_user
}}"
group
:
"
{{
splunk_user
}}"
mode
:
0
7
00
mode
:
0
6
00
tags
:
-
"
install"
-
"
install:configuration"
...
...
@@ -101,7 +101,7 @@
dest
:
"
{{
splunk_home
}}/etc/system/local/alert_actions.conf"
owner
:
"
{{
splunk_user
}}"
group
:
"
{{
splunk_user
}}"
mode
:
0
7
00
mode
:
0
6
00
tags
:
-
install
-
install:configuration
...
...
@@ -112,7 +112,7 @@
dest
:
"
{{
splunk_home
}}/etc/apps/search/local/savedsearches.conf"
owner
:
"
{{
splunk_user
}}"
group
:
"
{{
splunk_user
}}"
mode
:
0
7
00
mode
:
0
6
00
tags
:
-
"
install"
-
"
install:configuration"
...
...
playbooks/roles/splunk-server/templates/opt/splunk/etc/apps/search/local/indexes.conf.j2
View file @
e2980f1e
{% for name in SPLUNK_INDEXES %}
[{{ name }}]
coldPath = {{ splunk_cold_dir }}/{{ name }}/colddb
homePath = {{ splunk_hot_dir }}/{{ name }}/db
thawedPath = {{ splunk_thawed_dir }}/{{ name }}/thaweddb
coldToFrozenDir = {{ splunk_frozen_dir }}/{{ name }}/frozendb
{% for index in SPLUNK_INDEXES %}
[{{ index.name }}]
{% if index.coldPath is defined %}
coldPath = {{ index.coldPath }}
{% else %}
coldPath = {{ splunk_cold_dir }}/{{ index.name }}/colddb
{% endif %}
{% if index.homePath is defined %}
homePath = {{ index.homePath }}
{% else %}
homePath = {{ splunk_hot_dir }}/{{ index.name }}/db
{% endif %}
{% if index.thawedPath is defined %}
thawedPath = {{ index.thawedPath }}
{% else %}
thawedPath = {{ splunk_thawed_dir }}/{{ index.name }}/thaweddb
{% endif %}
{% if index.coldToFrozenDir is not defined %}
coldToFrozenDir = {{ splunk_frozen_dir }}/{{ index.name }}/frozendb
{% endif %}
{% if index.disabled is defined %}
disabled = {{ index.disabled }}
{% endif %}
{% if index.home is defined %}
home = {{ index.home }}
{% endif %}
{% if index.enableDataIntegrityControl is defined %}
enableDataIntegrityControl = {{ index.enableDataIntegrityControl }}
{% endif %}
{% if index.maxTotalDataSizeMB is defined %}
maxTotalDataSizeMB = {{ index.maxTotalDataSizeMB }}
{% endif %}
{% if index.enableTsidxReduction is defined %}
enableTsidxReduction = {{ index.enableTsidxReduction }}
{% endif %}
{% endfor %}
playbooks/roles/splunk-server/templates/opt/splunk/etc/apps/search/local/props.conf.j2
View file @
e2980f1e
...
...
@@ -4,6 +4,8 @@
{% elif 'sourcetype' in extraction %}
[{{ extraction.sourcetype }}]
{% endif %}
{% if extraction.name is defined %}
EXTRACT-{{ extraction.name }} = {{ extraction.regex }}
{% endif %}
{% endfor %}
playbooks/roles/splunk-server/templates/opt/splunk/etc/system/local/alert_actions.conf.j2
View file @
e2980f1e
[email]
mailserver = {{ SPLUNK_SMTP_SERVER }}
pdf.header_left = none
pdf.header_right = none
auth_password = {{ SPLUNK_SMTP_PASSWORD }}
auth_username = {{ SPLUNK_SMTP_USERNAME }}
footer.text = {{ SPLUNK_EMAIL_FOOTER }}
hostname = {{ SPLUNK_HOSTNAME }}
hostname = {{ SPLUNK_SSL_HOSTNAME }}
mailserver = {{ SPLUNK_SMTP_SERVER }}
reportServerURL =
use_tls = 1
pdf.header_left = none
pdf.header_right = none
use_ssl = 0
from = {{ SPLUNK_FROM_ADDRESS }}
pdf.footer_enabled = 0
pdf.header_enabled = 0
use_tls = 1
\ No newline at end of file
playbooks/roles/splunk-server/templates/opt/splunk/etc/system/local/inputs.conf.j2
View file @
e2980f1e
...
...
@@ -6,8 +6,8 @@ host = {{ SPLUNK_HOSTNAME }}
compressed = true
[SSL]
serverCert = $SPLUNK_HOME/{{ splunk_cert_path }}/forwarder.pem
password = {{ SPLUNK_SSL_PASSWORD }}
requireClientCert = false
rootCA = $SPLUNK_HOME/{{ splunk_cert_path }}/cacert.pem
{% endif %}
\ No newline at end of file
serverCert = $SPLUNK_HOME/{{ splunk_cert_path }}/forwarder.pem
{% 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