Skip to content
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

Excessive logs when using a redirect filter #13724

Open
1 task done
lynkz-matt-psaltis opened this issue Sep 30, 2024 · 0 comments
Open
1 task done

Excessive logs when using a redirect filter #13724

lynkz-matt-psaltis opened this issue Sep 30, 2024 · 0 comments

Comments

@lynkz-matt-psaltis
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Kong version ($ kong version)

Kong 3.7 (KIC 3.3)

Current Behavior

When using a requestRedirect filter, the following info is logged every 3 seconds. It makes log review and debugging difficult.

2024-09-30T11:02:38Z info No targets found to create upstream {"v": 0, "service_name": "httproute.website.website-redirect.0"}

HTTPRoute:

  rules:
    - filters:
        - requestRedirect:
            hostname: <alternative host>
            port: 443
            scheme: https
            statusCode: 301
          type: RequestRedirect
      matches:
        - path:
            type: PathPrefix
            value: /

Expected Behavior

Our log retention costs go down by not logging this error. There's no backend configured for this redirect rule.

Steps To Reproduce

No response

Anything else?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant