How to add custom headers to log stream

Problem Statement

We would like to add custom headers to our custom log stream. How can we accomplish this?

Symptoms

  • Add custom headers to the custom log stream

Solution

First, begin by creating a custom log stream. Then, we recommend using the Management API Update a log stream endpoint to add custom headers to the log stream.

For example:

{
   "sink":{
       "httpCustomHeaders": [
           {
               "header": "one",
               "value": "1"
           }
       ]
   }
}
1 Like