Skip to content

Commit 6bc5a2c

Browse files
committed
in_cloudwatch_logs: fix error while fetching yesterdays logstream with prefix
1 parent 6dfbb2a commit 6bc5a2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/fluent/plugin/in_cloudwatch_logs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def run
199199
log_stream_name_prefix = @use_todays_log_stream ? get_todays_date : @log_stream_name
200200
begin
201201
log_streams = describe_log_streams(log_stream_name_prefix, nil, nil, log_group_name)
202-
log_streams.concat(describe_log_streams(get_yesterdays_date)) if @use_todays_log_stream
202+
log_streams.concat(describe_log_streams(get_yesterdays_date, nil, nil, log_group_name)) if @use_todays_log_stream
203203
log_streams.each do |log_stream|
204204
log_stream_name = log_stream.log_stream_name
205205
events = get_events(log_group_name, log_stream_name)

0 commit comments

Comments
 (0)