Skip to content

[BUG] UTMStack MUTATE module duplicates input definition #205

@c3s4rfred

Description

@c3s4rfred

Describe the bug
When a new filter definition is added to a pipeline, the "mutate" module duplicates the HTTP input definition in the 000-input.conf file into the container

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Data Processing'
  2. Click on 'Sysolg'
  3. Add a new valid filter
  4. Connect to the instance via ssh
  5. Execute bash into the container -> docker exec -it container_id bash
  6. Type cd pipelines/syslog
  7. Type cat 000-input.conf
  8. Check the result

Expected behavior
When creating new filters, no new HTTP input must be generated. It is only one HTTP input definition by pipeline.

Screenshots
image

Environment

  • UTMStack QA

Possible solution
Check the SQL query you are using, maybe is returning one input definition by every filter. You should create one input definition by input in the DB associated with the pipeline itself, not with the filter.

Metadata

Metadata

Assignees

Labels

help-wantedExtra attention is needed

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions