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
44e000fb
Commit
44e000fb
authored
Jul 10, 2018
by
nadeemshahzad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add props and transforms configuration to anonymize ansible output splunk
parent
cf215cbd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
77 additions
and
0 deletions
+77
-0
playbooks/roles/splunk-server/tasks/main.yml
+22
-0
playbooks/roles/splunk-server/templates/opt/splunk/etc/system/local/props.conf.j2
+49
-0
playbooks/roles/splunk-server/templates/opt/splunk/etc/system/local/transforms.conf.j2
+6
-0
No files found.
playbooks/roles/splunk-server/tasks/main.yml
View file @
44e000fb
...
...
@@ -57,6 +57,28 @@
group
:
splunk
mode
:
"
0600"
-
name
:
Create props configuation
template
:
src
:
opt/splunk/etc/system/local/props.conf.j2
dest
:
"
{{
splunk_home
}}/etc/system/local/props.conf"
owner
:
splunk
group
:
splunk
mode
:
"
0600"
tags
:
-
"
install"
-
"
install:configuration"
-
name
:
Create transforms configuation
template
:
src
:
opt/splunk/etc/system/local/transforms.conf.j2
dest
:
"
{{
splunk_home
}}/etc/system/local/transforms.conf"
owner
:
splunk
group
:
splunk
mode
:
"
0600"
tags
:
-
"
install"
-
"
install:configuration"
-
name
:
Create bucket directories
file
:
path
:
"
{{
item
}}"
...
...
playbooks/roles/splunk-server/templates/opt/splunk/etc/system/local/props.conf.j2
0 → 100644
View file @
44e000fb
# Version 6.2.1
# DO NOT EDIT THIS FILE!
# Changes to default files will be lost on update and are difficult to
# manage and support.
#
# Please make any changes to system defaults by overriding them in
# apps or $SPLUNK_HOME/etc/system/local
# (See "Configuration file precedence" in the web documentation).
#
# To override a specific setting, copy the name of the stanza and
# setting to the file where you wish to override it.
#
# This file contains possible attribute/value pairs for configuring
# Splunk's processing properties.
#
[junit]
KV_MODE = xml
TRUNCATE = 100000
BREAK_ONLY_BEFORE = <\?xml version=
MAX_EVENTS = 10000
SHOULD_LINEMERGE = False
LINE_BREAKER = (?s)(\s+)<case>.+?[^<][^\/][^c][^a][^s][^e][^>]
[build_result]
KV_MODE = xml
BREAK_ONLY_BEFORE = <\?xml version=
SHOULD_LINEMERGE = True
MAX_EVENTS = 10000
[sitespeed_result]
SHOULD_LINEMERGE = true
INDEXED_EXTRACTIONS = json
NO_BINARY_CHECK = true
KV_MODE = none
TRUNCATE = 0
[jenkins_build]
BREAK_ONLY_BEFORE =
DATETIME_CONFIG =
NO_BINARY_CHECK = true
category = Application
description = Jenkins build logs
disabled = false
maxDist = 75
pulldown_type = 1
[syslog]
TRANSFORMS-anonymize = ansible-output
playbooks/roles/splunk-server/templates/opt/splunk/etc/system/local/transforms.conf.j2
0 → 100644
View file @
44e000fb
[ansible-output]
REGEX = ansible-(.*)
# We want to anonymize Ansible command output in log events as it is
# logging passwords in Splunk index (See https://openedx.atlassian.net/browse/OPS-3241).
FORMAT = ansible-output: Anonymized for security.#########################
DEST_KEY = _raw
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