http_response : Add in support for looking for substring in response (#2204)
* Add in support for looking for substring in response * Add note to CHANGELOG.md * Switch from substring match to regex match * Requested code changes * Make requested changes and refactor to avoid nested if-else. * Convert tabs to space and compile regex once
Showing
- CHANGELOG.md 1 addition, 0 deletionsCHANGELOG.md
- plugins/inputs/http_response/README.md 5 additions, 0 deletionsplugins/inputs/http_response/README.md
- plugins/inputs/http_response/http_response.go 45 additions, 6 deletionsplugins/inputs/http_response/http_response.go
- plugins/inputs/http_response/http_response_test.go 84 additions, 0 deletionsplugins/inputs/http_response/http_response_test.go
Loading
Please register or sign in to comment