// Returns a list of the fields that are included in log events in the specified
// log group, along with the percentage of log events that contain each field. The
// search is limited to a time period that you specify. In the results, fields that
// start with @ are fields generated by CloudWatch Logs. For example, @timestamp is
// the timestamp of each log event. For more information about the fields that are
// generated by CloudWatch logs, see Supported Logs and Discovered Fields
// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_AnalyzeLogData-discoverable-fields.html).
// The response results are sorted by the frequency percentage, starting with the
// highest percentage.
Returns a list of the fields that are included in log events in the specified
log group, along with the percentage of log events that contain each field. The
search is limited to a time period that you specify. In the results, fields that
start with @ are fields generated by CloudWatch Logs. For example, @timestamp is
the timestamp of each log event. For more information about the fields that are
generated by CloudWatch logs, see Supported Logs and Discovered Fields
.
The response results are sorted by the frequency percentage, starting with the
highest percentage.
// Returns a list of the fields that are included in log events in the specified // log group along with the percentage of log events that contain each field . The // search is limited to a time period that you specify . In the results fields that // start with @ are fields generated by CloudWatch Logs . For example @timestamp is // the timestamp of each log event . For more information about the fields that are // generated by CloudWatch logs see Supported Logs and Discovered Fields // ( https : // docs . aws . amazon . com / AmazonCloudWatch / latest / logs / CWL_AnalyzeLogData - discoverable - fields . html ) . // The response results are sorted by the frequency percentage starting with the // highest percentage .
func (c *Client) GetLogGroupFields(ctx context.Context, params *GetLogGroupFieldsInput, optFns ...func(*Options)) (*GetLogGroupFieldsOutput, error) {
	if params == nil {
		params = &GetLogGroupFieldsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "GetLogGroupFields", params, optFns, addOperationGetLogGroupFieldsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*GetLogGroupFieldsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) GetLogGroupFields ( ctx context . Context , params * GetLogGroupFieldsInput , optFns ... func ( * Options ) ) ( * GetLogGroupFieldsOutput , error ) { if params == nil { params = & GetLogGroupFieldsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationGetLogGroupFieldsMiddlewares ) if err != nil { return nil , err } out := result . ( * GetLogGroupFieldsOutput ) out . ResultMetadata = metadata return out , nil }
Returns a list of the fields that are included in log events in the specified
log group, along with the percentage of log events that contain each field.
Returns a list of the fields that are included in log events in the specified log group along with the percentage of log events that contain each field .