Merge pull request #688 from wazuh/684-log4j

Disable log4j
This commit is contained in:
Alberto Rodríguez 2021-12-15 15:53:12 +01:00 committed by GitHub
commit 2763bb8e0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 0 deletions

View File

@ -63,6 +63,17 @@
notify: restart elasticsearch
tags: configure
- name: Configure disabled log4j.
template:
src: "templates/disabledlog4j.options.j2"
dest: /etc/elasticsearch/jvm.options.d/disabledlog4j.options
owner: root
group: elasticsearch
mode: 2750
force: yes
notify: restart elasticsearch
tags: install
# fix in new PR (ignore_errors)
- import_tasks: "RMRedHat.yml"

View File

@ -0,0 +1,4 @@
## JVM configuration
## Disable log4j
-Dlog4j2.formatMsgNoLookups=true

View File

@ -55,6 +55,17 @@
notify: restart elasticsearch
tags: install
- name: Configure disabled log4j.
template:
src: "templates/disabledlog4j.options.j2"
dest: /etc/elasticsearch/jvm.options.d/disabledlog4j.options
owner: root
group: elasticsearch
mode: 2750
force: yes
notify: restart elasticsearch
tags: install
- name: Ensure extra time for Elasticsearch to start on reboots
lineinfile:
path: /usr/lib/systemd/system/elasticsearch.service

View File

@ -0,0 +1,4 @@
## JVM configuration
## Disable log4j
-Dlog4j2.formatMsgNoLookups=true