mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
change 9805 pipeline to send to self. fix extra_hosts for logstash
This commit is contained in:
@@ -33,7 +33,12 @@ so-logstash:
|
|||||||
- sobridge:
|
- sobridge:
|
||||||
- ipv4_address: {{ DOCKER.containers['so-logstash'].ip }}
|
- ipv4_address: {{ DOCKER.containers['so-logstash'].ip }}
|
||||||
- user: logstash
|
- user: logstash
|
||||||
- extra_hosts: {{ REDIS_NODES }}
|
- extra_hosts:
|
||||||
|
{% for node in REDIS_NODES %}
|
||||||
|
{% for hostname, ip in node.items() %}
|
||||||
|
- {{hostname}}:{{ip}}
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
{% if DOCKER.containers['so-logstash'].extra_hosts %}
|
{% if DOCKER.containers['so-logstash'].extra_hosts %}
|
||||||
{% for XTRAHOST in DOCKER.containers['so-logstash'].extra_hosts %}
|
{% for XTRAHOST in DOCKER.containers['so-logstash'].extra_hosts %}
|
||||||
- {{ XTRAHOST }}
|
- {{ XTRAHOST }}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ output {
|
|||||||
if [metadata][pipeline] {
|
if [metadata][pipeline] {
|
||||||
if [metadata][_id] {
|
if [metadata][_id] {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
hosts => "{{ GLOBALS.manager }}"
|
hosts => "{{ GLOBALS.hostname }}"
|
||||||
ecs_compatibility => v8
|
ecs_compatibility => v8
|
||||||
data_stream => true
|
data_stream => true
|
||||||
user => "{{ ES_USER }}"
|
user => "{{ ES_USER }}"
|
||||||
@@ -17,7 +17,7 @@ output {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
hosts => "{{ GLOBALS.manager }}"
|
hosts => "{{ GLOBALS.hostname }}"
|
||||||
ecs_compatibility => v8
|
ecs_compatibility => v8
|
||||||
data_stream => true
|
data_stream => true
|
||||||
user => "{{ ES_USER }}"
|
user => "{{ ES_USER }}"
|
||||||
@@ -30,7 +30,7 @@ output {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
elasticsearch {
|
elasticsearch {
|
||||||
hosts => "{{ GLOBALS.manager }}"
|
hosts => "{{ GLOBALS.hostname }}"
|
||||||
ecs_compatibility => v8
|
ecs_compatibility => v8
|
||||||
data_stream => true
|
data_stream => true
|
||||||
user => "{{ ES_USER }}"
|
user => "{{ ES_USER }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user