mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
Custom pipeline configuration in UI
This commit is contained in:
@@ -63,6 +63,20 @@ lspipelinedir:
|
|||||||
- user: 931
|
- user: 931
|
||||||
- group: 939
|
- group: 939
|
||||||
|
|
||||||
|
# Auto-generate Logstash pipeline config
|
||||||
|
{% for pipeline, config in LOGSTASH_MERGED.pipeline_config.items() %}
|
||||||
|
{% for assigned_pipeline in ASSIGNED_PIPELINES %}
|
||||||
|
{% set custom_pipeline = 'custom/' + pipeline + '.conf' %}
|
||||||
|
{% if custom_pipeline in LOGSTASH_MERGED.defined_pipelines[assigned_pipeline] %}
|
||||||
|
ls_custom_pipeline_conf_{{assigned_pipeline}}_{{pipeline}}:
|
||||||
|
file.managed:
|
||||||
|
- name: /opt/so/conf/logstash/pipelines/{{assigned_pipeline}}/{{ pipeline }}.conf
|
||||||
|
- contents: LOGSTASH_MERGED.pipeline_config.{{pipeline}}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
|
||||||
{% for assigned_pipeline in ASSIGNED_PIPELINES %}
|
{% for assigned_pipeline in ASSIGNED_PIPELINES %}
|
||||||
{% for CONFIGFILE in LOGSTASH_MERGED.defined_pipelines[assigned_pipeline] %}
|
{% for CONFIGFILE in LOGSTASH_MERGED.defined_pipelines[assigned_pipeline] %}
|
||||||
ls_pipeline_{{assigned_pipeline}}_{{CONFIGFILE.split('.')[0] | replace("/","_") }}:
|
ls_pipeline_{{assigned_pipeline}}_{{CONFIGFILE.split('.')[0] | replace("/","_") }}:
|
||||||
|
|||||||
Reference in New Issue
Block a user