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
3193d477
Commit
3193d477
authored
Oct 01, 2013
by
Feanil Patel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare template files for splunk.
parent
ec76d8a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
3 deletions
+32
-3
playbooks/roles/splunk/defaults/main.yml
+11
-3
playbooks/roles/splunk/templates/splunk.inputs.conf.j2
+13
-0
playbooks/roles/splunk/templates/splunk.outputs.conf.j2
+8
-0
No files found.
playbooks/roles/splunk/defaults/main.yml
View file @
3193d477
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
#
#
# vars are namespace with the module name.
# vars are namespace with the module name.
#
#
splunk_role_name
:
splunk
splunk_role_name
:
'
splunk'
#
#
# OS packages
# OS packages
...
@@ -22,4 +22,13 @@ splunk_role_name: splunk
...
@@ -22,4 +22,13 @@ splunk_role_name: splunk
splunk_debian_pkgs
:
[]
splunk_debian_pkgs
:
[]
splunk_redhat_pkgs
:
[]
splunk_redhat_pkgs
:
[]
\ No newline at end of file
LOG_ITEMS
:
-
directory
:
'
/var/log'
recursive
:
true
SPLUNK_SERVER
:
'
localhost:9997'
log_items
:
$LOG_ITEMS
splunk_server
:
$SPLUNK_SERVER
playbooks/roles/splunk/templates/splunk.inputs.conf.j2
0 → 100644
View file @
3193d477
[default]
host = {{ansible_hostname}}
{% for loggable in log_items%}
[monitor://{{loggable.directory}}]
recursive = {{loggable.recursive|default(false)}}
{% if loggable.sourcetype is defined %}
sourcetype = loggable.sourcetype
{% endif %}
{% if loggable.index is defined %}
index = loggable.index
{% endif %}
{% endfor %}
playbooks/roles/splunk/templates/splunk.outputs.conf.j2
0 → 100644
View file @
3193d477
[tcpout]
defaultGroup = default_output_server
[tcpout:default_output_server]
server = {{splunk_server}}
[tcpout-server://{{splunk_server}}]
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