Logging of custom header fields

Hi,

I was looking at the documentation for logging and saw that apart from the standard log fields, it is possible to retrieve the logs with other fields which are defined here: https://developers.cloudflare.com/logs/log-fields

Is there any way to have custom fields returned, specifically certain headers? Let’s say the request contains the header “X-Foo: Bar”. Is this one logged and would it be possible to query the Logpull API for it?

I don’t think this is possible.

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.

This is possible (nowadays at least):

https://developers.cloudflare.com/logs/reference/logpush-api-configuration/custom-fields/

1 Like

Thanks for the update, marking your reply as solution.