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
2db3e43d
Commit
2db3e43d
authored
Oct 10, 2017
by
Jesse Zoldak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable configuration of splunk host value
parent
e19ac342
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
playbooks/roles/splunkforwarder/defaults/main.yml
+2
-0
playbooks/roles/splunkforwarder/templates/opt/splunkforwarder/etc/system/local/inputs.conf.j2
+4
-0
No files found.
playbooks/roles/splunkforwarder/defaults/main.yml
View file @
2db3e43d
...
@@ -47,6 +47,8 @@ SPLUNKFORWARDER_SERVERS:
...
@@ -47,6 +47,8 @@ SPLUNKFORWARDER_SERVERS:
# entire fleet. #
# entire fleet. #
###############################################################################
###############################################################################
SPLUNKFORWARDER_HOST_VALUE
:
!!null
SPLUNKFORWARDER_LOG_ITEMS
:
SPLUNKFORWARDER_LOG_ITEMS
:
-
source
:
'
{{
COMMON_LOG_DIR
}}/lms'
-
source
:
'
{{
COMMON_LOG_DIR
}}/lms'
recursive
:
true
recursive
:
true
...
...
playbooks/roles/splunkforwarder/templates/opt/splunkforwarder/etc/system/local/inputs.conf.j2
View file @
2db3e43d
# {{ ansible_managed }}
# {{ ansible_managed }}
{% if SPLUNKFORWARDER_HOST_VALUE is defined %}
[default]
host = {{ SPLUNKFORWARDER_HOST_VALUE }}
{% endif %}
{% for loggable in SPLUNKFORWARDER_LOG_ITEMS%}
{% for loggable in SPLUNKFORWARDER_LOG_ITEMS%}
[monitor://{{ loggable.source }}]
[monitor://{{ loggable.source }}]
...
...
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