-
Notifications
You must be signed in to change notification settings - Fork 608
[Azure frontdoor] Add Health Probe dataset #20016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
herrBez
wants to merge
12
commits into
elastic:main
Choose a base branch
from
herrBez:azure-frontdoor-healthprobes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
160ba03
Bump the version
herrBez 43c1e78
Add health probe dataset
herrBez 8d58b09
Make sure to deal with lowercase n/a
herrBez b8898a1
Update PR number
herrBez ca61077
Replace latinism with plain english
herrBez 9669a03
Apply suggestions from code review
herrBez 3147929
Remove event.ingested from test-common-config.yml
herrBez 1fd94fc
Add if condition to geoip processors as per review
herrBez c0439c5
Update README
herrBez fdcc472
Update README.md
herrBez a15ee51
Add support for IP:PORT format in originIP. Add test-case
herrBez 409da34
Fix automatic check complaints
herrBez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
4 changes: 4 additions & 0 deletions
4
packages/azure_frontdoor/data_stream/health_probe/_dev/test/pipeline/test-common-config.yml
This file contains hidden or 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,4 @@ | ||
| fields: | ||
| tags: | ||
| - preserve_original_event | ||
| - azure-frontdoor-health-probe |
3 changes: 3 additions & 0 deletions
3
packages/azure_frontdoor/data_stream/health_probe/_dev/test/pipeline/test-health-probe.log
This file contains hidden or 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,3 @@ | ||
| {"time":"2026-07-07T09:31:41Z","resourceId":"/SUBSCRIPTIONS/49D1B571-1CBE-402D-B523-AFEE3C19B64E/RESOURCEGROUPS/WAF-RG/PROVIDERS/MICROSOFT.CDN/PROFILES/TESTCLOUD","category":"FrontDoorHealthProbeLog","operationName":"Microsoft.Cdn/Profiles/FrontDoorHealthProbeLog/Write","properties":{"healthProbeId":"259ffc3865154b8d8ca2c82692b60cf1","pop":"BL","httpVerb":"HEAD","result":"OriginError","httpStatusCode":"404","probeUrl":"http://test.internal.orangemushroom-b8de5ef7.westus2.azurecontainerapps.io:80/","originName":"test.internal.orangemushroom-b8de5ef7.westus2.azurecontainerapps.io","originIP":"216.160.83.56","totalLatencyMilliseconds":"142","connectionLatencyMilliseconds":"71","DNSLatencyMicroseconds":"2000"}} | ||
| {"time":"2026-07-07T10:00:00Z","resourceId":"/SUBSCRIPTIONS/49D1B571-1CBE-402D-B523-AFEE3C19B64E/RESOURCEGROUPS/WAF-RG/PROVIDERS/MICROSOFT.CDN/PROFILES/TESTCLOUD","category":"FrontDoorHealthProbeLog","operationName":"Microsoft.Cdn/Profiles/FrontDoorHealthProbeLog/Write","properties":{"healthProbeId":"abc123def456","pop":"AMS","httpVerb":"GET","result":"Success","httpStatusCode":"200","probeUrl":"https://backend.example.com/health","originName":"backend.example.com","originIP":"216.160.83.56:443","totalLatencyMilliseconds":"25","connectionLatencyMilliseconds":"10","DNSLatencyMicroseconds":"n/a"}} | ||
| {"time":"2026-07-07T10:00:00Z","resourceId":"/SUBSCRIPTIONS/49D1B571-1CBE-402D-B523-AFEE3C19B64E/RESOURCEGROUPS/WAF-RG/PROVIDERS/MICROSOFT.CDN/PROFILES/TESTCLOUD","category":"FrontDoorHealthProbeLog","operationName":"Microsoft.Cdn/Profiles/FrontDoorHealthProbeLog/Write","properties":{"healthProbeId":"abc123def456","pop":"AMS","httpVerb":"GET","result":"Success","httpStatusCode":"200","probeUrl":"https://backend.example.com/health","originName":"backend.example.com","originIP":"[2001:db8::1]:8080","totalLatencyMilliseconds":"25","connectionLatencyMilliseconds":"10","DNSLatencyMicroseconds":"n/a"}} |
239 changes: 239 additions & 0 deletions
239
...frontdoor/data_stream/health_probe/_dev/test/pipeline/test-health-probe.log-expected.json
This file contains hidden or 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,239 @@ | ||
| { | ||
| "expected": [ | ||
| { | ||
| "@timestamp": "2026-07-07T09:31:41.000Z", | ||
| "azure": { | ||
| "frontdoor": { | ||
| "category": "FrontDoorHealthProbeLog", | ||
| "health_probe": { | ||
| "connection_latency_milliseconds": 71, | ||
| "dns_latency_microseconds": 2000, | ||
| "health_probe_id": "259ffc3865154b8d8ca2c82692b60cf1", | ||
| "origin_name": "test.internal.orangemushroom-b8de5ef7.westus2.azurecontainerapps.io", | ||
| "pop": "BL", | ||
| "result": "OriginError", | ||
| "total_latency_milliseconds": 142 | ||
| }, | ||
| "operation_name": "Microsoft.Cdn/Profiles/FrontDoorHealthProbeLog/Write", | ||
| "resource_id": "/SUBSCRIPTIONS/49D1B571-1CBE-402D-B523-AFEE3C19B64E/RESOURCEGROUPS/WAF-RG/PROVIDERS/MICROSOFT.CDN/PROFILES/TESTCLOUD" | ||
| } | ||
| }, | ||
| "cloud": { | ||
| "provider": "azure" | ||
| }, | ||
| "destination": { | ||
| "address": "216.160.83.56", | ||
| "as": { | ||
| "number": 209 | ||
| }, | ||
| "geo": { | ||
| "city_name": "Milton", | ||
| "continent_name": "North America", | ||
| "country_iso_code": "US", | ||
| "country_name": "United States", | ||
| "location": { | ||
| "lat": 47.2513, | ||
| "lon": -122.3149 | ||
| }, | ||
| "region_iso_code": "US-WA", | ||
| "region_name": "Washington" | ||
| }, | ||
| "ip": "216.160.83.56" | ||
| }, | ||
| "ecs": { | ||
| "version": "8.11.0" | ||
| }, | ||
| "event": { | ||
| "category": [ | ||
| "network" | ||
| ], | ||
| "original": "{\"time\":\"2026-07-07T09:31:41Z\",\"resourceId\":\"/SUBSCRIPTIONS/49D1B571-1CBE-402D-B523-AFEE3C19B64E/RESOURCEGROUPS/WAF-RG/PROVIDERS/MICROSOFT.CDN/PROFILES/TESTCLOUD\",\"category\":\"FrontDoorHealthProbeLog\",\"operationName\":\"Microsoft.Cdn/Profiles/FrontDoorHealthProbeLog/Write\",\"properties\":{\"healthProbeId\":\"259ffc3865154b8d8ca2c82692b60cf1\",\"pop\":\"BL\",\"httpVerb\":\"HEAD\",\"result\":\"OriginError\",\"httpStatusCode\":\"404\",\"probeUrl\":\"http://test.internal.orangemushroom-b8de5ef7.westus2.azurecontainerapps.io:80/\",\"originName\":\"test.internal.orangemushroom-b8de5ef7.westus2.azurecontainerapps.io\",\"originIP\":\"216.160.83.56\",\"totalLatencyMilliseconds\":\"142\",\"connectionLatencyMilliseconds\":\"71\",\"DNSLatencyMicroseconds\":\"2000\"}}", | ||
| "type": [ | ||
| "connection" | ||
| ] | ||
| }, | ||
| "http": { | ||
| "request": { | ||
| "method": "HEAD" | ||
| }, | ||
| "response": { | ||
| "status_code": 404 | ||
| } | ||
| }, | ||
| "related": { | ||
| "ip": [ | ||
| "216.160.83.56" | ||
| ] | ||
| }, | ||
| "tags": [ | ||
| "preserve_original_event", | ||
| "azure-frontdoor-health-probe" | ||
| ], | ||
| "url": { | ||
| "domain": "test.internal.orangemushroom-b8de5ef7.westus2.azurecontainerapps.io", | ||
| "full": "http://test.internal.orangemushroom-b8de5ef7.westus2.azurecontainerapps.io:80/", | ||
| "original": "http://test.internal.orangemushroom-b8de5ef7.westus2.azurecontainerapps.io:80/", | ||
| "path": "/", | ||
| "port": 80, | ||
| "scheme": "http" | ||
| } | ||
| }, | ||
| { | ||
| "@timestamp": "2026-07-07T10:00:00.000Z", | ||
| "azure": { | ||
| "frontdoor": { | ||
| "category": "FrontDoorHealthProbeLog", | ||
| "health_probe": { | ||
| "connection_latency_milliseconds": 10, | ||
| "health_probe_id": "abc123def456", | ||
| "origin_name": "backend.example.com", | ||
| "pop": "AMS", | ||
| "result": "Success", | ||
| "total_latency_milliseconds": 25 | ||
| }, | ||
| "operation_name": "Microsoft.Cdn/Profiles/FrontDoorHealthProbeLog/Write", | ||
| "resource_id": "/SUBSCRIPTIONS/49D1B571-1CBE-402D-B523-AFEE3C19B64E/RESOURCEGROUPS/WAF-RG/PROVIDERS/MICROSOFT.CDN/PROFILES/TESTCLOUD" | ||
| } | ||
| }, | ||
| "cloud": { | ||
| "provider": "azure" | ||
| }, | ||
| "destination": { | ||
| "address": "216.160.83.56:443", | ||
| "as": { | ||
| "number": 209 | ||
| }, | ||
| "geo": { | ||
| "city_name": "Milton", | ||
| "continent_name": "North America", | ||
| "country_iso_code": "US", | ||
| "country_name": "United States", | ||
| "location": { | ||
| "lat": 47.2513, | ||
| "lon": -122.3149 | ||
| }, | ||
| "region_iso_code": "US-WA", | ||
| "region_name": "Washington" | ||
| }, | ||
| "ip": "216.160.83.56", | ||
| "port": 443 | ||
| }, | ||
| "ecs": { | ||
| "version": "8.11.0" | ||
| }, | ||
| "event": { | ||
| "category": [ | ||
| "network" | ||
| ], | ||
| "original": "{\"time\":\"2026-07-07T10:00:00Z\",\"resourceId\":\"/SUBSCRIPTIONS/49D1B571-1CBE-402D-B523-AFEE3C19B64E/RESOURCEGROUPS/WAF-RG/PROVIDERS/MICROSOFT.CDN/PROFILES/TESTCLOUD\",\"category\":\"FrontDoorHealthProbeLog\",\"operationName\":\"Microsoft.Cdn/Profiles/FrontDoorHealthProbeLog/Write\",\"properties\":{\"healthProbeId\":\"abc123def456\",\"pop\":\"AMS\",\"httpVerb\":\"GET\",\"result\":\"Success\",\"httpStatusCode\":\"200\",\"probeUrl\":\"https://backend.example.com/health\",\"originName\":\"backend.example.com\",\"originIP\":\"216.160.83.56:443\",\"totalLatencyMilliseconds\":\"25\",\"connectionLatencyMilliseconds\":\"10\",\"DNSLatencyMicroseconds\":\"n/a\"}}", | ||
| "type": [ | ||
| "connection" | ||
| ] | ||
| }, | ||
| "http": { | ||
| "request": { | ||
| "method": "GET" | ||
| }, | ||
| "response": { | ||
| "status_code": 200 | ||
| } | ||
| }, | ||
| "related": { | ||
| "ip": [ | ||
| "216.160.83.56" | ||
| ] | ||
| }, | ||
| "tags": [ | ||
| "preserve_original_event", | ||
| "azure-frontdoor-health-probe" | ||
| ], | ||
| "url": { | ||
| "domain": "backend.example.com", | ||
| "full": "https://backend.example.com/health", | ||
| "original": "https://backend.example.com/health", | ||
| "path": "/health", | ||
| "scheme": "https" | ||
| } | ||
| }, | ||
| { | ||
| "@timestamp": "2026-07-07T10:00:00.000Z", | ||
| "azure": { | ||
| "frontdoor": { | ||
| "category": "FrontDoorHealthProbeLog", | ||
| "health_probe": { | ||
| "connection_latency_milliseconds": 10, | ||
| "health_probe_id": "abc123def456", | ||
| "origin_name": "backend.example.com", | ||
| "pop": "AMS", | ||
| "result": "Success", | ||
| "total_latency_milliseconds": 25 | ||
| }, | ||
| "operation_name": "Microsoft.Cdn/Profiles/FrontDoorHealthProbeLog/Write", | ||
| "resource_id": "/SUBSCRIPTIONS/49D1B571-1CBE-402D-B523-AFEE3C19B64E/RESOURCEGROUPS/WAF-RG/PROVIDERS/MICROSOFT.CDN/PROFILES/TESTCLOUD" | ||
| } | ||
| }, | ||
| "cloud": { | ||
| "provider": "azure" | ||
| }, | ||
| "destination": { | ||
| "address": "[2001:db8::1]:8080", | ||
| "as": { | ||
| "number": 65551, | ||
| "organization": { | ||
| "name": "Documentation ASN" | ||
| } | ||
| }, | ||
| "geo": { | ||
| "city_name": "Greenwich", | ||
| "continent_name": "Europe", | ||
| "country_iso_code": "GB", | ||
| "country_name": "United Kingdom", | ||
| "location": { | ||
| "lat": 51.47687, | ||
| "lon": -4.1E-4 | ||
| }, | ||
| "region_iso_code": "GB-ENG", | ||
| "region_name": "England" | ||
| }, | ||
| "ip": "2001:db8::1", | ||
| "port": 8080 | ||
| }, | ||
| "ecs": { | ||
| "version": "8.11.0" | ||
| }, | ||
| "event": { | ||
| "category": [ | ||
| "network" | ||
| ], | ||
| "original": "{\"time\":\"2026-07-07T10:00:00Z\",\"resourceId\":\"/SUBSCRIPTIONS/49D1B571-1CBE-402D-B523-AFEE3C19B64E/RESOURCEGROUPS/WAF-RG/PROVIDERS/MICROSOFT.CDN/PROFILES/TESTCLOUD\",\"category\":\"FrontDoorHealthProbeLog\",\"operationName\":\"Microsoft.Cdn/Profiles/FrontDoorHealthProbeLog/Write\",\"properties\":{\"healthProbeId\":\"abc123def456\",\"pop\":\"AMS\",\"httpVerb\":\"GET\",\"result\":\"Success\",\"httpStatusCode\":\"200\",\"probeUrl\":\"https://backend.example.com/health\",\"originName\":\"backend.example.com\",\"originIP\":\"[2001:db8::1]:8080\",\"totalLatencyMilliseconds\":\"25\",\"connectionLatencyMilliseconds\":\"10\",\"DNSLatencyMicroseconds\":\"n/a\"}}", | ||
| "type": [ | ||
| "connection" | ||
| ] | ||
| }, | ||
| "http": { | ||
| "request": { | ||
| "method": "GET" | ||
| }, | ||
| "response": { | ||
| "status_code": 200 | ||
| } | ||
| }, | ||
| "related": { | ||
| "ip": [ | ||
| "2001:db8::1" | ||
| ] | ||
| }, | ||
| "tags": [ | ||
| "preserve_original_event", | ||
| "azure-frontdoor-health-probe" | ||
| ], | ||
| "url": { | ||
| "domain": "backend.example.com", | ||
| "full": "https://backend.example.com/health", | ||
| "original": "https://backend.example.com/health", | ||
| "path": "/health", | ||
| "scheme": "https" | ||
| } | ||
| } | ||
| ] | ||
| } |
59 changes: 59 additions & 0 deletions
59
packages/azure_frontdoor/data_stream/health_probe/agent/stream/azure-eventhub.yml.hbs
This file contains hidden or 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,59 @@ | ||
| {{#if auth_type}} | ||
| auth_type: {{auth_type}} | ||
| {{/if}} | ||
| {{#if connection_string}} | ||
| connection_string: {{connection_string}} | ||
| {{/if}} | ||
| {{#if eventhub_namespace}} | ||
| eventhub_namespace: {{eventhub_namespace}} | ||
| {{/if}} | ||
| {{#if tenant_id}} | ||
| tenant_id: {{tenant_id}} | ||
| {{/if}} | ||
| {{#if client_id}} | ||
| client_id: {{client_id}} | ||
| {{/if}} | ||
| {{#if client_secret}} | ||
| client_secret: {{client_secret}} | ||
| {{/if}} | ||
| {{#contains "client_secret" auth_type}} | ||
| {{#if authority_host}} | ||
| authority_host: {{authority_host}} | ||
| {{/if}} | ||
| {{/contains}} | ||
| {{#if storage_account_container }} | ||
| storage_account_container: {{storage_account_container}} | ||
| {{else}} | ||
| {{#if eventhub}} | ||
| storage_account_container: frontdoor-health-probe-{{eventhub}} | ||
| {{/if}} | ||
| {{/if}} | ||
| {{#if eventhub}} | ||
| eventhub: {{eventhub}} | ||
| {{/if}} | ||
| {{#if consumer_group}} | ||
| consumer_group: {{consumer_group}} | ||
| {{/if}} | ||
| {{#if storage_account}} | ||
| storage_account: {{storage_account}} | ||
| {{/if}} | ||
| {{#if storage_account_key}} | ||
| storage_account_key: {{storage_account_key}} | ||
| {{/if}} | ||
| {{#if resource_manager_endpoint}} | ||
| resource_manager_endpoint: {{resource_manager_endpoint}} | ||
| {{/if}} | ||
| tags: | ||
| {{#if preserve_original_event}} | ||
| - preserve_original_event | ||
| {{/if}} | ||
| {{#each tags as |tag|}} | ||
| - {{tag}} | ||
| {{/each}} | ||
| {{#contains "forwarded" tags}} | ||
| publisher_pipeline.disable_host: true | ||
| {{/contains}} | ||
| {{#if processors}} | ||
| processors: | ||
| {{processors}} | ||
| {{/if}} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Severity: 🔵 Low
confidence: highpath: packages/azure_frontdoor/_dev/build/docs/README.md:24The README now lists three data streams but the sentence above still says the integration collects "two types". Update the count to "three".
Details
This PR adds 'health probe logs' to the data streams list under the '## Data streams' section, so the list now contains three entries (access, waf, health probe). The introductory sentence immediately above the list still reads 'This integration collects two types of data streams:', which is now factually incorrect. Because the built docs/README.md is generated from this template, the same stale wording ships in the rendered README.
Recommendation:
Update the count word in the '## Data streams' section:
🤖 AI-Generated Review | Vera Review Bot | 📚 Knowledge base: integration-skills