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

Add ClickHouse Plugin #122

Merged
merged 1 commit into from
Aug 28, 2021
Merged

Add ClickHouse Plugin #122

merged 1 commit into from
Aug 28, 2021

Conversation

ricoberger
Copy link
Member

This is the first version for the ClickHouse plugin, which can currently
only be used to query logs from a ClickHouse instance ingested via the
kobsio/fluent-bit-clickhouse Fluent Bit plugin. For the next version we
plan to also add support for raw sql queries.

When the plugin is run in the "logs" mode, which can be set via the
"type" option it can be used to get ingested logs from a ClickHouse
instance via our custom query language. The user just provides a query
and a time range and we parse the given query to have a valid where
statement for the sql query. Then we are returning the ingested logs as
json documents.

We also adjusted the core package to pass the additonal options for a
plugin to the plugin page. This was required, because we have to decide
which view a user should see for the specified "type" in the ClickHouse
plugin configuration.

This is the first version for the ClickHouse plugin, which can currently
only be used to query logs from a ClickHouse instance ingested via the
kobsio/fluent-bit-clickhouse Fluent Bit plugin. For the next version we
plan to also add support for raw sql queries.

When the plugin is run in the "logs" mode, which can be set via the
"type" option it can be used to get ingested logs from a ClickHouse
instance via our custom query language. The user just provides a query
and a time range and we parse the given query to have a valid where
statement for the sql query. Then we are returning the ingested logs as
json documents.

We also adjusted the core package to pass the additonal options for a
plugin to the plugin page. This was required, because we have to decide
which view a user should see for the specified "type" in the ClickHouse
plugin configuration.
@ricoberger ricoberger merged commit 9387d9a into main Aug 28, 2021
@ricoberger ricoberger deleted the add-clickhouse-plugin branch August 28, 2021 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant