Support option for ignoring paths
See original GitHub issueOur hapi servers export a /healthz
it would be nice if we could omit those requests from the logs.
Would you be open to a PR for this functionality?
I know another option would be to pipe to a filter but I wanted to see the appetite for this built in.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Ignoring Paths - Codecov
You can use the top-level ignore: key to tell Codecov to ignore certain paths. Add a list of paths (folders or file names)...
Read more >Ignores - Mutagen
This isn't always desirable, so Mutagen supports ignoring paths within a synchronization root and excluding them from synchronization.
Read more >/X (Ignore standard include paths) | Microsoft Learn
Prevents the compiler from searching for include files in directories specified in the PATH and INCLUDE environment variables. Syntax. /X ...
Read more >[NODE] agent not respecting rule to ignore path
One option is to utilize the rules checker built into the agent. With this you can you can set the endpoint to ignore...
Read more >Ignoring Unc Paths - BarTender Support Portal
It's as though BarTender Commander just doesn't like UNC paths and actively ... command line options prints the document seemingly fine:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I need to silence our
/healthz
polling logs as well and tried to use the newignorePaths
feature in PR #30. However, it’s not flexible enough for my use case since it matches the routes againstrequest.url.path
which includes the request’s query params but my query params can have dynamic values.Just in case it helps someone in the future, I ended up silencing our logs with this micro hapi plugin:
I was still struggling with this and this worked well for me in the
pino-http
orexpress-pino-logger
(which just usespino-http
) library: