-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add few real-life configuration files to test config parsing (#804)
FYSA: @trzysiek
- Loading branch information
Showing
4 changed files
with
130 additions
and
1 deletion.
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
65 changes: 65 additions & 0 deletions
65
quesma/quesma/config/test_configs/quesma_adding_two_hydrolix_tables.yaml
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,65 @@ | ||
# Use case: | ||
# * user has some indices in Elasticsearch | ||
# * user has two tables in Hydrolix named `siem` and `logs` | ||
# | ||
# User wants to see those two Hydrolix tables as Elasticsearch indices in Kibana | ||
# User wants to see all their Elasticsearch indices in Kibana as they were before | ||
# | ||
# ( ingest is not the case here, but the config has to be present due to impl. constraints ) | ||
|
||
logging: | ||
level: info | ||
frontendConnectors: | ||
- name: elastic-ingest | ||
type: elasticsearch-fe-ingest | ||
config: | ||
listenPort: 8080 | ||
- name: elastic-query | ||
type: elasticsearch-fe-query | ||
config: | ||
listenPort: 8080 | ||
backendConnectors: | ||
- name: my-minimal-elasticsearch | ||
type: elasticsearch | ||
config: | ||
url: "http://elasticsearch:9200" | ||
user: elastic | ||
password: quesmaquesma | ||
- name: my-hydrolix-instance | ||
type: hydrolix | ||
config: | ||
url: "clickhouse://localhost:9000" | ||
user: "u" | ||
password: "p" | ||
database: "d" | ||
ingestStatistics: true | ||
processors: | ||
- name: my-query-processor | ||
type: quesma-v1-processor-query | ||
config: | ||
indexes: | ||
siem: | ||
target: [my-hydrolix-instance] | ||
logs: | ||
target: [my-hydrolix-instance] | ||
"*": | ||
target: [ my-minimal-elasticsearch ] | ||
- name: my-ingest-processor | ||
type: quesma-v1-processor-ingest | ||
config: | ||
indexes: # This is also virtual requirement, but it is what it is for now | ||
siem: | ||
target: [ my-minimal-elasticsearch ] | ||
logs: | ||
target: [ my-minimal-elasticsearch ] | ||
"*": | ||
target: [ my-minimal-elasticsearch ] | ||
pipelines: | ||
- name: my-elasticsearch-proxy-read | ||
frontendConnectors: [ elastic-query ] | ||
processors: [ my-query-processor ] | ||
backendConnectors: [ my-minimal-elasticsearch, my-hydrolix-instance ] | ||
- name: my-elasticsearch-proxy-write | ||
frontendConnectors: [ elastic-ingest ] | ||
processors: [ my-ingest-processor ] | ||
backendConnectors: [ my-minimal-elasticsearch, my-hydrolix-instance ] |
35 changes: 35 additions & 0 deletions
35
quesma/quesma/config/test_configs/quesma_as_transparent_proxy.yml
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,35 @@ | ||
frontendConnectors: | ||
- name: elastic-ingest | ||
type: elasticsearch-fe-ingest | ||
config: | ||
listenPort: 8080 | ||
- name: elastic-query | ||
type: elasticsearch-fe-query | ||
config: | ||
listenPort: 8080 | ||
backendConnectors: | ||
- name: my-minimal-elasticsearch | ||
type: elasticsearch | ||
config: | ||
url: "http://elasticsearch:9200" | ||
user: elastic | ||
password: quesmaquesma | ||
- name: my-hydrolix-instance # Okay maybe this is weird but we require this ATM | ||
type: hydrolix | ||
config: | ||
url: "clickhouse://localhost:9440" | ||
user: "u" | ||
password: "p" | ||
database: "d" | ||
processors: | ||
- name: noop-query-processor | ||
type: quesma-v1-processor-noop | ||
pipelines: | ||
- name: my-elasticsearch-proxy-read | ||
frontendConnectors: [ elastic-query ] | ||
processors: [ noop-query-processor ] | ||
backendConnectors: [ my-minimal-elasticsearch ] | ||
- name: my-elasticsearch-proxy-write | ||
frontendConnectors: [ elastic-ingest ] | ||
processors: [ noop-query-processor ] | ||
backendConnectors: [ my-minimal-elasticsearch ] |
File renamed without changes.