github.com/aavshr/aws-sdk-go@v1.41.3/service/cloudwatchlogs/doc.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 // Package cloudwatchlogs provides the client and types for making API 4 // requests to Amazon CloudWatch Logs. 5 // 6 // You can use Amazon CloudWatch Logs to monitor, store, and access your log 7 // files from EC2 instances, CloudTrail, and other sources. You can then retrieve 8 // the associated log data from CloudWatch Logs using the CloudWatch console, 9 // CloudWatch Logs commands in the Amazon Web Services CLI, CloudWatch Logs 10 // API, or CloudWatch Logs SDK. 11 // 12 // You can use CloudWatch Logs to: 13 // 14 // * Monitor logs from EC2 instances in real-time: You can use CloudWatch 15 // Logs to monitor applications and systems using log data. For example, 16 // CloudWatch Logs can track the number of errors that occur in your application 17 // logs and send you a notification whenever the rate of errors exceeds a 18 // threshold that you specify. CloudWatch Logs uses your log data for monitoring 19 // so no code changes are required. For example, you can monitor application 20 // logs for specific literal terms (such as "NullReferenceException") or 21 // count the number of occurrences of a literal term at a particular position 22 // in log data (such as "404" status codes in an Apache access log). When 23 // the term you are searching for is found, CloudWatch Logs reports the data 24 // to a CloudWatch metric that you specify. 25 // 26 // * Monitor CloudTrail logged events: You can create alarms in CloudWatch 27 // and receive notifications of particular API activity as captured by CloudTrail. 28 // You can use the notification to perform troubleshooting. 29 // 30 // * Archive log data: You can use CloudWatch Logs to store your log data 31 // in highly durable storage. You can change the log retention setting so 32 // that any log events older than this setting are automatically deleted. 33 // The CloudWatch Logs agent makes it easy to quickly send both rotated and 34 // non-rotated log data off of a host and into the log service. You can then 35 // access the raw log data when you need it. 36 // 37 // See https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28 for more information on this service. 38 // 39 // See cloudwatchlogs package documentation for more information. 40 // https://docs.aws.amazon.com/sdk-for-go/api/service/cloudwatchlogs/ 41 // 42 // Using the Client 43 // 44 // To contact Amazon CloudWatch Logs with the SDK use the New function to create 45 // a new service client. With that client you can make API requests to the service. 46 // These clients are safe to use concurrently. 47 // 48 // See the SDK's documentation for more information on how to use the SDK. 49 // https://docs.aws.amazon.com/sdk-for-go/api/ 50 // 51 // See aws.Config documentation for more information on configuring SDK clients. 52 // https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config 53 // 54 // See the Amazon CloudWatch Logs client CloudWatchLogs for more 55 // information on creating client for this service. 56 // https://docs.aws.amazon.com/sdk-for-go/api/service/cloudwatchlogs/#New 57 package cloudwatchlogs