forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Obs][kbn-data-forge] Adding example config (elastic#176727)
## Summary This PR copies the example configurations from the High Cardinality Indexer project into `kbn-data-forge` Co-authored-by: Kibana Machine <[email protected]>
- Loading branch information
Showing
32 changed files
with
1,133 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
x-pack/packages/kbn-data-forge/example_config/anomalies_by_type/change_point_detection.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,26 @@ | ||
--- | ||
elasticsearch: | ||
installKibanaUser: false | ||
|
||
kibana: | ||
installAssets: false | ||
|
||
indexing: | ||
eventsPerCycle: 5000 | ||
dataset: "fake_logs" | ||
|
||
schedule: | ||
# Start with normal logs | ||
- template: "good" | ||
start: "now-45m" | ||
end: "now+1m" | ||
randomness: 0.1 | ||
eventsPerCycle: 5000 | ||
# Sudden change into new number of logs | ||
- template: "good" | ||
start: "now+1m" | ||
end: "now+10m" | ||
randomness: 0.1 | ||
eventsPerCycle: 1000 | ||
|
||
|
35 changes: 35 additions & 0 deletions
35
x-pack/packages/kbn-data-forge/example_config/anomalies_by_type/concept_drift.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,35 @@ | ||
--- | ||
elasticsearch: | ||
installKibanaUser: false | ||
|
||
kibana: | ||
installAssets: false | ||
|
||
indexing: | ||
eventsPerCycle: 1000 | ||
dataset: "fake_logs" | ||
|
||
schedule: | ||
# Start with normal logs | ||
- template: "good" | ||
start: "now-10m" | ||
end: "now+1m" | ||
randomness: 0.1 | ||
eventsPerCycle: 1000 | ||
# Progresively change into a new number of logs | ||
- template: "good" | ||
start: "now+1m" | ||
end: "now+5m" | ||
randomness: 0.1 | ||
eventsPerCycle: | ||
start: 1000 | ||
end: 5000 | ||
method: "linear" | ||
# Stay at the new number of logs | ||
- template: "good" | ||
start: "now+5m" | ||
end: "now+10m" | ||
randomness: 0.1 | ||
eventsPerCycle: 5000 | ||
|
||
|
38 changes: 38 additions & 0 deletions
38
x-pack/packages/kbn-data-forge/example_config/anomalies_by_type/contextual_anomaly.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,38 @@ | ||
--- | ||
# Define the connection to Elasticsearch | ||
elasticsearch: | ||
installKibanaUser: false | ||
|
||
# Define the connection to Kibana | ||
kibana: | ||
host: "http://localhost:5601" | ||
username: "elastic" | ||
password: "changeme" | ||
installAssets: false | ||
|
||
# Define the indexing options | ||
indexing: | ||
dataset: "fake_logs" | ||
eventsPerCycle: 2000 | ||
interval: 6000 | ||
|
||
# Define the schedule | ||
schedule: | ||
- template: "bad" | ||
start: "now-5m" | ||
end: "now+1m" | ||
eventsPerCycle: | ||
start: 5000 | ||
end: 3000 | ||
method: "sine" | ||
- template: "good" | ||
start: "now+1m" | ||
end: "now+2m" | ||
eventsPerCycle: 3000 | ||
- template: "bad" | ||
start: "now+2m" | ||
end: "now+10m" | ||
eventsPerCycle: | ||
start: 5000 | ||
end: 3000 | ||
method: "sine" |
40 changes: 40 additions & 0 deletions
40
x-pack/packages/kbn-data-forge/example_config/anomalies_by_type/point_anomaly.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,40 @@ | ||
--- | ||
# Define the connection to Elasticsearch | ||
elasticsearch: | ||
installKibanaUser: false | ||
|
||
# Define the connection to Kibana | ||
kibana: | ||
installAssets: false | ||
|
||
# Define the indexing options | ||
indexing: | ||
dataset: "fake_logs" | ||
eventsPerCycle: 5000 | ||
|
||
# Define the schedule | ||
schedule: | ||
# Normal logs | ||
- template: "good" | ||
eventsPerCycle: 5000 | ||
start: "now-5m" | ||
end: "now+5m" | ||
randomness: 0.1 | ||
# Spike in logs | ||
- template: "bad" | ||
eventsPerCycle: 10000 | ||
start: "now+1m" | ||
end: "now+2m" | ||
randomness: 0.1 | ||
# Drop in logs, stop normal logs and send few logs | ||
- template: "bad" | ||
eventsPerCycle: 500 | ||
start: "now+5m" | ||
end: "now+7m" | ||
randomness: 0.1 | ||
# Return to normal logs | ||
- template: "good" | ||
eventsPerCycle: 5000 | ||
start: "now+7m" | ||
end: "now+17m" | ||
randomness: 0.1 |
23 changes: 23 additions & 0 deletions
23
x-pack/packages/kbn-data-forge/example_config/changing_log_volume_example.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,23 @@ | ||
--- | ||
elasticsearch: | ||
installKibanaUser: false | ||
|
||
kibana: | ||
installAssets: true | ||
|
||
indexing: | ||
eventsPerCycle: 1000 | ||
dataset: "fake_logs" | ||
|
||
schedule: | ||
- template: "good" | ||
start: "now-2h" | ||
end: "now-1h" | ||
- template: "bad" | ||
start: "now-1h" | ||
end: "now-15m" | ||
eventsPerCycle: 5000 | ||
- template: "good" | ||
start: "now-15m" | ||
end: false | ||
|
31 changes: 31 additions & 0 deletions
31
x-pack/packages/kbn-data-forge/example_config/fake_logs_sine.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,31 @@ | ||
--- | ||
# Define the connection to Elasticsearch | ||
elasticsearch: | ||
installKibanaUser: false | ||
|
||
# Define the connection to Kibana | ||
kibana: | ||
host: "http://localhost:5601" | ||
username: "elastic" | ||
password: "changeme" | ||
installAssets: false | ||
|
||
# Define the indexing options | ||
indexing: | ||
dataset: "fake_logs" | ||
eventsPerCycle: 2000 | ||
interval: 6000 | ||
scenario: "sine_logs" | ||
|
||
# Define the schedule | ||
schedule: | ||
- template: "bad" | ||
start: "now-5m" | ||
end: "now+10m" | ||
eventsPerCycle: | ||
start: 2000 | ||
end: 3000 | ||
method: "sine" | ||
options: | ||
period: 60 | ||
randomness: 0.1 |
39 changes: 39 additions & 0 deletions
39
x-pack/packages/kbn-data-forge/example_config/fake_stack.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,39 @@ | ||
--- | ||
elasticsearch: | ||
installKibanaUser: false | ||
|
||
kibana: | ||
installAssets: true | ||
|
||
indexing: | ||
dataset: "fake_stack" | ||
eventsPerCycle: 200 | ||
reduceWeekendTrafficBy: 0.5 | ||
|
||
schedule: | ||
# Start with good events | ||
- template: "good" | ||
start: "now-14d" | ||
end: "now-6d-5h-3m" | ||
eventsPerCycle: 200 | ||
randomness: 0.2 | ||
- template: "connectionTimeout" | ||
start: "now-6d-5h-3m" | ||
end: "now-6d-4h-44m" | ||
eventsPerCycle: 200 | ||
randomness: 0.2 | ||
- template: "good" | ||
start: "now-6d-4h-44m" | ||
end: "now-1d" | ||
eventsPerCycle: 200 | ||
randomness: 0.2 | ||
- template: "bad" | ||
start: "now-1d" | ||
end: "now-1d+45m" | ||
eventsPerCycle: 200 | ||
randomness: 0.2 | ||
- template: "good" | ||
start: "now-1d+45m" | ||
end: false | ||
eventsPerCycle: 200 | ||
randomness: 0.2 |
41 changes: 41 additions & 0 deletions
41
x-pack/packages/kbn-data-forge/example_config/full_example.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,41 @@ | ||
--- | ||
# Define the connection to Elasticsearch | ||
elasticsearch: | ||
host: "http://localhost:9200" | ||
username: "elastic" | ||
password: "changeme" | ||
installKibanaUser: false | ||
|
||
# Define the connection to Kibana | ||
kibana: | ||
host: "http://localhost:5601" | ||
username: "elastic" | ||
password: "changeme" | ||
installAssets: true | ||
|
||
# Define the indexing options | ||
indexing: | ||
dataset: "fake_stack" | ||
interval: 6000 | ||
eventsPerCycle: 1 | ||
payloadSize: 10000 | ||
concurrency: 5 | ||
|
||
# Define the schedule | ||
schedule: | ||
- template: "good" | ||
start: "now-1h" | ||
end: "now-15m" | ||
- template: "bad" | ||
start: "now-15m" | ||
end: "now" | ||
# This schedule will run indefinitely | ||
- template: "good" | ||
start: "now" | ||
end: false | ||
# This will add a 2 minute delay to the indexing every 5 mintes. | ||
# Once the 2 minutes is up, the queue will back fill the events it collected | ||
# during the delay. This only makes sense if `end` is `false` | ||
delayInMinutes: 2 | ||
delayEveryMinutes: 5 | ||
|
20 changes: 20 additions & 0 deletions
20
x-pack/packages/kbn-data-forge/example_config/future_example.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,20 @@ | ||
--- | ||
elasticsearch: | ||
installKibanaUser: false | ||
|
||
kibana: | ||
installAssets: true | ||
|
||
indexing: | ||
dataset: "fake_stack" | ||
|
||
schedule: | ||
- template: "good" | ||
start: "now" | ||
end: "now+1h" | ||
- template: "bad" | ||
start: "now+1h" | ||
end: "now+90m" | ||
- template: "good" | ||
start: "now+90m" | ||
end: "now+2h" |
20 changes: 20 additions & 0 deletions
20
x-pack/packages/kbn-data-forge/example_config/good_to_bad_to_good.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,20 @@ | ||
--- | ||
elasticsearch: | ||
installKibanaUser: false | ||
|
||
kibana: | ||
installAssets: true | ||
|
||
indexing: | ||
dataset: "fake_stack" | ||
|
||
schedule: | ||
- template: "good" | ||
start: "now-2h" | ||
end: "now-1h" | ||
- template: "bad" | ||
start: "now-1h" | ||
end: "now-15m" | ||
- template: "good" | ||
start: "now-15m" | ||
end: false |
39 changes: 39 additions & 0 deletions
39
x-pack/packages/kbn-data-forge/example_config/log_drop.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,39 @@ | ||
--- | ||
# Define the connection to Elasticsearch | ||
elasticsearch: | ||
installKibanaUser: false | ||
|
||
# Define the connection to Kibana | ||
kibana: | ||
host: "http://localhost:5601" | ||
username: "elastic" | ||
password: "changeme" | ||
installAssets: false | ||
|
||
indexing: | ||
eventsPerCycle: 100 | ||
dataset: "fake_logs" | ||
scenario: "log_drop" | ||
|
||
schedule: | ||
# Start with good events at 100 rate | ||
- template: "good" | ||
start: "now-30m" | ||
end: "now-5m" | ||
eventsPerCycle: 50 | ||
randomness: 0.1 | ||
# Create a ramp-up of bad events | ||
- template: "good" | ||
start: "now-5m" | ||
end: "now+5m" | ||
eventsPerCycle: | ||
start: 50 | ||
end: 100 | ||
method: "linear" | ||
randomness: 0.1 | ||
# Drop to very little good events | ||
- template: "good" | ||
start: "now+5m" | ||
end: false | ||
eventsPerCycle: 10 | ||
randomness: 0.1 |
29 changes: 29 additions & 0 deletions
29
x-pack/packages/kbn-data-forge/example_config/log_spike_scenarios/scenario0_logs.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,29 @@ | ||
--- | ||
# Define the connection to Elasticsearch | ||
elasticsearch: | ||
host: "http://localhost:9200" | ||
username: "elastic" | ||
password: "changeme" | ||
installKibanaUser: false | ||
|
||
# Define the connection to Kibana | ||
kibana: | ||
host: "http://localhost:5601" | ||
username: "elastic" | ||
password: "changeme" | ||
installAssets: false | ||
|
||
# Define the indexing options | ||
indexing: | ||
dataset: "fake_logs" | ||
eventsPerCycle: 2000 | ||
interval: 6000 | ||
|
||
# Define the schedule | ||
schedule: | ||
# This step send 2000 logs every 30 seconds | ||
- template: "good" | ||
eventsPerCycle: 2000 | ||
start: "now-5m" | ||
end: "now+5m" | ||
|
Oops, something went wrong.