1. Home
  2. Docs
  3. Enriching your data
  4. Available enrichments
  5. HTTP header extractor enrichment

HTTP header extractor enrichment

This enrichment can extract name/value pairs from the HTTP headers and attach them to the event as derived contexts.


All the headers that will match the regex defined in headersPattern parameter will be attached to the event.

In the example configuration, all the headers of the request would be attached to the event.

If we are only interested in the host for instance, we could have:

"headersPattern": [ "Host" ]
Code language: JavaScript (javascript)


This enrichment uses the HTTP headers.


For each header matching the regex defined in headersPattern, a context with this schema is added to the enriched event. Each context contains only one name/value pair.

If you’d like to learn more about Snowplow BDP you can book a demo with our team, or if you’d prefer, you can try Snowplow technology for yourself quickly and easily.