-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: log drains rules, extends rules implementation (#2059)
* feat: log drains rules extending initial implementation * feat: add/remove rules * feat: edit backend * chore: remove dbg * chore: add tsting for delete backend with rules * feat: remove the Remove backend button * feat: more styling * feat: edit form enhancements * feat: dynamically start/stop drains * fix: multiple rules for same source and same backend * chore: fix failing test, add backend type * docs: drain rules, postgres, webhook * chore: fix failing test * chore: formatting * docs: fix bad linking * chore: version bump to v1.7.0 * docs: @doc and @SPEC tags * docs: add more specs and docs * docs: more and more docs! * chore: fix typespecs * chore: PR review refactoring * chore: PR review, remove apply
- Loading branch information
Showing
31 changed files
with
1,345 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.6.6 | ||
1.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
"collapsed": false, | ||
"position": 5, | ||
"link": { | ||
"type": "generated-index" | ||
"type": "doc", | ||
"id": "backends/index" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Backends | ||
|
||
By default, the Logflare service offers managed BigQuery as a backend automatically. | ||
|
||
If your plan is BYOB, your provided BigQuery configurations will disable ingestion into Logflare's managed BigQuery. | ||
|
||
Logflare's mutli-backend capabilities allows 3rd party services and other data storage engines to be used together for purposes such as data redundancy, integrations and more. | ||
|
||
:::info | ||
Multi-backend support is a private alpha feature. Contact us if you wish to preview these features. | ||
::: | ||
|
||
When there are multiple attached backends, the Logflare service will always insert into the managed BigQuery (or a configured BYOB), as well as any other attached backends to that source. | ||
|
||
As such, a backend can be attched to multiple sources, and the underlying data storage mechanisms will be automatically managed by Logflare. Details for each are further explained in the documentation for each backend. | ||
|
||
A backend can be any one of the following types: | ||
|
||
- **Ingest-only**: The backend only ingests data, and cannot be queried through any supported query languages. | ||
- **Query-only**: The backend can only be queried. Data storage is handled externally, outside of Logflare. | ||
- **Fully-featured**: The backend can ingest data, and can be queried by supported query languages. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Webhook | ||
|
||
The Webhook backend will send batched events to a desired HTTP(S) destination. | ||
|
||
## Behaviour and configurations | ||
### Configuration | ||
|
||
The following values are required when creating a webhook backend: | ||
|
||
- `url`: (`string`, required) a valid HTTP(S) endpoint. | ||
|
||
### Request | ||
The request made will be a `POST`. | ||
|
||
### Batching | ||
|
||
Events will be sent in batches of up to 250, with intervals of up to 1 second. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Rules | ||
|
||
Rules are logical rulesets that direct ingestion data to one or more sources or [backends](../backends). This allows us to copy subsets of ingested data to multiple sources, or to forward data to external backends. | ||
|
||
Filtering syntax used is the [Logflare Query Language](../concepts/lql). | ||
|
||
## Source Rules | ||
|
||
Source rules allow for source-to-source filtering, where a source will send data to a given destination source. | ||
|
||
## Drain Rules | ||
|
||
Drain rules allow for source-to-backend filtering, where a source will send data to a given destination [backend](../backends). The backend could be ingest-only, such as 3rd party services. | ||
|
||
:::info Private Alpha Only | ||
Drain rules and multi-backends are a private alpha only feature for the Logflare service. Please contact us if this interests you. | ||
::: | ||
|
||
On drain creation, data ingested into the source will automatically be routed to the selected backend. | ||
|
||
If the backend is a supported fully-featured managed backend (such as BigQuery or Postgres), tables will automatically be created and managed as if the source had been attached to the backend. If an associated source table already exists, it would insert into the existing table. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.