Forum Discussion
Logging F5 response via Logging profile
Hi,
I am preparing a rule which limits requests per second based on IP and endpoint. There is also prepared response logging profile which sends logs to specific server with Elastic via TCP. Request limit in my rule is 3 per 1 second which triggers HTTP::respond with 429 status code but in my logs I can't see it. How possibly could I modify my iRule to log it too?
1 Reply
Hello kruszi123
This happens because response logging profile logs only responses Virtual server has received and no the ones that have been generated by an irule attached to it.
To overcome this I can think two solutions.
- Create a Layered Virtual Servers setup. Attach response logging profile to first an your irule to second. The first one will receive the responses and will log them.
- Use HSL in your irule to log responses generated by it.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com