libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudWatchLogs.GetLogGroupFields

Description

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.

Synopsis

Creating a Request

data GetLogGroupFields Source #

See: newGetLogGroupFields smart constructor.

Constructors

GetLogGroupFields' 

Fields

  • time :: Maybe Natural

    The time to set as the center of the query. If you specify time, the 15 minutes before this time are queries. If you omit time the 8 minutes before and 8 minutes after this time are searched.

    The time value is specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.

  • logGroupName :: Text

    The name of the log group to search.

Instances

Instances details
Eq GetLogGroupFields Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

Read GetLogGroupFields Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

Show GetLogGroupFields Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

Generic GetLogGroupFields Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

Associated Types

type Rep GetLogGroupFields :: Type -> Type #

NFData GetLogGroupFields Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

Methods

rnf :: GetLogGroupFields -> () #

Hashable GetLogGroupFields Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

ToJSON GetLogGroupFields Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

AWSRequest GetLogGroupFields Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

Associated Types

type AWSResponse GetLogGroupFields #

ToHeaders GetLogGroupFields Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

ToPath GetLogGroupFields Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

ToQuery GetLogGroupFields Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

type Rep GetLogGroupFields Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

type Rep GetLogGroupFields = D1 ('MetaData "GetLogGroupFields" "Amazonka.CloudWatchLogs.GetLogGroupFields" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "GetLogGroupFields'" 'PrefixI 'True) (S1 ('MetaSel ('Just "time") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "logGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetLogGroupFields Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

newGetLogGroupFields Source #

Create a value of GetLogGroupFields with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:time:GetLogGroupFields', getLogGroupFields_time - The time to set as the center of the query. If you specify time, the 15 minutes before this time are queries. If you omit time the 8 minutes before and 8 minutes after this time are searched.

The time value is specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.

$sel:logGroupName:GetLogGroupFields', getLogGroupFields_logGroupName - The name of the log group to search.

Request Lenses

getLogGroupFields_time :: Lens' GetLogGroupFields (Maybe Natural) Source #

The time to set as the center of the query. If you specify time, the 15 minutes before this time are queries. If you omit time the 8 minutes before and 8 minutes after this time are searched.

The time value is specified as epoch time, the number of seconds since January 1, 1970, 00:00:00 UTC.

getLogGroupFields_logGroupName :: Lens' GetLogGroupFields Text Source #

The name of the log group to search.

Destructuring the Response

data GetLogGroupFieldsResponse Source #

See: newGetLogGroupFieldsResponse smart constructor.

Constructors

GetLogGroupFieldsResponse' 

Fields

  • logGroupFields :: Maybe [LogGroupField]

    The array of fields found in the query. Each object in the array contains the name of the field, along with the percentage of time it appeared in the log events that were queried.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetLogGroupFieldsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

Read GetLogGroupFieldsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

Show GetLogGroupFieldsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

Generic GetLogGroupFieldsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

Associated Types

type Rep GetLogGroupFieldsResponse :: Type -> Type #

NFData GetLogGroupFieldsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

type Rep GetLogGroupFieldsResponse Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.GetLogGroupFields

type Rep GetLogGroupFieldsResponse = D1 ('MetaData "GetLogGroupFieldsResponse" "Amazonka.CloudWatchLogs.GetLogGroupFields" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "GetLogGroupFieldsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "logGroupFields") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [LogGroupField])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetLogGroupFieldsResponse Source #

Create a value of GetLogGroupFieldsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:logGroupFields:GetLogGroupFieldsResponse', getLogGroupFieldsResponse_logGroupFields - The array of fields found in the query. Each object in the array contains the name of the field, along with the percentage of time it appeared in the log events that were queried.

$sel:httpStatus:GetLogGroupFieldsResponse', getLogGroupFieldsResponse_httpStatus - The response's http status code.

Response Lenses

getLogGroupFieldsResponse_logGroupFields :: Lens' GetLogGroupFieldsResponse (Maybe [LogGroupField]) Source #

The array of fields found in the query. Each object in the array contains the name of the field, along with the percentage of time it appeared in the log events that were queried.