Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
float
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ai3
float
Commits
075c2488
Unverified
Commit
075c2488
authored
4 years ago
by
micah
Browse files
Options
Downloads
Patches
Plain Diff
disable auditd when loki is enabled, its structured logs are not so easily
parsed by loki
parent
dd7b60fb
No related branches found
No related tags found
1 merge request
!110
Draft: Enable Loki as a replacement for Elasticsearch when `enable_loki` is set.
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/base/tasks/harden.yml
+6
-0
6 additions, 0 deletions
roles/base/tasks/harden.yml
with
6 additions
and
0 deletions
roles/base/tasks/harden.yml
+
6
−
0
View file @
075c2488
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
packages
:
packages
:
-
auditd
-
auditd
-
audisp-json
-
audisp-json
when
:
not enable_loki
-
name
:
Auditd default config removed
-
name
:
Auditd default config removed
file
:
file
:
...
@@ -63,6 +64,7 @@
...
@@ -63,6 +64,7 @@
-
"
templates/audit/rules.d/*.j2"
-
"
templates/audit/rules.d/*.j2"
notify
:
notify
:
-
restart auditd
-
restart auditd
when
:
not enable_loki
-
name
:
Auditd configured
-
name
:
Auditd configured
template
:
template
:
...
@@ -70,6 +72,7 @@
...
@@ -70,6 +72,7 @@
dest
:
/etc/audit/auditd.conf
dest
:
/etc/audit/auditd.conf
notify
:
notify
:
-
restart auditd
-
restart auditd
when
:
not enable_loki
-
name
:
Audispd plugins configured
-
name
:
Audispd plugins configured
copy
:
copy
:
...
@@ -80,11 +83,13 @@
...
@@ -80,11 +83,13 @@
-
json.conf
-
json.conf
notify
:
notify
:
-
restart auditd
-
restart auditd
when
:
not enable_loki
-
name
:
Enable auditd service
-
name
:
Enable auditd service
systemd
:
systemd
:
name
:
auditd.service
name
:
auditd.service
enabled
:
yes
enabled
:
yes
when
:
not enable_loki
-
name
:
Disable journald-auditd link
-
name
:
Disable journald-auditd link
systemd
:
systemd
:
...
@@ -92,3 +97,4 @@
...
@@ -92,3 +97,4 @@
state
:
stopped
state
:
stopped
enabled
:
no
enabled
:
no
masked
:
yes
masked
:
yes
when
:
not enable_loki
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment