Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline dispatcher #5326

Open
sunng87 opened this issue Jan 9, 2025 · 2 comments
Open

Pipeline dispatcher #5326

sunng87 opened this issue Jan 9, 2025 · 2 comments
Assignees
Labels
C-feature Category Features

Comments

@sunng87
Copy link
Member

sunng87 commented Jan 9, 2025

What problem does the new feature solve?

Currently we can store all the logs/events from one API call to a single table. However, it's possible that several different types of logs share the same source.

What does the feature do?

So in our pipeline, we need a mechanism to dispatch data into different pipelines, and eventually different tables, based on certain fields like type, or any other data that user can extract from the pipeline.

processors:

dispatcher:
  field: type
  routes:
    - value: http
      pipeline: http_pipeline
      table_name: ${prefix}_http
    - value: database
      pipeline: database_pipeline
      table_name: ${prefix}_database
    - default: yes
      pipeline: default_pipeline
      table_name: ${prefix}_events
flowchart TD
    A[entry_pipeline] --> D(dispatcher)
    D --> |type=http| B[http_pipeline]
    D --> |type=database| C[database_pipeline]
    D --> |type=unknown| E[default_pipeline]
Loading

Implementation challenges

No response

@sunng87 sunng87 added the C-feature Category Features label Jan 9, 2025
@killme2008
Copy link
Contributor

Should we support regex matching for values? Users may not be able to specify all possible values and instead provide a regex expression.

@sunng87
Copy link
Member Author

sunng87 commented Jan 9, 2025

I think it's possible with processors. They can process all possible values and generate fixed type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category Features
Projects
None yet
Development

No branches or pull requests

3 participants