interface QueryStringProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Logs.QueryStringProps |
Java | software.amazon.awscdk.services.logs.QueryStringProps |
Python | aws_cdk.aws_logs.QueryStringProps |
TypeScript (source) | @aws-cdk/aws-logs » QueryStringProps |
Properties for a QueryString.
Example
new logs.QueryDefinition(this, 'QueryDefinition', {
queryDefinitionName: 'MyQuery',
queryString: new logs.QueryString({
fields: ['@timestamp', '@message'],
sort: '@timestamp desc',
limit: 20,
}),
});
Properties
| Name | Type | Description |
|---|---|---|
| display? | string | Specifies which fields to display in the query results. |
| fields? | string[] | Retrieves the specified fields from log events for display. |
| filter? | string | Filters the results of a query that's based on one or more conditions. |
| limit? | number | Specifies the number of log events returned by the query. |
| parse? | string | Extracts data from a log field and creates one or more ephemeral fields that you can process further in the query. |
| sort? | string | Sorts the retrieved log events. |
| stats? | string | Uses log field values to calculate aggregate statistics. |
display?
Type:
string
(optional, default: no display in QueryString)
Specifies which fields to display in the query results.
fields?
Type:
string[]
(optional, default: no fields in QueryString)
Retrieves the specified fields from log events for display.
filter?
Type:
string
(optional, default: no filter in QueryString)
Filters the results of a query that's based on one or more conditions.
limit?
Type:
number
(optional, default: no limit in QueryString)
Specifies the number of log events returned by the query.
parse?
Type:
string
(optional, default: no parse in QueryString)
Extracts data from a log field and creates one or more ephemeral fields that you can process further in the query.
sort?
Type:
string
(optional, default: no sort in QueryString)
Sorts the retrieved log events.
stats?
Type:
string
(optional, default: no stats in QueryString)
Uses log field values to calculate aggregate statistics.

.NET
Java
Python
TypeScript (