Skip to content

Commit

Permalink
Add logstash_plugin example for lower heap size
Browse files Browse the repository at this point in the history
In a scenario where you've set your logstash heap size high, you may need to set your heap lower in order to execute logstash-plugin while logstash is still running.

Here's an example of someone running into insufficient memory while executing logstash-plugin: https://discuss.elastic.co/t/logstash-plugin-and-jvm-options/99646

This scenario is probably fairly common, so it may be worth documenting as an example.

+label: docsite_pr
  • Loading branch information
cscheib authored and bcoca committed Oct 1, 2018
1 parent a9b7356 commit 6b00d4d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/ansible/modules/monitoring/logstash_plugin.py
Expand Up @@ -62,6 +62,13 @@
logstash_plugin:
state: absent
name: logstash-filter-multiline
- name: install Logstash plugin with alternate heap size
logstash_plugin:
state: present
name: logstash-input-beats
environment:
LS_JAVA_OPTS: "-Xms256m -Xmx256m"
'''

from ansible.module_utils.basic import AnsibleModule
Expand Down

0 comments on commit 6b00d4d

Please sign in to comment.