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
6b704b90
Commit
6b704b90
authored
Jun 17, 2014
by
John Jarvis
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #633 from IONISx/splunk-improvements
Splunk improvements
parents
384251af
a9692b0b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
playbooks/roles/splunkforwarder/defaults/main.yml
+6
-6
playbooks/roles/splunkforwarder/handlers/main.yml
+0
-0
playbooks/roles/splunkforwarder/tasks/main.yml
+1
-1
playbooks/roles/splunkforwarder/templates/opt/splunkforwarder/etc/system/local/inputs.conf.j2
+1
-1
No files found.
playbooks/roles/splunkforwarder/defaults/main.yml
View file @
6b704b90
...
...
@@ -18,28 +18,28 @@ splunk_role_name: 'splunk'
SPLUNKFORWARDER_SERVER
:
'
localhost:9997'
SPLUNKFORWARDER_PACKAGE_
LOCATION
:
!!null
SPLUNKFORWARDER_PACKAGE_
URL
:
!!null
SPLUNKFORWARDER_DEB
:
!!null
SPLUNKFORWARDER_PASSWORD
:
!!null
SPLUNKFORWARDER_LOG_ITEMS
:
-
directory
:
'
{{
COMMON_LOG_DIR
}}/lms'
-
source
:
'
{{
COMMON_LOG_DIR
}}/lms'
recursive
:
true
index
:
'
{{COMMON_ENVIRONMENT}}-{{COMMON_DEPLOYMENT}}'
sourcetype
:
'
edx'
-
directory
:
'
{{
COMMON_LOG_DIR
}}/cms'
-
source
:
'
{{
COMMON_LOG_DIR
}}/cms'
recursive
:
true
index
:
'
{{COMMON_ENVIRONMENT}}-{{COMMON_DEPLOYMENT}}'
sourcetype
:
'
edx'
-
directory
:
'
{{
COMMON_LOG_DIR
}}'
-
source
:
'
{{
COMMON_LOG_DIR
}}'
recursive
:
true
index
:
'
{{COMMON_ENVIRONMENT}}-{{COMMON_DEPLOYMENT}}'
sourcetype
:
'
syslog'
-
directory
:
'
/var/log'
-
source
:
'
/var/log'
recursive
:
true
index
:
'
{{COMMON_ENVIRONMENT}}-{{COMMON_DEPLOYMENT}}'
sourcetype
:
'
syslog'
-
directory
:
'
{{
COMMON_LOG_DIR
}}/nginx'
-
source
:
'
{{
COMMON_LOG_DIR
}}/nginx'
recursive
:
true
index
:
'
{{COMMON_ENVIRONMENT}}-{{COMMON_DEPLOYMENT}}'
sourcetype
:
'
nginx'
...
...
playbooks/roles/splunkforwarder/handlers/main.yml
View file @
6b704b90
playbooks/roles/splunkforwarder/tasks/main.yml
View file @
6b704b90
...
...
@@ -32,7 +32,7 @@
-
name
:
download the splunk deb
get_url
:
>
dest="/tmp/{{SPLUNKFORWARDER_DEB}}"
url="{{SPLUNKFORWARDER_PACKAGE_
LOCATION}}{{SPLUNKFORWARDER_DEB
}}"
url="{{SPLUNKFORWARDER_PACKAGE_
URL
}}"
register
:
download_deb
-
name
:
install splunk forwarder
...
...
playbooks/roles/splunkforwarder/templates/opt/splunkforwarder/etc/system/local/inputs.conf.j2
View file @
6b704b90
...
...
@@ -2,7 +2,7 @@
host = {{ansible_hostname}}
{% for loggable in SPLUNKFORWARDER_LOG_ITEMS%}
[monitor://{{loggable.
directory
}}]
[monitor://{{loggable.
source
}}]
recursive = {{loggable.recursive|default(false)}}
{% if loggable.sourcetype is defined %}
sourcetype = {{loggable.sourcetype}}
...
...
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