datastream


The Data‚ÄčStream reporting service provides real-time logs on application activity, including aggregated metrics on complete request and response cycles and origin response times. Apply this behavior to report on this set of traffic. Use the Data‚ÄčStream API to aggregate the data.

In the latest rule format, log‚ÄčStream‚ÄčName is an array of string values, such as ["1234", "5678"] instead of a single 1234 integer value. Make sure your property accepts the single integer for the previous rule format, otherwise use an array to prevent errors.

OptionTypeDescriptionRequires
stream‚ÄčTypeenum

Specify the Data‚ÄčStream type. LOG is the only value currently available, corresponding to Data‚ÄčStream 2.

{"displayType":"enum","options":["BEACON","LOG","BEACON_AND_LOG"],"tag":"select"}
{"if":{"attribute":"modulesOnContract","op":"contains","scope":"global","value":"DataStreamLogs"}}
BEACON

TBD

LOG

Scalable, low latency streaming of raw data for push delivery.

BEACON_‚ÄčAND_‚ÄčLOG

TBD

enabledboolean

Enables Data‚ÄčStream reporting.

{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"expression":{"attribute":"streamType","op":"in","value":["LOG"]},"op":"not"}}
datastream‚ÄčIdsstring

A set of dash-separated Data‚ÄčStream ID values to limit the scope of reported data. By default, all active streams report. Use the Data‚ÄčStream application to gather stream ID values that apply to this property configuration. Specifying IDs for any streams that don't apply to this property has no effect, and results in no data reported.

{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"enabled","op":"eq","value":true}}
log‚ÄčEnabledboolean

Enables log collection for the property by associating it with Data‚ÄčStream configurations.

stream‚ÄčType is either: LOG, BEACON_‚ÄčAND_‚ÄčLOG
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"streamType","op":"in","value":["LOG","BEACON_AND_LOG"]}}
log‚ÄčStream‚ÄčNamestring

Specifies the unique IDs of streams configured for the property. For properties created with the previous version of the rule format, this option contains a string instead of an array of strings. You can use the List streams operation to get stream IDs.

log‚ÄčEnabled is true
{"displayType":"string","tag":"input","type":"text"}
{"if":{"attribute":"logEnabled","op":"eq","value":true}}
sampling‚ÄčPercentagenumber

Specifies the percentage of log data you want to collect for this property.

log‚ÄčEnabled is true
{"displayType":"number","tag":"input","type":"number"}
{"if":{"attribute":"logEnabled","op":"eq","value":true}}
collect‚ÄčMidgress‚ÄčTrafficboolean

If enabled, gathers midgress traffic data within the Akamai platform, such as between two edge servers, for all streams configured.

log‚ÄčEnabled is true
{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"op":"and","params":[{"attribute":"logEnabled","op":"eq","value":true},{"attribute":"modulesOnContract","op":"contains","scope":"global","value":"DataStreamMidgress"}]}}