Log4j fix added
This commit is contained in:
parent
c6be0b2dcd
commit
9c5a4651bb
@ -63,6 +63,17 @@
|
|||||||
notify: restart elasticsearch
|
notify: restart elasticsearch
|
||||||
tags: configure
|
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: 0644
|
||||||
|
force: yes
|
||||||
|
notify: restart elasticsearch
|
||||||
|
tags: install
|
||||||
|
|
||||||
# fix in new PR (ignore_errors)
|
# fix in new PR (ignore_errors)
|
||||||
|
|
||||||
- import_tasks: "RMRedHat.yml"
|
- import_tasks: "RMRedHat.yml"
|
||||||
|
|||||||
@ -0,0 +1,4 @@
|
|||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
## Disable log4j
|
||||||
|
-Dlog4j2.formatMsgNoLookups=true
|
||||||
@ -55,6 +55,17 @@
|
|||||||
notify: restart elasticsearch
|
notify: restart elasticsearch
|
||||||
tags: install
|
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: 0644
|
||||||
|
force: yes
|
||||||
|
notify: restart elasticsearch
|
||||||
|
tags: install
|
||||||
|
|
||||||
- name: Ensure extra time for Elasticsearch to start on reboots
|
- name: Ensure extra time for Elasticsearch to start on reboots
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /usr/lib/systemd/system/elasticsearch.service
|
path: /usr/lib/systemd/system/elasticsearch.service
|
||||||
|
|||||||
@ -0,0 +1,4 @@
|
|||||||
|
## JVM configuration
|
||||||
|
|
||||||
|
## Disable log4j
|
||||||
|
-Dlog4j2.formatMsgNoLookups=true
|
||||||
Loading…
Reference in New Issue
Block a user