HTTP Header Extractor Enrichment
Last updated
Was this helpful?
Last updated
Was this helpful?
The HTTP Header enrichment is designed to take fields from an HTTP request header. When a user browses to your site, their browser (client) makes an HTTP request to your web server. Within this request are name & value pairs which include particular details such as the type, capabilities and version of the browser that is generating the request, the operating system used by the client, the page that was requested, the various types of outputs accepted by the browser, and so on.
This enrichment will create new columns in your data wharehouse for the particular parameters you specify in the configuration file for the enrichment.
For example, if you specify to collect all parameters in an HTTP Header, the enrichment will create new columns for every parameter and fill the rows with the values for those parameters for every event.
You specify which parameters to collect by using a Regular Expression in the “headersPattern” field of the configuration file.
The parameters come through via the contexts_org_ietf_http_header_1 context and so the table/columns will be labeled as such in your data wharehouse.
This enrichment is processed first in the enrichment process.
The example configuration below extracts only the “Hosts” field in an HTTP request.
The example above would take only the name and value pair for “Hosts” and add the field as an individual column in a derived table that might look like such:
Hosts
localhost:8080
acme.com
If you’d like some help with configuring or deploying this enrichment in your pipeline please contact us at support@snowplowanalytics.com