datastream
Behavior name: DataStream
Version: v2025-01-13 | Includes use: No |
---|
Behavior name: DataStream
The DataStream 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 DataStream API to aggregate the data.
Note: In the latest rule format,
log_stream_name
is an array of string values, such as["1234", "5678"]
instead of a single1234
integer value. Make sure your property accepts the single integer for the previous rule format, otherwise use an array to prevent errors.
Default behavior
These samples reflect the behavior's default settings. You can use these as is in your configurations or make adjustments based on the behavior's available options.
data "akamai_property_rules_builder" "datastream" {
rules_v2025_02_18 {
name = "DataStream"
comments = "Provides real-time logs on application activity."
behavior {
datastream {
enabled = true
datastream_ids = ""
}
}
}
}
"behaviors": [
{
"name": "datastream",
"options": {
"enabled": true,
"datastreamIds": ""
}
}
]
Options
Option | Description |
---|---|
stream_type |
Specify the DataStream type. Value is one of:
|
enabled |
Enables DataStream reporting.
|
datastream_ids |
A set of dash-separated DataStream ID values to limit the scope of reported data. By default, all active streams report. Use the DataStream 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.
|
log_enabled |
Enables log collection for the property by associating it with DataStream configurations.
|
log_stream_name |
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.
|
sampling_percentage |
Specifies the percentage of log data you want to collect for this property.
|
collect_midgress_traffic |
If enabled, gathers midgress traffic data within the Akamai platform, such as between two edge servers, for all streams configured.
|
Updated 24 minutes ago