Create an Edge DNS stream

Creates a stream configuration for Edge DNS. You can choose the zones to monitor in the stream, data set fields to collect in logs, and a destination to send these log files to. Get the streamId value from the response to Get a stream. Apart from the log and delivery frequency configurations, you can decide to activate the stream when making the request, or later. Note that only active streams collect and send logs to their destinations. See Activate a stream.

Query Params
boolean
Defaults to false

Activates the stream at the time of the request, false by default. When you edit or patch an active stream, you need to set this to true.

Body Params

Provides information that you need to specify when creating a stream configuration.

string
required

Identifies the contract that has access to the product.

datasetFields
array of objects
required

Identifies data set fields that you want to receive in logs. For the STRUCTURED format, the order of the identifiers defines how these fields' values appear in the log lines. See Data set parameters for the complete list of the fields you can choose.

Dataset fields*
deliveryConfiguration
object
required

Configures log lines, log file format, names of the log files sent to a destination, and delivery frequency for these files.

destination
required

The destination configuration in the stream to send logs. See Destinations for details and features available for each destination.

integer
required

Identifies the group that has access to the product and this stream configuration.

notificationEmails
array of strings
length ≥ 0

Email addresses where you want to send notifications about the stream's activations and deactivations. By omitting this or specifying an empty array, you can activate or deactivate the stream without notifications.

Notification emails
string
required
length ≤ 1000

The stream's name.

zones
array of objects
required

Identifies the Edge DNS zones that you want to monitor in the stream.

Zones*
Response

Response body
object

Details the latest configuration version of an Edge DNS stream. It provides descriptions of the data set fields selected in the version, identifiers of zones they collect logs for, configuration of the destination where they deliver logs, and structure of these log lines. It also indicates if this version is active.

string
required

Identifies the contract the stream belongs to.

string
required

The username who created the stream.

date-time
required

An ISO 8601 timestamp marking when the stream was created.

datasetFields
array of objects
required

Lists currently selected data set fields the stream monitors in logs. The order of the identifiers determines how these fields' values appear in log lines.

datasetFields*
object
integer
required

Identifies the field.

string
required

Specifies the JSON key for the field in a log line. You can get this value only when you run the List data set fields or Get a stream operation for a stream in the JSON format.

string
required

The data set field's name.

deliveryConfiguration
object
required

The configuration of log filenames, and their delivery frequency to the destination.

string
enum

A delimiter that separates data set fields in the log lines, either SPACE or TAB. Set this only for the STRUCTURED log file format.

SPACE TAB

string
enum
required

The format in which you want to receive log files. You can choose the STRUCTURED or JSON format for your stream.

STRUCTURED JSON

frequency
object
required

The frequency to collect logs from each uploader and send them to a destination.

string
length ≤ 200
Defaults to ak

The log filename prefix that you want to send to an object-based destination, up to 200 characters. This data supports Dynamic time variables. If unspecified, it defaults to ak.

string
length ≤ 10
Defaults to ds

The log filename suffix that you want to send to an object-based destination, up to 10 characters. This data supports Dynamic time variables. If unspecified, it defaults to ds.

destination
required

Details the destination's configuration in the stream to send logs.

integer
required

Identifies the group with access to the product, which you created the stream configuration for. You can write this data only once, when you initially create the stream.

integer
required

Identifies the stream's latest configuration version.

string
required

The username who modified the stream.

date-time
required

An ISO 8601 timestamp marking when the stream was modified.

notificationEmails
array of strings
length ≥ 0

Email addresses where the system sends notifications about activations and deactivations of the stream.

integer
required

Identifies the stream.

string
required

The stream's name.

string
enum
required

Indicates if the stream is INACTIVE, ACTIVATING, ACTIVATED, DEACTIVATING, or DEACTIVATED.

INACTIVE ACTIVATING ACTIVATED DEACTIVATING DEACTIVATED

integer
required

Identifies the stream's configuration version.

zones
array of objects
required

Identifies the Edge DNS zones you monitor in the stream.

zones*
object
integer
required

The identifier of the zone.

string
required

The zone's descriptive label.

Language
URL