Skip to content

Test capture url at startup and print error message if not valid #11

@robfromboulder

Description

@robfromboulder

For testing and general use, it would be super helpful if the logger validated the capture url by sending a ping to the remote service.

The logger fails if the capture url is not set at all, but there's no warning today if the capture url doesn't resolve on the network. This could be caused by a DNS issue from the target host, or human error (like copying the capture url from the documentation without replacing the example host name), or just a typo.

It would save time and reduce documentation if the capture url were actively validated at startup. In the case where API calls are not being logged, we currently describe this as either a problem with the eBPF probes or a networking problem (and that the networking config should be double-checked manually). By actively pinging the capture url, we could simplify troubleshooting and eliminate the manual check.

We will have to decide what we want the ping request to look like, so that this returns an expected value to the logger, without actually writing the ping request/response to the database.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions