Skip to content

Commit

Permalink
Merge pull request #7 from beckandros/patch-9
Browse files Browse the repository at this point in the history
Update GetLogEvents.java
  • Loading branch information
scmacdon authored Apr 9, 2020
2 parents 22257c7 + f034891 commit b3399c8
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//snippet-sourcedescription:[GetLogEvents.java demonstrates how to get log events from CloudWatch in a specified region. ]
//snippet-sourcedescription:[GetLogEvents.java demonstrates how to get log events from Amazon CloudWatch in a specified AWS Region. ]
//snippet-keyword:[SDK for Java 2.0]
//snippet-keyword:[Code Sample]
//snippet-service:[Amazon CloudWatch]
Expand Down Expand Up @@ -30,14 +30,14 @@
// snippet-end:[cloudwatch.java2.get_logs.import]

/**
* Gets logs events from CloudWatch
* Gets log events from CloudWatch
*/
public class GetLogEvents {

public static void main(String[] args) {

final String usage =
"To run this example, supply a logGroupName, and streamName as command line arguments\n" +
"To run this example, supply a logGroupName and streamName as command line arguments\n" +
"Ex: GetLogEvents <logGroupName> <streamName>\n";

if (args.length != 2) {
Expand All @@ -63,8 +63,8 @@ public static void getCWLogEvebts(CloudWatchLogsClient cloudWatchLogsClient, Str

try {

// Designate logGroupName and logStream you want to get logs from
// Assume only one stream name exist, this is not always the case
// Designate the logGroupName and logStream you want to get logs from
// Assume only one stream name exists, however, this isn't always the case
GetLogEventsRequest getLogEventsRequest = GetLogEventsRequest.builder()
.logGroupName(logGroupName)
.logStreamName(logStreamName)
Expand Down

0 comments on commit b3399c8

Please sign in to comment.