Skip to content

Commit eed2d4c

Browse files
committed
fix(app-logs): reduce top log limit to improve performance and stability
Signed-off-by: Manuel Abascal <mjabascal10@gmail.com>
1 parent 946df10 commit eed2d4c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

frontend/src/app/app-management/app-logs/app-logs.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class AppLogsComponent implements OnInit {
2828
filters: [
2929
{field: '@timestamp', operator: ElasticOperatorsEnum.IS_BETWEEN, value: ['now-7d', 'now']},
3030
{field: 'log.containerName.keyword', operator: ElasticOperatorsEnum.IS, value: 'utmstack_backend'}
31-
], index: 'v11-log-utmstack-*', top: 10000000
31+
], index: 'v11-log-utmstack-*', top: 100000
3232
};
3333
sources = ['PANEL', 'AGENT'];
3434
types = ['ERROR', 'WARNING', 'INFO'];

frontend/src/app/rule-management/app-rule/components/rule-list/rule-list.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ export class RuleListComponent implements OnInit, OnDestroy {
154154
};
155155
this.loadingRules.push(rule.id);
156156
const index = this.loadingRules.length - 1;
157-
this.ruleService.activeRule(params).pipe(
158-
finalize(() => this.loadingRules.splice(index, 1))
159-
)
157+
this.ruleService.activeRule(params)
158+
.pipe(
159+
finalize(() => this.loadingRules.splice(index, 1)))
160160
.subscribe(() => this.ruleService.notifyRefresh(true),
161161
() => {
162162
this.utmToast.showError('Error', 'Error changing rule status');

0 commit comments

Comments
 (0)