Closed omacesc closed 4 years ago
I'm submitting a ...
Do you want to request a feature or report a bug? Report a bug
What is the current behavior? When create a new log group, no put the correct retention
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem I use laravel 5.5 monolog
What is the expected behavior? Put the correct number in retention
What is the motivation / use case for changing the behavior?
Please tell about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links to have context, eg. stackoverflow, etc) Laravel 5.5
$cwClient = App::make('aws')->createClient('CloudWatchLogs'); $cwGroupName = config('laravel-monolog-ext.drivers.cloudwatch.group'); $cwStreamNameApp = 'laravel-' . now()->toDateString() . '.log'; $cwRetentionDays = config('laravel-monolog-ext.drivers.cloudwatch.retention'); $cwLevel = config('laravel-monolog-ext.drivers.cloudwatch.level'); $this->cwHandlerApp = new CloudWatch($cwClient, $cwGroupName, $cwStreamNameApp, $cwRetentionDays, 10000, [], $cwLevel); $monolog->pushHandler($this->cwHandlerApp);
The user AWS have full access in CloudWatch Logs
I checked in code, and enter in this part:
if ($this->retention !== null) { $this ->client ->putRetentionPolicy( [ 'logGroupName' => $this->group, 'retentionInDays' => $this->retention, ] ); }
But in AWS CloudWatch, didn't change, always put never expire Thanks for your support!
I'm submitting a ...
Do you want to request a feature or report a bug? Report a bug
What is the current behavior? When create a new log group, no put the correct retention
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem I use laravel 5.5 monolog
What is the expected behavior? Put the correct number in retention
What is the motivation / use case for changing the behavior?
Please tell about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links to have context, eg. stackoverflow, etc) Laravel 5.5
The user AWS have full access in CloudWatch Logs
I checked in code, and enter in this part:
But in AWS CloudWatch, didn't change, always put never expire Thanks for your support!