-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
206 additions
and
5 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
examples/gitpod-synthetic-load-generator/demo/demo-data-prepper.crt
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 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIICqjCCAZICCQDBYJxuuzsbczANBgkqhkiG9w0BAQsFADAXMRUwEwYDVQQDDAxk | ||
YXRhLXByZXBwZXIwHhcNMjAxMTMwMTc0NDM4WhcNMzAxMTI4MTc0NDM4WjAXMRUw | ||
EwYDVQQDDAxkYXRhLXByZXBwZXIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK | ||
AoIBAQDBuSTI3oz9ZJRiVQCdTfbQlG9TWCXwuIjjJcVwvgVjhIuj5VLEOWUpC8nr | ||
be4/3ttGLuqOBViLlw2aelN7ZANgFy33ONF7kDh4xFMp4rZdFKxCOsmUpbSD7hRf | ||
8mVRFv30bx9//bVjLP8qi2QKuHc8WOevMsdNENFI6BgiI52EoVPyYJIIMaE2ripG | ||
qkQVn04Tk+rWz3zQ+NyOcExow98+pxMIjAanMUELTpMjQCWq2HtV2nnqcfqqNCae | ||
ig7NSDRvQtPL84Fjy7y4B1pS558hBmfOyZcGHo/gxLxQmvb1UKy4bcL7Kd8H3aNr | ||
LZ8zsr+he3cM9a7SZbiilALdcv0NAgMBAAEwDQYJKoZIhvcNAQELBQADggEBAKvw | ||
fLiflX0Wd54ExsQvLvwZbrVU0z110h2N+E7SXt9K4NhHsANsX2mWxbqU/0YMYQpo | ||
fPO0XJSqmo28YD/eyKEazJg7tFISEqQ5gfWZM8BkfHcjbHMixtRDm6SpNzfeQT97 | ||
C0zZo5kAD4d0Y3FwVjQ5FkvlmM6rCaJ0NyvZBUJseCsWpZsV2vF0QbMQcQ0lxjqY | ||
Vxs8Cnwp9bfF7ZP3i5KD5JxtVm80g6MIQdoYDQqtMjhZ8rCg5e1S6DbPnLRlmXkz | ||
4cFfD4V/7+ldSpEt38QBtCFWalfem+4dtbEX8FoTciNZfCkeUotpO2jPS1IzzghA | ||
yy6bLJd2MHl8AnGRdQg= | ||
-----END CERTIFICATE----- |
28 changes: 28 additions & 0 deletions
28
examples/gitpod-synthetic-load-generator/demo/demo-data-prepper.key
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,28 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDBuSTI3oz9ZJRi | ||
VQCdTfbQlG9TWCXwuIjjJcVwvgVjhIuj5VLEOWUpC8nrbe4/3ttGLuqOBViLlw2a | ||
elN7ZANgFy33ONF7kDh4xFMp4rZdFKxCOsmUpbSD7hRf8mVRFv30bx9//bVjLP8q | ||
i2QKuHc8WOevMsdNENFI6BgiI52EoVPyYJIIMaE2ripGqkQVn04Tk+rWz3zQ+NyO | ||
cExow98+pxMIjAanMUELTpMjQCWq2HtV2nnqcfqqNCaeig7NSDRvQtPL84Fjy7y4 | ||
B1pS558hBmfOyZcGHo/gxLxQmvb1UKy4bcL7Kd8H3aNrLZ8zsr+he3cM9a7SZbii | ||
lALdcv0NAgMBAAECggEAd0rwmPVa8usN6OOZRkTtWRIe377nVi38tYvb4opRPTAw | ||
4VNlPUpuvfDxfZWrYg91Den0LFKkbQkuqlLrt48l+PUtLBEEBsgPzmZvI9rlG7qQ | ||
PRSAb5X+7EMertrQgzfaWLxZNHLiUNkzpFpD18oyOqowuZVWX2Gczv2FZvhxlmrB | ||
fCajh2k4kYfFfedA8xpmUr1ZX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dvFvNby4HJxkXSM= | ||
-----END PRIVATE KEY----- |
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,24 @@ | ||
-----BEGIN CERTIFICATE----- | ||
MIID/jCCAuagAwIBAgIBATANBgkqhkiG9w0BAQsFADCBjzETMBEGCgmSJomT8ixk | ||
ARkWA2NvbTEXMBUGCgmSJomT8ixkARkWB2V4YW1wbGUxGTAXBgNVBAoMEEV4YW1w | ||
bGUgQ29tIEluYy4xITAfBgNVBAsMGEV4YW1wbGUgQ29tIEluYy4gUm9vdCBDQTEh | ||
MB8GA1UEAwwYRXhhbXBsZSBDb20gSW5jLiBSb290IENBMB4XDTE4MDQyMjAzNDM0 | ||
NloXDTI4MDQxOTAzNDM0NlowgY8xEzARBgoJkiaJk/IsZAEZFgNjb20xFzAVBgoJ | ||
kiaJk/IsZAEZFgdleGFtcGxlMRkwFwYDVQQKDBBFeGFtcGxlIENvbSBJbmMuMSEw | ||
HwYDVQQLDBhFeGFtcGxlIENvbSBJbmMuIFJvb3QgQ0ExITAfBgNVBAMMGEV4YW1w | ||
bGUgQ29tIEluYy4gUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC | ||
ggEBAK/u+GARP5innhpXK0c0q7s1Su1VTEaIgmZr8VWI6S8amf5cU3ktV7WT9SuV | ||
TsAm2i2A5P+Ctw7iZkfnHWlsC3HhPUcd6mvzGZ4moxnamM7r+a9otRp3owYoGStX | ||
ylVTQusAjbq9do8CMV4hcBTepCd+0w0v4h6UlXU8xjhj1xeUIz4DKbRgf36q0rv4 | ||
VIX46X72rMJSETKOSxuwLkov1ZOVbfSlPaygXIxqsHVlj1iMkYRbQmaTib6XWHKf | ||
MibDaqDejOhukkCjzpptGZOPFQ8002UtTTNv1TiaKxkjMQJNwz6jfZ53ws3fh1I0 | ||
RWT6WfM4oeFRFnyFRmc4uYTUgAkCAwEAAaNjMGEwDwYDVR0TAQH/BAUwAwEB/zAf | ||
BgNVHSMEGDAWgBSSNQzgDx4rRfZNOfN7X6LmEpdAczAdBgNVHQ4EFgQUkjUM4A8e | ||
K0X2TTnze1+i5hKXQHMwDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBCwUAA4IB | ||
AQBoQHvwsR34hGO2m8qVR9nQ5Klo5HYPyd6ySKNcT36OZ4AQfaCGsk+SecTi35QF | ||
RHL3g2qffED4tKR0RBNGQSgiLavmHGCh3YpDupKq2xhhEeS9oBmQzxanFwWFod4T | ||
nnsG2cCejyR9WXoRzHisw0KJWeuNlwjUdJY0xnn16srm1zL/M/f0PvCyh9HU1mF1 | ||
ivnOSqbDD2Z7JSGyckgKad1Omsg/rr5XYtCeyJeXUPcmpeX6erWJJNTUh6yWC/hY | ||
G/dFC4xrJhfXwz6Z0ytUygJO32bJG4Np2iGAwvvgI9EfxzEv/KP+FGrJOvQJAq4/ | ||
BU36ZAa80W/8TBnqZTkNnqZV | ||
-----END CERTIFICATE----- |
Binary file not shown.
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
1 change: 1 addition & 0 deletions
1
examples/gitpod-synthetic-load-generator/resources/data-prepper-config.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 @@ | ||
ssl: false |
8 changes: 8 additions & 0 deletions
8
examples/gitpod-synthetic-load-generator/resources/data-prepper-wait-for-os-and-start.sh
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,8 @@ | ||
#!/bin/bash | ||
|
||
until [[ $(curl --write-out %{http_code} --output /dev/null --silent --head --fail https://node-0.example.com:9200 -u admin:admin --insecure) == 200 ]]; do | ||
echo "Waiting for OpenSearch to be ready" | ||
sleep 1 | ||
done | ||
|
||
java -Dlog4j.configurationFile=log4j.properties -Xms128m -Xmx128m -jar data-prepper.jar pipelines.yaml data-prepper-config.yaml |
39 changes: 39 additions & 0 deletions
39
examples/gitpod-synthetic-load-generator/resources/pipelines.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 @@ | ||
entry-pipeline: | ||
delay: "100" | ||
source: | ||
otel_trace_source: | ||
ssl: true | ||
sslKeyFile: /usr/share/data-prepper/demo-data-prepper.key | ||
sslKeyCertChainFile: /usr/share/data-prepper/demo-data-prepper.crt | ||
sink: | ||
- pipeline: | ||
name: "raw-pipeline" | ||
- pipeline: | ||
name: "service-map-pipeline" | ||
raw-pipeline: | ||
source: | ||
pipeline: | ||
name: "entry-pipeline" | ||
prepper: | ||
- otel_trace_raw_prepper: | ||
sink: | ||
- opensearch: | ||
hosts: [ "https://node-0.example.com:9200" ] | ||
cert: "/usr/share/data-prepper/root-ca.pem" | ||
username: "admin" | ||
password: "admin" | ||
trace_analytics_raw: true | ||
service-map-pipeline: | ||
delay: "100" | ||
source: | ||
pipeline: | ||
name: "entry-pipeline" | ||
prepper: | ||
- service_map_stateful: | ||
sink: | ||
- opensearch: | ||
hosts: ["https://node-0.example.com:9200"] | ||
cert: "/usr/share/data-prepper/root-ca.pem" | ||
username: "admin" | ||
password: "admin" | ||
trace_analytics_service_map: true |
36 changes: 36 additions & 0 deletions
36
examples/gitpod-synthetic-load-generator/shared-config/log4j2.properties
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,36 @@ | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
# The OpenSearch Contributors require contributions made to | ||
# this file be licensed under the Apache-2.0 license or a | ||
# compatible open source license. | ||
# | ||
# Modifications Copyright OpenSearch Contributors. See | ||
# GitHub history for details. | ||
# | ||
|
||
status = error | ||
dest = err | ||
name = PropertiesConfig | ||
|
||
property.filename = log/data-prepper/data-prepper.log | ||
|
||
appender.console.type = Console | ||
appender.console.name = STDOUT | ||
appender.console.layout.type = PatternLayout | ||
appender.console.layout.pattern = %d{ISO8601} [%t] %-5p %40C - %m%n | ||
|
||
rootLogger.level = warn | ||
rootLogger.appenderRef.stdout.ref = STDOUT | ||
|
||
logger.core.name = com.amazon.dataprepper | ||
logger.core.level = info | ||
|
||
logger.pipeline.name = com.amazon.dataprepper.pipeline | ||
logger.pipeline.level = info | ||
|
||
logger.parser.name = com.amazon.dataprepper.parser | ||
logger.parser.level = info | ||
|
||
logger.plugins.name = com.amazon.dataprepper.plugins | ||
logger.plugins.level = info |