Created
May 5, 2021 18:43
-
-
Save justinkambic/3f65fbd42c68dd5b9145ba1790fb6779 to your computer and use it in GitHub Desktop.
Fleet policy causing Agent to run multiple Heartbeat processes
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
id: 697aba10-ada2-11eb-acdf-2b0d5f78c911 | |
revision: 20 | |
outputs: | |
default: | |
type: elasticsearch | |
hosts: | |
- 'http://localhost:9200' | |
output_permissions: | |
default: | |
_fallback: | |
cluster: | |
- monitor | |
indices: | |
- names: | |
- logs-* | |
- metrics-* | |
- traces-* | |
- .logs-endpoint.diagnostic.collection-* | |
- synthetics-* | |
privileges: | |
- auto_configure | |
- create_doc | |
agent: | |
monitoring: | |
enabled: true | |
use_output: default | |
logs: true | |
metrics: true | |
inputs: | |
- id: 6c08416b-a024-426c-9e69-10ddcf94e471 | |
name: fleet_server-1 | |
revision: 1 | |
type: fleet-server | |
use_output: default | |
meta: | |
package: | |
name: fleet_server | |
version: 0.2.2 | |
data_stream: | |
namespace: default | |
server: | |
port: 8220 | |
host: 0.0.0.0 | |
- id: 04ea491d-9a99-426a-a542-2755a1b31791 | |
name: uptime-test-http | |
revision: 1 | |
type: synthetics/http | |
use_output: default | |
meta: | |
package: | |
name: synthetics | |
version: 0.0.4 | |
data_stream: | |
namespace: default | |
streams: | |
- id: synthetics/http-http-04ea491d-9a99-426a-a542-2755a1b31791 | |
name: uptime-test-http | |
type: http | |
data_stream: | |
dataset: http | |
type: synthetics | |
urls: 'https://www.google.com' | |
schedule: '@every 3m' | |
timeout: 16s | |
max_redirects: 0 | |
tags: | |
- test | |
response.include_headers: true | |
response.include_body: on_error | |
check.request.method: GET | |
processors: | |
- add_observer_metadata: | |
geo: | |
name: Fleet managed | |
- add_fields: | |
target: '' | |
fields: | |
monitor.fleet_managed: true | |
- id: 42069525-2296-4360-814d-ad834958723e | |
name: http-with-tls | |
revision: 1 | |
type: synthetics/http | |
use_output: default | |
meta: | |
package: | |
name: synthetics | |
version: 0.0.4 | |
data_stream: | |
namespace: default | |
streams: | |
- id: synthetics/http-http-42069525-2296-4360-814d-ad834958723e | |
name: http-with-tls | |
type: http | |
data_stream: | |
dataset: http | |
type: synthetics | |
urls: 'https://www.elastic.co' | |
service.name: elastic-website | |
schedule: '@every 3m' | |
timeout: 16s | |
max_redirects: 0 | |
tags: | |
- test | |
response.include_headers: true | |
response.include_body: on_error | |
check.request.method: GET | |
ssl.certificate: test-val-2 | |
ssl.certificate_authorities: test-val-1 | |
ssl.key: test-val-3 | |
ssl.key_passphrase: test-val-passphrase | |
ssl.verification_mode: full | |
ssl.supported_protocols: | |
- TLSv1.1 | |
- TLSv1.2 | |
- TLSv1.3 | |
processors: | |
- add_observer_metadata: | |
geo: | |
name: Fleet managed | |
- add_fields: | |
target: '' | |
fields: | |
monitor.fleet_managed: true | |
- id: 3aa1d461-33c4-41b5-822a-f042c26d0d3e | |
name: http-advanced-options | |
revision: 11 | |
type: synthetics/http | |
use_output: default | |
meta: | |
package: | |
name: synthetics | |
version: 0.0.4 | |
data_stream: | |
namespace: default | |
streams: | |
- id: synthetics/http-http-3aa1d461-33c4-41b5-822a-f042c26d0d3e | |
name: http-advanced-options | |
type: http | |
data_stream: | |
dataset: http | |
type: synthetics | |
response.include_body: always | |
check.request.body: |- | |
{ | |
"hash" : "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", | |
"bytes" : 0, | |
"content" : "", | |
"something-weird": false | |
} | |
service.name: test | |
check.response.headers: | |
test-header: success | |
processors: | |
- add_observer_metadata: | |
geo: | |
name: Fleet managed | |
- add_fields: | |
fields: | |
monitor.fleet_managed: true | |
target: '' | |
max_redirects: 0 | |
timeout: 3s | |
check.response.body.positive: | |
- foo | |
schedule: '@every 15s' | |
urls: 'http://localhost:12349/test-post' | |
check.request.headers: | |
kbn-xsrf: 'true' | |
Content-Type: application/json | |
check.response.status: | |
- '302' | |
- '200' | |
- '201' | |
response.include_headers: true | |
check.response.body.negative: | |
- somethingbad | |
check.request.method: POST | |
- id: b1105072-27f4-44a5-9b60-c4a8d8395b64 | |
name: test-post-2 | |
revision: 4 | |
type: synthetics/http | |
use_output: default | |
meta: | |
package: | |
name: synthetics | |
version: 0.0.4 | |
data_stream: | |
namespace: default | |
streams: | |
- id: synthetics/http-http-b1105072-27f4-44a5-9b60-c4a8d8395b64 | |
name: test-post-2 | |
type: http | |
data_stream: | |
dataset: http | |
type: synthetics | |
schedule: '@every 3s' | |
response.include_body: on_error | |
urls: 'http://localhost:12349/test-post' | |
response.include_headers: true | |
processors: | |
- add_observer_metadata: | |
geo: | |
name: Fleet managed | |
- add_fields: | |
fields: | |
monitor.fleet_managed: true | |
target: '' | |
max_redirects: 0 | |
check.request.method: POST | |
timeout: 1s | |
- id: b6ba9a51-e332-4865-bdd0-ad81f0e478ae | |
name: test-simple | |
revision: 1 | |
type: synthetics/http | |
use_output: default | |
meta: | |
package: | |
name: synthetics | |
version: 0.0.4 | |
data_stream: | |
namespace: default | |
streams: | |
- id: synthetics/http-http-b6ba9a51-e332-4865-bdd0-ad81f0e478ae | |
name: test-simple | |
type: http | |
data_stream: | |
dataset: http | |
type: synthetics | |
urls: 'http://www.amazon.com' | |
schedule: '@every 3m' | |
timeout: 16s | |
max_redirects: 0 | |
response.include_headers: true | |
response.include_body: on_error | |
check.request.method: GET | |
processors: | |
- add_observer_metadata: | |
geo: | |
name: Fleet managed | |
- add_fields: | |
target: '' | |
fields: | |
monitor.fleet_managed: true | |
fleet: | |
hosts: | |
- 'http://localhost:8220' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment