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
5c9917f3
Commit
5c9917f3
authored
Oct 26, 2017
by
syed-awais-ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
templates for indexes, props and savedsearches
parent
321470ea
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
7 deletions
+43
-7
playbooks/roles/splunk-server/templates/opt/splunk/etc/apps/search/local/indexes.conf.j2
+3
-3
playbooks/roles/splunk-server/templates/opt/splunk/etc/apps/search/local/props.conf.j2
+35
-0
playbooks/roles/splunk-server/templates/opt/splunk/etc/apps/search/local/savedsearches.conf.j2
+5
-4
No files found.
playbooks/roles/splunk-server/templates/opt/splunk/etc/apps/search/local/indexes.conf.j2
View file @
5c9917f3
...
@@ -10,6 +10,9 @@ homePath = {{ index.homePath }}
...
@@ -10,6 +10,9 @@ homePath = {{ index.homePath }}
{% else %}
{% else %}
homePath = {{ splunk_hot_dir }}/{{ index.name }}/db
homePath = {{ splunk_hot_dir }}/{{ index.name }}/db
{% endif %}
{% endif %}
{% if index.maxTotalDataSizeMB is defined %}
maxTotalDataSizeMB = {{ index.maxTotalDataSizeMB }}
{% endif %}
{% if index.thawedPath is defined %}
{% if index.thawedPath is defined %}
thawedPath = {{ index.thawedPath }}
thawedPath = {{ index.thawedPath }}
{% else %}
{% else %}
...
@@ -27,9 +30,6 @@ home = {{ index.home }}
...
@@ -27,9 +30,6 @@ home = {{ index.home }}
{% if index.enableDataIntegrityControl is defined %}
{% if index.enableDataIntegrityControl is defined %}
enableDataIntegrityControl = {{ index.enableDataIntegrityControl }}
enableDataIntegrityControl = {{ index.enableDataIntegrityControl }}
{% endif %}
{% endif %}
{% if index.maxTotalDataSizeMB is defined %}
maxTotalDataSizeMB = {{ index.maxTotalDataSizeMB }}
{% endif %}
{% if index.enableTsidxReduction is defined %}
{% if index.enableTsidxReduction is defined %}
enableTsidxReduction = {{ index.enableTsidxReduction }}
enableTsidxReduction = {{ index.enableTsidxReduction }}
{% endif %}
{% endif %}
...
...
playbooks/roles/splunk-server/templates/opt/splunk/etc/apps/search/local/props.conf.j2
View file @
5c9917f3
...
@@ -4,8 +4,43 @@
...
@@ -4,8 +4,43 @@
{% elif 'sourcetype' in extraction %}
{% elif 'sourcetype' in extraction %}
[{{ extraction.sourcetype }}]
[{{ extraction.sourcetype }}]
{% endif %}
{% endif %}
{% if extraction.break_before is defined%}
BREAK_ONLY_BEFORE = {{ extraction.break_before }}
{% endif %}
{% if extraction.max_events is defined%}
MAX_EVENTS = {{ extraction.max_events }}
{% endif %}
{% if extraction.datetime_config is defined %}
DATETIME_CONFIG = {{ extraction.datetime_config }}
{% endif %}
{% if extraction.indexed_extractions is defined %}
INDEXED_EXTRACTIONS = {{ extraction.indexed_extractions }}
{% endif %}
{% if extraction.no_binary_check is defined %}
NO_BINARY_CHECK = {{ extraction.no_binary_check }}
{% endif %}
{% if extraction.timestamp_fields is defined %}
TIMESTAMP_FIELDS = {{ extraction.timestamp_fields }}
{% endif %}
{% if extraction.category is defined %}
category = {{ extraction.category }}
{% endif %}
{% if extraction.description is defined %}
description = {{ extraction.description }}
{% endif %}
{% if extraction.disabled is defined %}
disabled = {{ extraction.disabled }}
{% endif %}
{% if extraction.pulldown_type is defined %}
pulldown_type = {{ extraction.pulldown_type }}
{% endif %}
{% if extraction.name is defined %}
{% if extraction.name is defined %}
EXTRACT-{{ extraction.name }} = {{ extraction.regex }}
EXTRACT-{{ extraction.name }} = {{ extraction.regex }}
{% endif %}
{% endif %}
{% if 'sourcetype' in extraction and extraction.sourcetype == "build_log" %}
EXTRACT-run-results = Setting status of .* and message: 'Build finished. (?P<num_run>\d+) tests run, (?P<num_skipped>\d+) skipped, (?P<num_failed>\d+) failed.
EXTRACT-error_msg = \n?ERROR: (?P<error_msg>[^\n]*)
EXTRACT-buildResult = Finished: (?P<buildResult>[A-Z]+)$
{% endif %}
{% endfor %}
{% endfor %}
playbooks/roles/splunk-server/templates/opt/splunk/etc/apps/search/local/savedsearches.conf.j2
View file @
5c9917f3
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
{% for search in SPLUNK_ALERTS %}
{% for search in SPLUNK_ALERTS %}
[{{ search.name }}]
[{{ search.name }}]
{% if search.email is defined %}
{% if search.email is defined %}
action.email =
1
action.email =
{{ search.email }}
{% endif %}
{% endif %}
{% if search.email_format is defined %}
{% if search.email_format is defined %}
action.email.format = {{ search.email_format }}
action.email.format = {{ search.email_format }}
...
@@ -173,7 +173,7 @@ display.page.search.mode = {{ search.search_mode }}
...
@@ -173,7 +173,7 @@ display.page.search.mode = {{ search.search_mode }}
{% if search.auto_summarize is defined %}
{% if search.auto_summarize is defined %}
auto_summarize = {{ search.auto_summarize }}
auto_summarize = {{ search.auto_summarize }}
{% endif %}
{% endif %}
{% if search.suppress is defined
and not search.suppress
%}
{% if search.suppress is defined %}
alert.suppress = {{ search.suppress }}
alert.suppress = {{ search.suppress }}
{% endif %}
{% endif %}
{% if search.description is defined %}
{% if search.description is defined %}
...
@@ -211,7 +211,7 @@ displayview = {{ search.displayview }}
...
@@ -211,7 +211,7 @@ displayview = {{ search.displayview }}
request.ui_dispatch_view = {{ search.dispatchview }}
request.ui_dispatch_view = {{ search.dispatchview }}
{% endif %}
{% endif %}
{% if search.schedule is defined %}
{% if search.schedule is defined %}
schedule = {{ search.schedule }}
cron_
schedule = {{ search.schedule }}
{% endif %}
{% endif %}
{% if search.enableSched is defined %}
{% if search.enableSched is defined %}
enableSched = {{ search.enableSched }}
enableSched = {{ search.enableSched }}
...
@@ -222,7 +222,7 @@ quantity = {{ search.quantity }}
...
@@ -222,7 +222,7 @@ quantity = {{ search.quantity }}
{% if search.time is defined %}
{% if search.time is defined %}
dispatch.earliest_time = {{ search.time }}
dispatch.earliest_time = {{ search.time }}
{% endif %}
{% endif %}
{% if search.re
a
lation is defined %}
{% if search.relation is defined %}
relation = {{ search.relation }}
relation = {{ search.relation }}
{% endif %}
{% endif %}
{% if search.dispatch_earliest_time is defined %}
{% if search.dispatch_earliest_time is defined %}
...
@@ -237,4 +237,5 @@ search = {{ search.search }}
...
@@ -237,4 +237,5 @@ search = {{ search.search }}
{% if search.vsid is defined %}
{% if search.vsid is defined %}
vsid = {{ search.vsid }}
vsid = {{ search.vsid }}
{% endif %}
{% endif %}
{% endfor %}
{% endfor %}
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