lib/fluent/plugin/in_cloudwatch_logs.rb in fluent-plugin-cloudwatch-logs-0.14.2 vs lib/fluent/plugin/in_cloudwatch_logs.rb in fluent-plugin-cloudwatch-logs-0.14.3
- old
+ new
@@ -197,10 +197,10 @@
log_group_names.each do |log_group_name|
if @use_log_stream_name_prefix || @use_todays_log_stream
log_stream_name_prefix = @use_todays_log_stream ? get_todays_date : @log_stream_name
begin
log_streams = describe_log_streams(log_stream_name_prefix, nil, nil, log_group_name)
- log_streams.concat(describe_log_streams(get_yesterdays_date)) if @use_todays_log_stream
+ log_streams.concat(describe_log_streams(get_yesterdays_date, nil, nil, log_group_name)) if @use_todays_log_stream
log_streams.each do |log_stream|
log_stream_name = log_stream.log_stream_name
events = get_events(log_group_name, log_stream_name)
metadata = if @include_metadata
{